#include <kmimetype.h>
Inheritance diagram for KDEDesktopMimeType:

Public Methods | |
| virtual QString | icon (const QString &_url, bool _is_local) const |
| virtual QString | icon (const KURL &_url, bool _is_local) const |
| virtual QPixmap | pixmap (const KURL &_url, KIcon::Group _group, int _force_size=0, int _state=0, QString *_path=0L) const |
| virtual QString | comment (const QString &_url, bool _is_local) const |
| virtual QString | comment (const KURL &_url, bool _is_local) const |
Static Public Methods | |
| QValueList< Service > | builtinServices (const KURL &_url) |
| QValueList< Service > | userDefinedServices (const QString &path, bool bLocalFiles) |
| void | executeService (const QString &_path, KDEDesktopMimeType::Service &_service) |
| void | executeService (const KURL::List &urls, KDEDesktopMimeType::Service &service) |
| pid_t | run (const KURL &_url, bool _is_local) |
Protected Methods | |
| virtual QPixmap | pixmap (KIcon::Group a, int b, int c, QString *d) const |
| virtual void | virtual_hook (int id, void *data) |
Definition at line 339 of file kmimetype.h.
|
|
|
|
||||||||||||
|
This function differs from the above only in that a KURL may be provided instead of a QString for convenience. Reimplemented from KMimeType. |
|
||||||||||||
|
The arguments are unused, but provided so that KMimeType derived classes can use them.
Reimplemented from KMimeType. |
|
||||||||||||
|
Execute |
|
||||||||||||
|
|
|
||||||||||||
|
This function differs from the above only in that a KURL may be provided instead of a QString for convenience. Reimplemented from KMimeType. |
|
||||||||||||
|
Return the filename of the icon associated with the mimetype. The arguments are unused, but provided so that KMimeType-derived classes can use them (e.g. KFolderType uses the URL to return one out of 2 icons)
Reimplemented from KMimeType. |
|
||||||||||||||||||||
|
Use this function only if you don't have a special URL for which you search a pixmap. This function is useful to find out, which icon is usually chosen for a certain mime type. Since no URL is passed, it is impossible to obey icon hints in desktop entries for example.
Reimplemented from KMimeType. Definition at line 411 of file kmimetype.h. References KIcon::Group, and KMimeType::pixmap(). |
|
||||||||||||||||||||||||
|
Find the pixmap for a given file of this mimetype. Convenience method that uses icon(), but also locates and load the pixmap.
Reimplemented from KMimeType. |
|
||||||||||||
|
Invokes the default action for the desktop entry. If the desktop entry is not local, then only false is returned. Otherwise we would create a security problem. Only types Link and Mimetype could be followed.
|
|
||||||||||||
|
|
1.2.18