KService
kservicegroup.cpp
210 s >> m_strCaption >> m_strIcon >> m_strComment >> groupList >> m_strBaseGroupName >> m_childCount >> noDisplay >> suppressGenericNames >> directoryEntryPath
223 serviceGroup = KSycocaPrivate::self()->serviceGroupFactory()->findGroupByDesktopPath(path, false);
268 s << m_strCaption << m_strIcon << m_strComment << groupList << m_strBaseGroupName << m_childCount << noDisplay << suppressGenericNames << directoryEntryPath
277 const List tmp = d->entries(this, sort, options & ExcludeNoDisplay, options & AllowSeparators, options & SortByGenericName);
296 const List tmp = d->entries(this, sort, options & ExcludeNoDisplay, options & AllowSeparators, options & SortByGenericName);
321KServiceGroup::List KServiceGroup::entries(bool sort, bool excludeNoDisplay, bool allowSeparators, bool sortByGenericName)
336KServiceGroup::List KServiceGroupPrivate::entries(KServiceGroup *group, bool sort, bool excludeNoDisplay, bool allowSeparators, bool sortByGenericName)
367 bool noDisplay = p->isType(KST_KServiceGroup) ? static_cast<KServiceGroup *>(p.data())->noDisplay() : static_cast<KService *>(p.data())->noDisplay();
478 for (QStringList::Iterator it3 = optionAttribute.begin(); it3 != optionAttribute.end(); ++it3) {
479 parseAttribute(*it3, showEmptyMenu, showInline, showInlineHeader, showInlineAlias, inlineValue);
492 for (SortedContainer::const_iterator it2 = glist.constBegin(); it2 != glist.constEnd(); ++it2) {
497 for (SortedContainer::const_iterator it2 = slist.constBegin(); it2 != slist.constEnd(); ++it2) {
532 for (KServiceGroup::List::ConstIterator it2(group->d_func()->m_serviceList.constBegin()); it2 != group->d_func()->m_serviceList.constEnd(); ++it2) {
555 parseAttribute(opt_attr, bShowEmptyMenu, bShowInline, bShowInlineHeader, bShowInlineAlias, inlineValue);
572 for (KServiceGroup::List::ConstIterator it2(group->d_func()->m_serviceList.constBegin()); it2 != group->d_func()->m_serviceList.constEnd(); ++it2) {
658 return KSycocaPrivate::self()->serviceGroupFactory()->findGroupByDesktopPath(QLatin1String("#parent#") + parent, true);
QString readEntry(const char *key, const char *aDefault=nullptr) const
KServiceGroup represents a group of service, for example screensavers.
Definition kservicegroup.h:53
void setLayoutInfo(const QStringList &layout)
Definition kservicegroup.cpp:628
QStringList suppressGenericNames() const
Returns a list of untranslated generic names that should be be suppressed when showing this group.
Definition kservicegroup.cpp:196
int childCount() const
Returns the total number of displayable services in this group and any of its subgroups.
Definition kservicegroup.cpp:104
@ SortByGenericName
sort by GenericName+Name instead of Name+GenericName
Definition kservicegroup.h:205
QString relPath() const
Returns the relative path of the service group.
Definition kservicegroup.cpp:81
static Ptr group(const QString &relPath)
Returns the group with the given relative path.
Definition kservicegroup.cpp:646
static Ptr childGroup(const QString &parent)
Returns the group of services that have X-KDE-ParentApp equal to parent (siblings).
Definition kservicegroup.cpp:655
List entries(bool sorted, bool excludeNoDisplay, bool allowSeparators, bool sortByGenericName=false)
List of all Services and ServiceGroups within this ServiceGroup.
Definition kservicegroup.cpp:321
bool noDisplay() const
Returns true if the NoDisplay flag was set, i.e.
Definition kservicegroup.cpp:190
KService::List serviceEntries(EntriesOptions options=ExcludeNoDisplay)
entries of this service group
Definition kservicegroup.cpp:291
QString directoryEntryPath() const
Returns a path to the .directory file describing this service group.
Definition kservicegroup.cpp:666
QList< Ptr > groupEntries(EntriesOptions options=ExcludeNoDisplay)
subgroups for this service group
Definition kservicegroup.cpp:272
bool showEmptyMenu() const
Return true if we want to display empty menu entry.
Definition kservicegroup.cpp:136
QString icon() const
Returns the name of the icon associated with the group.
Definition kservicegroup.cpp:92
KServiceGroup(const QString &name)
Construct a dummy servicegroup indexed with name.
Definition kservicegroup.cpp:19
QString baseGroupName() const
Returns a non-empty string if the group is a special base group.
Definition kservicegroup.cpp:661
void addEntry(const KSycocaEntry::Ptr &entry)
Definition kservicegroup.cpp:238
QString genericName() const
Returns the generic name for the application, if there is one (e.g.
Definition kservice.cpp:714
static KSycoca * self()
Get or create the only instance of KSycoca (read-only)
Definition ksycoca.cpp:357
QString path(const QString &relativePath)
KIOCORE_EXPORT QStringList list(const QString &fileClass)
QString name(StandardAction id)
KGuiItem ok()
const char * constData() const const
char * data()
void resize(qsizetype newSize, char c)
qsizetype size() const const
ConstIterator
Iterator
void append(QList< T > &&value)
iterator begin()
iterator end()
iterator insert(const_iterator before, parameter_type value)
bool isEmpty() const const
void clear()
bool contains(QChar ch, Qt::CaseSensitivity cs) const const
bool endsWith(QChar c, Qt::CaseSensitivity cs) const const
bool isEmpty() const const
qsizetype lastIndexOf(QChar ch, Qt::CaseSensitivity cs) const const
qsizetype length() const const
bool startsWith(QChar c, Qt::CaseSensitivity cs) const const
QByteArray toLocal8Bit() const const
QStringView mid(qsizetype start, qsizetype length) const const
SkipEmptyParts
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:00:21 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:00:21 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.