KSycocaEntry Class Reference
from PyKDE4.kdecore import *
Detailed Description
Base class for all Sycoca entries.
You can't create an instance of KSycocaEntry, but it provides
the common functionality for servicetypes and services.
- Internal:
-
- See also:
- http://techbase.kde.org/Development/Architecture/KDE3/System_Configuration_Cache
Method Documentation
QString entryPath |
( |
|
self ) |
|
- Returns:
- the path of this entry
The path can be absolute or relative.
The corresponding factory should know relative to what.
bool isSeparator |
( |
|
self ) |
|
- Returns:
- the name of this entry
- Internal:
-
- Returns:
- the position of the entry in the sycoca file
QVariant property |
( |
self, |
|
|
|
QString |
name |
|
) |
|
|
|
Returns the requested property. Some often used properties
have convenience access functions like exec(),
serviceTypes etc.
- Parameters:
-
| name | the name of the property
|
- Returns:
- the property, or invalid if not found
QStringList propertyNames |
( |
|
self ) |
|
Returns the list of all properties that this service can have.
That means, that some of these properties may be empty.
- Returns:
- the list of supported properties
save |
( |
self, |
|
|
|
QDataStream |
s |
|
) |
|
|
|
- Internal:
-
Save ourselves to the database.
setDeleted |
( |
self, |
|
|
|
bool |
deleted |
|
) |
|
|
|
Sets whether or not this service is deleted
QString storageId |
( |
|
self ) |
|
- Returns:
- the unique ID for this entry
In practice, this is storageId() for KService and name() for everything else.
- Since:
- 4.2.1
Static Method Documentation
read |
( |
QDataStream |
s, |
|
|
QString |
str |
|
) |
|
|
|
Safe demarshalling functions.
read |
( |
QDataStream |
s, |
|
|
QStringList |
list |
|
) |
|
|
|
Safe demarshalling functions.