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);
356 KServiceGroup::entries(bool sort, bool excludeNoDisplay, bool allowSeparators, bool sortByGenericName)
362 static void addItem(KServiceGroup::List &sorted, const KSycocaEntry::Ptr &p, bool &addSeparator)
371 KServiceGroupPrivate::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 );
658 void 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);
virtual KService::Ptr findServiceByDesktopPath(const QString &_name)
Find a service ( by desktop path, e.g.
Definition: kservicefactory.cpp:127
KServiceGroup::Ptr findBaseGroup(const QString &_baseGroupName, bool deep=true)
Find a base group by name, e.g.
Definition: kservicegroupfactory.cpp:82
bool noDisplay() const
Returns true if the NoDisplay flag was set, i.e.
Definition: kservicegroup.cpp:210
QString directoryEntryPath() const
Returns a path to the .directory file describing this service group.
Definition: kservicegroup.cpp:736
KServiceGroup represents a group of service, for example screensavers.
Definition: kservicegroup.h:62
bool noDisplay() const
Whether the entry should be suppressed in the K menu.
Definition: kservice.cpp:704
Definition: kservicegroup_p.h:27
Definition: kmacroexpander_unix.cpp:34
QString relPath() const
Returns the relative path of the service group.
Definition: kservicegroup.cpp:94
KServiceGroup(const QString &name)
Construct a dummy servicegroup indexed with name.
Definition: kservicegroup.cpp:34
Represent a service, like an application or plugin bound to one or several mimetypes (or servicetypes...
Definition: kservice.h:58
QString icon() const
Returns the name of the icon associated with the group.
Definition: kservicegroup.cpp:105
KService::List serviceEntries(EntriesOptions options=ExcludeNoDisplay)
entries of this service group
Definition: kservicegroup.cpp:322
void insert(Key i, const T &t)
Insert a KSortableItem with the given values.
Definition: ksortablelist.h:152
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
QList< Ptr > groupEntries(EntriesOptions options=ExcludeNoDisplay)
subgroups for this service group
Definition: kservicegroup.cpp:305
bool noDisplay() const
Whether the entry should be suppressed in menus.
Definition: kdesktopfile.cpp:391
Definition: ksycocatype.h:31
QString baseGroupName() const
Returns a non-empty string if the group is a special base group.
Definition: kservicegroup.cpp:730
KServiceGroup::List entries(KServiceGroup *group, bool sort, bool excludeNoDisplay, bool allowSeparators, bool sortByGenericName)
Definition: kservicegroup.cpp:371
Definition: kservicegroup_p.h:86
void addEntry(const KSycocaEntry::Ptr &entry)
Definition: kservicegroup.cpp:263
static KServiceGroupFactory * self()
Definition: kservicegroupfactory.cpp:60
int childCount() const
Returns the total number of displayable services in this group and any of its subgroups.
Definition: kservicegroup.cpp:117
List entries(bool sorted, bool excludeNoDisplay, bool allowSeparators, bool sortByGenericName=false)
List of all Services and ServiceGroups within this ServiceGroup.
Definition: kservicegroup.cpp:356
QString menuId() const
Returns the menu ID of the service desktop entry.
Definition: kservice.cpp:771
Definition: kservicegroup.h:208
static void addItem(KServiceGroup::List &sorted, const KSycocaEntry::Ptr &p, bool &addSeparator)
Definition: kservicegroup.cpp:362
void setLayoutInfo(const QStringList &layout)
Definition: kservicegroup.cpp:691
Definition: ksycocatype.h:34
KSortableList is a QList which associates a key with each item in the list.
Definition: ksortablelist.h:144
static Ptr childGroup(const QString &parent)
Returns the group of services that have X-KDE-ParentApp equal to parent (siblings).
Definition: kservicegroup.cpp:725
QStringList suppressGenericNames() const
Returns a list of untranslated generic names that should be be suppressed when showing this group...
Definition: kservicegroup.cpp:216
static Ptr baseGroup(const QString &baseGroupName)
Returns the group for the given baseGroupName.
Definition: kservicegroup.cpp:705
bool showEmptyMenu() const
Return true if we want to display empty menu entry.
Definition: kservicegroup.cpp:156
Definition: ksycocaentry_p.h:29
QStringList suppressGenericNames
Definition: kservicegroup_p.h:73
QString comment() const
Returns the comment about this service group.
Definition: kservicegroup.cpp:111
Definition: ksycocatype.h:33
static Ptr group(const QString &relPath)
Returns the group with the given relative path.
Definition: kservicegroup.cpp:718
T readEntry(const QString &key, const T &aDefault) const
Reads the value of an entry specified by pKey in the current group.
Definition: kconfiggroup.h:248
KServiceGroup::List m_serviceList
Definition: kservicegroup_p.h:80
Definition: kaboutdata.h:33
virtual QString name() const =0
void setShowInlineHeader(bool _b)
Definition: kservicegroup.cpp:180
virtual KServiceGroup::Ptr findGroupByDesktopPath(const QString &_name, bool deep=true)
Find a group ( by desktop path, e.g.
Definition: kservicegroupfactory.cpp:65
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.