libkonq
#include <konq_fileitemcapabilities.h>
Public Member Functions | |
KonqFileItemCapabilities () | |
KonqFileItemCapabilities (const KFileItemList &items) | |
KonqFileItemCapabilities (const KonqFileItemCapabilities &) | |
virtual | ~KonqFileItemCapabilities () |
bool | isLocal () const |
KonqFileItemCapabilities & | operator= (const KonqFileItemCapabilities &other) |
void | setItems (const KFileItemList &items) |
bool | supportsDeleting () const |
bool | supportsMoving () const |
bool | supportsReading () const |
bool | supportsWriting () const |
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 45 of file konq_fileitemcapabilities.h.
Constructor & Destructor Documentation
KonqFileItemCapabilities::KonqFileItemCapabilities | ( | ) |
Default constructor.
Use setItems to specify the items.
Definition at line 35 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 40 of file konq_fileitemcapabilities.cpp.
KonqFileItemCapabilities::KonqFileItemCapabilities | ( | const KonqFileItemCapabilities & | other | ) |
Copy constructor.
Definition at line 51 of file konq_fileitemcapabilities.cpp.
|
virtual |
Destructor.
Definition at line 62 of file konq_fileitemcapabilities.cpp.
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 86 of file konq_fileitemcapabilities.cpp.
KonqFileItemCapabilities & KonqFileItemCapabilities::operator= | ( | const KonqFileItemCapabilities & | other | ) |
Assignment operator.
Definition at line 56 of file konq_fileitemcapabilities.cpp.
void KonqFileItemCapabilities::setItems | ( | const KFileItemList & | items | ) |
Sets the items that are to have their supported capabilities checked.
Definition at line 46 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 71 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 81 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 66 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 76 of file konq_fileitemcapabilities.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.