• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KDECore

  • kdecore
  • services
kservicegroup_p.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 Copyright (C) 2000 Waldo Bastian <bastian@kde.org>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License version 2 as published by the Free Software Foundation.
7
8 This library is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
12
13 You should have received a copy of the GNU Library General Public License
14 along with this library; see the file COPYING.LIB. If not, write to
15 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 Boston, MA 02110-1301, USA.
17*/
18
19#ifndef KSERVICEGROUPPRIVATE_H
20#define KSERVICEGROUPPRIVATE_H
21
22#include "kservicegroup.h"
23#include <ksycocaentry_p.h>
24
25#include <QtCore/QStringList>
26
27class KServiceGroupPrivate : public KSycocaEntryPrivate
28{
29public:
30 K_SYCOCATYPE( KST_KServiceGroup, KSycocaEntryPrivate )
31
32 KServiceGroupPrivate(const QString &path)
33 : KSycocaEntryPrivate(path),
34 m_bNoDisplay(false), m_bShowEmptyMenu(false), m_bShowInlineHeader(false), m_bInlineAlias(false),
35 m_bAllowInline(false), m_inlineValue(4), m_bDeep(false), m_childCount(-1)
36 {
37 }
38
39 KServiceGroupPrivate(QDataStream &str, int offset)
40 : KSycocaEntryPrivate(str, offset),
41 m_bNoDisplay(false), m_bShowEmptyMenu(false), m_bShowInlineHeader(false), m_bInlineAlias(false),
42 m_bAllowInline(false), m_inlineValue(4), m_bDeep(false), m_childCount(-1)
43
44 {
45 }
46
47 virtual void save(QDataStream &s);
48
49 virtual QString name() const
50 {
51 return path;
52 }
53
54 void load(const QString &cfg);
55 void load(QDataStream &s);
56
57 int childCount() const;
58
59 KServiceGroup::List
60 entries(KServiceGroup *group, bool sort, bool excludeNoDisplay, bool allowSeparators, bool sortByGenericName);
64 void parseAttribute( const QString &item , bool &showEmptyMenu, bool &showInline, bool &showInlineHeader, bool & showInlineAlias ,int &inlineValue );
65
66
67 bool m_bNoDisplay : 1;
68 bool m_bShowEmptyMenu : 1;
69 bool m_bShowInlineHeader : 1;
70 bool m_bInlineAlias : 1;
71 bool m_bAllowInline : 1;
72 int m_inlineValue;
73 QStringList suppressGenericNames;
74 QString directoryEntryPath;
75 QStringList sortOrder;
76 QString m_strCaption;
77 QString m_strIcon;
78 QString m_strComment;
79
80 KServiceGroup::List m_serviceList;
81 bool m_bDeep;
82 QString m_strBaseGroupName;
83 mutable int m_childCount;
84};
85
86class KServiceSeparator : public KSycocaEntry //krazy:exclude=dpointer (dummy class)
87{
88public:
89 typedef KSharedPtr<KServiceSeparator> Ptr;
90public:
94 KServiceSeparator();
95
96};
97
98
99#endif
KServiceGroupPrivate
Definition: kservicegroup_p.h:28
KServiceGroupPrivate::m_inlineValue
int m_inlineValue
Definition: kservicegroup_p.h:72
KServiceGroupPrivate::directoryEntryPath
QString directoryEntryPath
Definition: kservicegroup_p.h:74
KServiceGroupPrivate::m_serviceList
KServiceGroup::List m_serviceList
Definition: kservicegroup_p.h:80
KServiceGroupPrivate::save
virtual void save(QDataStream &s)
Definition: kservicegroup.cpp:269
KServiceGroupPrivate::parseAttribute
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
KServiceGroupPrivate::m_bShowInlineHeader
bool m_bShowInlineHeader
Definition: kservicegroup_p.h:69
KServiceGroupPrivate::m_bNoDisplay
bool m_bNoDisplay
Definition: kservicegroup_p.h:67
KServiceGroupPrivate::entries
KServiceGroup::List entries(KServiceGroup *group, bool sort, bool excludeNoDisplay, bool allowSeparators, bool sortByGenericName)
Definition: kservicegroup.cpp:371
KServiceGroupPrivate::m_bShowEmptyMenu
bool m_bShowEmptyMenu
Definition: kservicegroup_p.h:68
KServiceGroupPrivate::name
virtual QString name() const
Definition: kservicegroup_p.h:49
KServiceGroupPrivate::m_strBaseGroupName
QString m_strBaseGroupName
Definition: kservicegroup_p.h:82
KServiceGroupPrivate::sortOrder
QStringList sortOrder
Definition: kservicegroup_p.h:75
KServiceGroupPrivate::m_bAllowInline
bool m_bAllowInline
Definition: kservicegroup_p.h:71
KServiceGroupPrivate::load
void load(const QString &cfg)
Definition: kservicegroup.cpp:51
KServiceGroupPrivate::m_bDeep
bool m_bDeep
Definition: kservicegroup_p.h:81
KServiceGroupPrivate::suppressGenericNames
QStringList suppressGenericNames
Definition: kservicegroup_p.h:73
KServiceGroupPrivate::m_strCaption
QString m_strCaption
Definition: kservicegroup_p.h:76
KServiceGroupPrivate::KServiceGroupPrivate
KServiceGroupPrivate(QDataStream &str, int offset)
Definition: kservicegroup_p.h:39
KServiceGroupPrivate::m_bInlineAlias
bool m_bInlineAlias
Definition: kservicegroup_p.h:70
KServiceGroupPrivate::childCount
int childCount() const
Definition: kservicegroup.cpp:123
KServiceGroupPrivate::m_strIcon
QString m_strIcon
Definition: kservicegroup_p.h:77
KServiceGroupPrivate::m_strComment
QString m_strComment
Definition: kservicegroup_p.h:78
KServiceGroupPrivate::m_childCount
int m_childCount
Definition: kservicegroup_p.h:83
KServiceGroup
KServiceGroup represents a group of service, for example screensavers.
Definition: kservicegroup.h:63
KServiceSeparator
Definition: kservicegroup_p.h:87
KServiceSeparator::Ptr
KSharedPtr< KServiceSeparator > Ptr
Definition: kservicegroup_p.h:89
KServiceSeparator::KServiceSeparator
KServiceSeparator()
Construct a service separator.
Definition: kservicegroup.cpp:759
KSharedPtr
Can be used to control the lifetime of an object that has derived QSharedData.
Definition: ksharedptr.h:64
KSycocaEntryPrivate
Definition: ksycocaentry_p.h:30
KSycocaEntryPrivate::path
QString path
Definition: ksycocaentry_p.h:77
KSycocaEntryPrivate::offset
int offset
Definition: ksycocaentry_p.h:75
KSycocaEntry
Base class for all Sycoca entries.
Definition: ksycocaentry.h:42
QList< SPtr >
QStringList
QString
kservicegroup.h
ksycocaentry_p.h
K_SYCOCATYPE
#define K_SYCOCATYPE(type, baseclass)
Definition: ksycocaentry_p.h:24
KST_KServiceGroup
@ KST_KServiceGroup
Definition: ksycocatype.h:33
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

KDE's Doxygen guidelines are available online.

KDECore

Skip menu "KDECore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal