• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.10.1 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 
27 class KServiceGroupPrivate : public KSycocaEntryPrivate
28 {
29 public:
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 
86 class KServiceSeparator : public KSycocaEntry //krazy:exclude=dpointer (dummy class)
87 {
88 public:
89  typedef KSharedPtr<KServiceSeparator> Ptr;
90 public:
94  KServiceSeparator();
95 
96 };
97 
98 
99 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Wed Mar 20 2013 07:14:36 by doxygen 1.8.3.1 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.10.1 API Reference

Skip menu "kdelibs-4.10.1 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