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

KDECore

kservicegroup_p.h

Go to the documentation of this file.
00001 /* This file is part of the KDE project
00002    Copyright (C) 2000 Waldo Bastian <bastian@kde.org>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License version 2 as published by the Free Software Foundation.
00007 
00008    This library is distributed in the hope that it will be useful,
00009    but WITHOUT ANY WARRANTY; without even the implied warranty of
00010    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011    Library General Public License for more details.
00012 
00013    You should have received a copy of the GNU Library General Public License
00014    along with this library; see the file COPYING.LIB.  If not, write to
00015    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00016    Boston, MA 02110-1301, USA.
00017 */
00018 
00019 #ifndef KSERVICEGROUPPRIVATE_H
00020 #define KSERVICEGROUPPRIVATE_H
00021 
00022 #include "kservicegroup.h"
00023 #include <ksycocaentry_p.h>
00024 
00025 #include <QtCore/QStringList>
00026 
00027 class KServiceGroupPrivate : public KSycocaEntryPrivate
00028 {
00029 public:
00030     K_SYCOCATYPE( KST_KServiceGroup, KSycocaEntryPrivate )
00031 
00032     KServiceGroupPrivate(const QString &path) 
00033         : KSycocaEntryPrivate(path),
00034           m_bNoDisplay(false), m_bShowEmptyMenu(false), m_bShowInlineHeader(false), m_bInlineAlias(false),
00035           m_bAllowInline(false), m_inlineValue(4), m_bDeep(false), m_childCount(-1)
00036     {
00037     }
00038 
00039     KServiceGroupPrivate(QDataStream &str, int offset) 
00040         : KSycocaEntryPrivate(str, offset),
00041           m_bNoDisplay(false), m_bShowEmptyMenu(false), m_bShowInlineHeader(false), m_bInlineAlias(false),
00042           m_bAllowInline(false), m_inlineValue(4), m_bDeep(false), m_childCount(-1)
00043 
00044     {
00045     }
00046 
00047     virtual void save(QDataStream &s);
00048 
00049     virtual QString name() const
00050     {
00051         return path;
00052     }
00053 
00054     void load(const QString &cfg);
00055     void load(QDataStream &s);
00056 
00057     int childCount() const;
00058 
00059     KServiceGroup::List
00060     entries(KServiceGroup *group, bool sort, bool excludeNoDisplay, bool allowSeparators, bool sortByGenericName);
00064     void parseAttribute( const QString &item ,  bool &showEmptyMenu, bool &showInline, bool &showInlineHeader, bool & showInlineAlias ,int &inlineValue );
00065 
00066 
00067     bool m_bNoDisplay : 1;
00068     bool m_bShowEmptyMenu : 1;
00069     bool m_bShowInlineHeader : 1;
00070     bool m_bInlineAlias : 1;
00071     bool m_bAllowInline : 1;
00072     int m_inlineValue;
00073     QStringList suppressGenericNames;
00074     QString directoryEntryPath;
00075     QStringList sortOrder;
00076     QString m_strCaption;
00077     QString m_strIcon;
00078     QString m_strComment;
00079 
00080     KServiceGroup::List m_serviceList;
00081     bool m_bDeep;
00082     QString m_strBaseGroupName;
00083     mutable int m_childCount;
00084 };
00085 
00086 class KServiceSeparator : public KSycocaEntry //krazy:exclude=dpointer (dummy class)
00087 {
00088 public:
00089   typedef KSharedPtr<KServiceSeparator> Ptr;
00090 public:
00094   KServiceSeparator();
00095 
00096 };
00097 
00098 
00099 #endif

KDECore

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • 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
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal