|
|
| |
Create an item representing a file, from an UDSEntry (see kio/global.h) This is the preferred constructor when using KIO::listDir().
Parameters:
| _entry | the KIO entry used to get the file, contains info about it |
| _url | the file url |
| _determineMimeTypeOnDemand | specifies if the mimetype of the given URL should be determined immediately or on demand |
| _urlIsDirectory | specifies if the url is just the directory of the fileitem and the filename from the UDSEntry should be used. |
| |
Create an item representing a file, from all the necessary info for it
Parameters:
| _mode | the file mode (according to stat()) Set to -1 if unknown. For local files, KFileItem will use stat(). |
| _mode | the mode (S_IFDIR...) |
| _permissions | the access permissions If you set both the mode and the permissions, you save a ::stat() for local files Set to -1 if you don't know the mode or the permission. |
| _url | the file url |
| _determineMimeTypeOnDemand | specify if the mimetype of the given URL should be determined immediately or on demand |
| |
Create an item representing a file, for which the mimetype is already known
Parameters:
| url | the file url |
| mimeType | the name of the file's mimetype |
| mode | the mode (S_IFDIR...) |
| ~ |
[virtual]
Destructor
| void |
Re-read information (currently only permissions and mimetype) This is called when the _file_ changes
| void |
Re-read mimetype information This is called when the mimetype database changes
| const KURL & |
[const]
Returns: the url of the file
| mode_t |
[const]
Returns: the permissions of the file (stat.st_mode containing only permissions)
| mode_t |
[const]
Returns: the file type (stat.st_mode containing only S_IFDIR, S_IFLNK, ...)
| QString |
[const]
Returns: the owner of the file.
| QString |
[const]
Returns: the group of the file.
| bool |
[const]
Returns: true if this item represents a link in the UNIX sense of a link. If yes, then we have to draw the label with an italic font.
| bool |
[const]
Returns: true if this item represents a directory
| QString |
[const]
Returns: the link destination if isLink() == true
| long |
[const]
Returns: the size of the file, if known
| time_t |
[const]
Parameters:
| which | UDS_MODIFICATION_TIME, UDS_ACCESS_TIME or even UDS_CREATION_TIME |
Returns: the time asked for, (time_t)0 if not available
| bool |
[const]
Returns: true if the file is a local file
| const QString& |
[const]
Returns: the text of the file item It's not exactly the filename since some decoding happens ('%2F'->'/')
| const QString& |
[const]
Returns: the name of the file item (without a path)
Similar to text(), but unencoded, i.e. the original name
If lowerCase is true, the name will be returned in lower case,
which is useful to speed up sorting by name, case insensitively.
| QString |
[const]
Returns: the mimetype of the file item
| KMimeType::Ptr |
Returns: the mimetype of the file item If determineMimeTypeOnDemand was used, this will determine the mimetype first.
| KMimeType::Ptr |
Returns: the currently-known mmietype of the file item This will not try to determine the mimetype if unknown.
| QString |
Returns: the descriptive comment for this mime type, or the mime type itself if none is present.
| QString |
Returns: the full path name to the icon that represents this mime type.
| QPixmap |
[const]
Returns a pixmap representing the file
Parameters:
| _size | Size for the pixmap in pixels. Zero will return the globally configured default size. |
| _state | The state of the icon: KIcon::DefaultState, KIcon::ActiveState or KIcon::DisabledState. |
Returns: the pixmap
| QString |
Returns: the string to be displayed in the statusbar e.g. when the mouse is over this item
| bool |
Returns: true if files can be dropped over this item Contrary to popular belief, not only dirs will return true :) Executables, .desktop files, will do so as well.
| void |
Let's "KRun" this file ! (e.g. when file is clicked or double-clicked or return is pressed)
| const KIO::UDSEntry & |
[const]
Returns: the UDS entry. Used by the tree view to access all details by position.
| bool |
[const]
| void |
| void |
| void |
[protected]
Computes the text, mode, and mimetype from the UDSEntry Called by constructor, but can be called again later
| KIO::UDSEntry |
[protected]
We keep a copy of the UDSEntry since we need it for getStatusBarInfo
| KURL |
[protected]
The url of the file
| bool |
[protected]
True if local file
| QString |
[protected]
The text for this item, i.e. the file name without path,
| QString |
[protected]
The text for this item, i.e. the file name without path, encoded
| mode_t |
[protected]
The file mode
| mode_t |
[protected]
The permissions
| QString |
[protected]
the user and group assigned to the file.
| QString |
[protected]
the user and group assigned to the file.
| bool |
[protected]
Whether the file is a link
| KMimeType::Ptr |
[protected]
The mimetype of the file
| mutable QString |
[protected]
The filename in lower case (to speed up sorting)
| Generated by: prospector@porky.devel.redhat.com on Thu Aug 24 05:36:06 2000, using kdoc 2.0a36. |