#include <kservice.h>
Inheritance diagram for KService:

Public Types | |
| typedef KSharedPtr< KService > | Ptr |
| typedef QValueList< Ptr > | List |
| enum | DCOPServiceType_t |
Public Methods | |
| KService (const QString &_name, const QString &_exec, const QString &_icon) | |
| KService (const QString &_fullpath) | |
| KService (KDesktopFile *config) | |
| virtual QString | type () const |
| virtual QString | name () const |
| QString | exec () const |
| QString | library () const |
| QString | init () const |
| QString | icon () const |
| QPixmap | pixmap (KIcon::Group _group, int _force_size=0, int _state=0, QString *_path=0L) const |
| bool | terminal () const |
| QString | terminalOptions () const |
| bool | substituteUid () const |
| QString | username () const |
| QString | desktopEntryPath () const |
| QString | desktopEntryName () const |
| DCOPServiceType_t | DCOPServiceType () const |
| QString | path () const |
| QString | comment () const |
| QString | genericName () const |
| QStringList | keywords () const |
| QStringList | categories () const |
| QStringList | serviceTypes () const |
| bool | hasServiceType (const QString &_service) const |
| bool | allowAsDefault () const |
| bool | allowMultipleFiles () const |
| int | initialPreference () const |
| bool | noDisplay () const |
| QString | parentApp () const |
| virtual QVariant | property (const QString &_name) const |
| virtual QStringList | propertyNames () const |
| bool | isValid () const |
| virtual void | load (QDataStream &) |
| virtual void | save (QDataStream &) |
Static Public Methods | |
| Ptr | serviceByName (const QString &_name) |
| Ptr | serviceByDesktopPath (const QString &_name) |
| Ptr | serviceByDesktopName (const QString &_name) |
| List | allServices () |
| List | allInitServices () |
Protected Methods | |
| virtual void | virtual_hook (int id, void *data) |
A service may be a library, too. The starting point you need is often the static methods.
Definition at line 43 of file kservice.h.
|
|
Definition at line 162 of file kservice.h. Referenced by DCOPServiceType(). |
|
||||||||||||||||
|
Construct a temporary service with a given name, exec-line and icon. |
|
|
Construct a service and take all information from a config file.
|
|
|
Construct a service and take all information from a desktop file. |
|
|
|
|
|
Definition at line 215 of file kservice.h. |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 177 of file kservice.h. |
|
|
Definition at line 167 of file kservice.h. References DCOPServiceType_t. |
|
|
Definition at line 149 of file kservice.h. |
|
|
Definition at line 143 of file kservice.h. References KSycocaEntry::entryPath(). |
|
|
Definition at line 93 of file kservice.h. |
|
|
Definition at line 183 of file kservice.h. |
|
|
|
|
|
Definition at line 108 of file kservice.h. |
|
|
Definition at line 103 of file kservice.h. |
|
|
What preference to associate with this service initially (before the user has had any chance to define a profile for it) The bigger the value, the most preferred the service is. Definition at line 228 of file kservice.h. |
|
|
Implements KSycocaEntry. Definition at line 267 of file kservice.h. |
|
|
Definition at line 188 of file kservice.h. |
|
|
Definition at line 98 of file kservice.h. |
|
|
Implements KSycocaEntry. Definition at line 89 of file kservice.h. |
|
|
Whether the entry should be suppressed in menus. |
|
|
Name of the application this service belongs to. (Usefull for e.g. plugins)
|
|
|
Definition at line 172 of file kservice.h. |
|
||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
Find a service by the name of its desktop file, not depending on its actual location (as long as it's under the applnk or service directories). For instance "konqbrowser" or "kcookiejar". Note that the ".desktop" extension is implicit. This is the recommended method (safe even if the user moves stuff) but note that it assumes that no two entries have the same filename.
|
|
|
Find a service by its relative path to the applnk or services directory, for instance "Internet/konqbrowser.desktop". Better not use it for menu entries though, since the user can move them. It's ok to use it for services though (e.g. "http_cache_cleaner.desktop")
|
|
|
Find a service by name, i.e. the translated Name field. You should really not use this method, since the name is translated.
|
|
|
Definition at line 199 of file kservice.h. |
|
|
|
|
|
Definition at line 117 of file kservice.h. |
|
|
Definition at line 124 of file kservice.h. |
|
|
Definition at line 85 of file kservice.h. |
|
|
|
1.2.18