KDECore
kservicegroup.cpp
Go to the documentation of this file.
310 List tmp = d->entries(this, sort, options & ExcludeNoDisplay, options & AllowSeparators, options & SortByGenericName);
327 List tmp = d->entries(this, sort, options & ExcludeNoDisplay, options & AllowSeparators, options & SortByGenericName);
356KServiceGroup::entries(bool sort, bool excludeNoDisplay, bool allowSeparators, bool sortByGenericName)
371KServiceGroupPrivate::entries(KServiceGroup *group, bool sort, bool excludeNoDisplay, bool allowSeparators, bool sortByGenericName)
404 KSortableList<KServiceGroup::SPtr,QByteArray> & list = p->isType(KST_KServiceGroup) ? glist : slist;
461 for(KSortableList<KServiceGroup::SPtr,QByteArray>::Iterator it2 = glist.begin(); it2 != glist.end(); ++it2)
476 for(KSortableList<KServiceGroup::SPtr,QByteArray>::Iterator it2 = slist.begin(); it2 != slist.end(); ++it2)
519 for ( QStringList::Iterator it3 = optionAttribute.begin(); it3 != optionAttribute.end(); ++it3 )
521 parseAttribute( *it3, showEmptyMenu, showInline, showInlineHeader, showInlineAlias, inlineValue );
523 for(KSortableList<KServiceGroup::SPtr,QByteArray>::Iterator it2 = glist.begin(); it2 != glist.end(); ++it2)
537 for(KSortableList<KServiceGroup::SPtr,QByteArray>::const_iterator it2 = glist.constBegin(); it2 != glist.constEnd(); ++it2)
545 for(KSortableList<KServiceGroup::SPtr,QByteArray>::const_iterator it2 = slist.constBegin(); it2 != slist.constEnd(); ++it2)
620 parseAttribute( opt_attr, bShowEmptyMenu, bShowInline, bShowInlineHeader, bShowInlineAlias , inlineValue );
658void KServiceGroupPrivate::parseAttribute( const QString &item , bool &showEmptyMenu, bool &showInline, bool &showInlineHeader, bool & showInlineAlias , int &inlineValue )
727 return KServiceGroupFactory::self()->findGroupByDesktopPath(QString::fromLatin1("#parent#")+parent, true);
bool noDisplay() const
Whether the entry should be suppressed in menus.
Definition: kdesktopfile.cpp:391
virtual KService::Ptr findServiceByDesktopPath(const QString &_name)
Find a service ( by desktop path, e.g.
Definition: kservicefactory.cpp:127
virtual KServiceGroup::Ptr findGroupByDesktopPath(const QString &_name, bool deep=true)
Find a group ( by desktop path, e.g.
Definition: kservicegroupfactory.cpp:65
KServiceGroup::Ptr findBaseGroup(const QString &_baseGroupName, bool deep=true)
Find a base group by name, e.g.
Definition: kservicegroupfactory.cpp:82
static KServiceGroupFactory * self()
Definition: kservicegroupfactory.cpp:60
Definition: kservicegroup_p.h:28
KServiceGroup::List m_serviceList
Definition: kservicegroup_p.h:80
void parseAttribute(const QString &item, bool &showEmptyMenu, bool &showInline, bool &showInlineHeader, bool &showInlineAlias, int &inlineValue)
This function parse attributes into menu.
Definition: kservicegroup.cpp:658
KServiceGroup::List entries(KServiceGroup *group, bool sort, bool excludeNoDisplay, bool allowSeparators, bool sortByGenericName)
Definition: kservicegroup.cpp:371
QStringList suppressGenericNames
Definition: kservicegroup_p.h:73
KServiceGroup represents a group of service, for example screensavers.
Definition: kservicegroup.h:63
void setLayoutInfo(const QStringList &layout)
Definition: kservicegroup.cpp:691
QStringList suppressGenericNames() const
Returns a list of untranslated generic names that should be be suppressed when showing this group.
Definition: kservicegroup.cpp:216
QString comment() const
Returns the comment about this service group.
Definition: kservicegroup.cpp:111
int childCount() const
Returns the total number of displayable services in this group and any of its subgroups.
Definition: kservicegroup.cpp:117
QString relPath() const
Returns the relative path of the service group.
Definition: kservicegroup.cpp:94
static Ptr group(const QString &relPath)
Returns the group with the given relative path.
Definition: kservicegroup.cpp:718
static Ptr childGroup(const QString &parent)
Returns the group of services that have X-KDE-ParentApp equal to parent (siblings).
Definition: kservicegroup.cpp:725
List entries(bool sorted, bool excludeNoDisplay, bool allowSeparators, bool sortByGenericName=false)
List of all Services and ServiceGroups within this ServiceGroup.
Definition: kservicegroup.cpp:356
bool noDisplay() const
Returns true if the NoDisplay flag was set, i.e.
Definition: kservicegroup.cpp:210
KService::List serviceEntries(EntriesOptions options=ExcludeNoDisplay)
entries of this service group
Definition: kservicegroup.cpp:322
QString directoryEntryPath() const
Returns a path to the .directory file describing this service group.
Definition: kservicegroup.cpp:736
QList< Ptr > groupEntries(EntriesOptions options=ExcludeNoDisplay)
subgroups for this service group
Definition: kservicegroup.cpp:305
void setShowInlineHeader(bool _b)
Definition: kservicegroup.cpp:180
bool showEmptyMenu() const
Return true if we want to display empty menu entry.
Definition: kservicegroup.cpp:156
QString icon() const
Returns the name of the icon associated with the group.
Definition: kservicegroup.cpp:105
KServiceGroup(const QString &name)
Construct a dummy servicegroup indexed with name.
Definition: kservicegroup.cpp:34
static Ptr baseGroup(const QString &baseGroupName)
Returns the group for the given baseGroupName.
Definition: kservicegroup.cpp:705
QString baseGroupName() const
Returns a non-empty string if the group is a special base group.
Definition: kservicegroup.cpp:730
void addEntry(const KSycocaEntry::Ptr &entry)
Definition: kservicegroup.cpp:263
Definition: kservicegroup_p.h:87
Represent a service, like an application or plugin bound to one or several mimetypes (or servicetypes...
Definition: kservice.h:59
bool noDisplay() const
Whether the entry should be suppressed in the K menu.
Definition: kservice.cpp:704
KSortableList is a QList which associates a key with each item in the list.
Definition: ksortablelist.h:145
void insert(Key i, const T &t)
Insert a KSortableItem with the given values.
Definition: ksortablelist.h:152
Definition: ksycocaentry_p.h:30
virtual QString name() const =0
Definition: kaboutdata.h:33
static void addItem(KServiceGroup::List &sorted, const KSycocaEntry::Ptr &p, bool &addSeparator)
Definition: kservicegroup.cpp:362
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.