libkonq
KonqFileItemCapabilities Class Reference
#include <konq_fileitemcapabilities.h>
Detailed Description
Provides information about the access capabilities of a group of KFileItem objects.As soon as one file item does not support a specific capability, it is marked as unsupported for all items.
This class is implicitly shared, which means it can be used as a value and copied around at almost no cost.
- Since:
- 4.1
Definition at line 43 of file konq_fileitemcapabilities.h.
Public Member Functions | |
bool | isLocal () const |
KonqFileItemCapabilities (const KonqFileItemCapabilities &) | |
KonqFileItemCapabilities (const KFileItemList &items) | |
KonqFileItemCapabilities () | |
KonqFileItemCapabilities & | operator= (const KonqFileItemCapabilities &other) |
void | setItems (const KFileItemList &items) |
bool | supportsDeleting () const |
bool | supportsMoving () const |
bool | supportsReading () const |
bool | supportsWriting () const |
virtual | ~KonqFileItemCapabilities () |
Constructor & Destructor Documentation
KonqFileItemCapabilities::KonqFileItemCapabilities | ( | ) |
Default constructor.
Use setItems to specify the items.
Definition at line 46 of file konq_fileitemcapabilities.cpp.
KonqFileItemCapabilities::KonqFileItemCapabilities | ( | const KFileItemList & | items | ) |
Constructor that takes a KFileItemList and sets the capabilities supported by all the FileItems as true.
- Parameters:
-
items The list of items that are to have their supported capabilities checked.
Definition at line 51 of file konq_fileitemcapabilities.cpp.
KonqFileItemCapabilities::KonqFileItemCapabilities | ( | const KonqFileItemCapabilities & | other | ) |
KonqFileItemCapabilities::~KonqFileItemCapabilities | ( | ) | [virtual] |
Member Function Documentation
bool KonqFileItemCapabilities::isLocal | ( | ) | const |
Check if files are local.
- Returns:
- true if all the FileItems are local, otherwise there is one or more remote file, so false.
Definition at line 124 of file konq_fileitemcapabilities.cpp.
KonqFileItemCapabilities & KonqFileItemCapabilities::operator= | ( | const KonqFileItemCapabilities & | other | ) |
void KonqFileItemCapabilities::setItems | ( | const KFileItemList & | items | ) |
Sets the items that are to have their supported capabilities checked.
Definition at line 57 of file konq_fileitemcapabilities.cpp.
bool KonqFileItemCapabilities::supportsDeleting | ( | ) | const |
Check if deleting capability is supported.
- Returns:
- true if all the FileItems support deleting, otherwise false.
Definition at line 109 of file konq_fileitemcapabilities.cpp.
bool KonqFileItemCapabilities::supportsMoving | ( | ) | const |
Check if moving capability is supported.
- Returns:
- true if all the FileItems support moving, otherwise false.
Definition at line 119 of file konq_fileitemcapabilities.cpp.
bool KonqFileItemCapabilities::supportsReading | ( | ) | const |
Check if reading capability is supported.
- Returns:
- true if all the FileItems support reading, otherwise false.
Definition at line 104 of file konq_fileitemcapabilities.cpp.
bool KonqFileItemCapabilities::supportsWriting | ( | ) | const |
Check if writing capability is supported.
- Returns:
- true if all the FileItems support writing, otherwise false.
Definition at line 114 of file konq_fileitemcapabilities.cpp.
The documentation for this class was generated from the following files: