KDECore
Go to the documentation of this file.
19 #ifndef KSERVICEGROUP_H
20 #define KSERVICEGROUP_H
26 class KBuildServiceGroupFactory;
64 friend class KBuildServiceGroupFactory;
81 KServiceGroup(
const QString & _fullpath,
const QString & _relpath );
95 QString relPath()
const;
108 QString icon()
const;
115 QString comment()
const;
122 int childCount()
const;
129 bool noDisplay()
const;
135 bool showEmptyMenu()
const;
136 void setShowEmptyMenu(
bool b);
141 bool showInlineHeader()
const;
142 void setShowInlineHeader(
bool _b);
147 bool inlineAlias()
const;
148 void setInlineAlias(
bool _b);
152 bool allowInline()
const;
153 void setAllowInline(
bool _b);
158 int inlineValue()
const;
159 void setInlineValue(
int _val);
168 QStringList suppressGenericNames()
const;
174 void setLayoutInfo(
const QStringList &layout);
180 QStringList layoutInfo()
const;
191 List entries(
bool sorted,
bool excludeNoDisplay,
bool allowSeparators,
bool sortByGenericName=
false);
192 List entries(
bool sorted,
bool excludeNoDisplay);
200 List entries(
bool sorted =
false);
209 ExcludeNoDisplay = 0x2,
210 AllowSeparators = 0x4,
211 SortByGenericName = 0x8
213 Q_DECLARE_FLAGS(EntriesOptions, EntriesOption)
218 QList<Ptr> groupEntries(EntriesOptions options = ExcludeNoDisplay);
223 KService::List serviceEntries(EntriesOptions options = ExcludeNoDisplay);
235 QString baseGroupName()
const;
241 QString directoryEntryPath()
const;
252 #ifndef KDE_NO_DEPRECATED
253 static KDE_DEPRECATED Ptr baseGroup(
const QString &baseGroupName );
267 static Ptr
group(
const QString &relPath);
275 static Ptr childGroup(
const QString &parent);
KServiceGroup represents a group of service, for example screensavers.
EntriesOption
options for groupEntries and serviceEntries
KSharedPtr< KServiceGroup > Ptr
KSharedPtr< KSycocaEntry > SPtr
Can be used to control the lifetime of an object that has derived QSharedData.
Base class for all Sycoca entries.
QString caption()
Returns a text for the window caption.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Jan 26 2021 00:00:00 by
doxygen 1.9.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.