KSycocaEntry Class
Base class for all Sycoca entries. More...
| Header: | #include <KSycocaEntry> |
| CMake: | find_package(KF6 REQUIRED COMPONENTS Service)target_link_libraries(mytarget PRIVATE KF6::Service) |
| Inherits: | QSharedData |
| Inherited By: |
Public Types
Public Functions
| QString | entryPath() const |
| bool | isDeleted() const |
| bool | isSeparator() const |
| bool | isType(KSycocaType t) const |
| bool | isValid() const |
| QString | name() const |
| void | setDeleted(bool deleted) |
| QString | storageId() const |
Detailed Description
You can't create an instance of KSycocaEntry, but it provides the common functionality for servicetypes and services.
See also http://techbase.kde.org/Development/Architecture/KDE3/System_Configuration_Cache.
Member Type Documentation
KSycocaEntry::List
A list of shared data pointers for KSycocaEntry.
KSycocaEntry::Ptr
A shared data pointer for KSycocaEntry.
Member Function Documentation
QString KSycocaEntry::entryPath() const
Returns the path of this entry The path can be absolute or relative. The corresponding factory should know relative to what.
bool KSycocaEntry::isDeleted() const
Returns true if deleted
bool KSycocaEntry::isSeparator() const
Returns true, if this is a separator
bool KSycocaEntry::isType(KSycocaType t) const
Returns true if this sycoca entry is of the given type t.
bool KSycocaEntry::isValid() const
Returns true if valid
QString KSycocaEntry::name() const
Returns the name of this entry
void KSycocaEntry::setDeleted(bool deleted)
Sets whether or not this service is deleted
See also isDeleted().
QString KSycocaEntry::storageId() const
Returns the unique ID for this entry
In practice, this is storageId() for KService and name() for everything else.