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

KDECore

kservicetype_p.h

Go to the documentation of this file.
00001 /* This file is part of the KDE project
00002 Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
00003 1999 Waldo Bastian <bastian@kde.org>
00004 
00005 This library is free software; you can redistribute it and/or
00006 modify it under the terms of the GNU Library General Public
00007 License as published by the Free Software Foundation; either
00008 version 2 of the License, or (at your option) any later version.
00009 
00010 This library is distributed in the hope that it will be useful,
00011 but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013 Library General Public License for more details.
00014 
00015 You should have received a copy of the GNU Library General Public License
00016 along with this library; see the file COPYING.LIB.  If not, write to
00017 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018 Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef __kservicetype_p_h__
00022 #define __kservicetype_p_h__
00023 
00024 #include "kservicetype.h"
00025 #include <ksycocaentry_p.h>
00026 #include <kurl.h>
00027 
00028 class KServiceTypePrivate : public KSycocaEntryPrivate
00029 {
00030 public:
00031     K_SYCOCATYPE( KST_KServiceType, KSycocaEntryPrivate )
00032 
00033     KServiceTypePrivate(const QString &path)
00034         : KSycocaEntryPrivate(path),
00035           m_serviceOffersOffset( -1 ), m_bDerived(false), m_parentTypeLoaded(false)
00036     {
00037     }
00038 
00039     KServiceTypePrivate(QDataStream &_str, int offset)
00040         : KSycocaEntryPrivate(_str, offset),
00041           m_serviceOffersOffset( -1 ), m_bDerived(false), m_parentTypeLoaded(false)
00042     {
00043     }
00044 
00045     virtual ~KServiceTypePrivate() {}
00046 
00047     virtual void save( QDataStream& );
00048 
00049     virtual QString name() const
00050     {
00051         return m_strName;
00052     }
00053 
00054     virtual QVariant property(const QString &name) const;
00055 
00056     virtual QStringList propertyNames() const;
00057 
00058     virtual QString comment(const KUrl & = KUrl()) const
00059     {
00060         return m_strComment;
00061     }
00062 
00063     virtual int serviceOffersOffset() const { return m_serviceOffersOffset; }
00064 
00065     void init( KDesktopFile *config );
00066     void load(QDataStream& _str);
00067 
00068     KServiceType::Ptr parentType;
00069     QString m_strName;
00070     mutable /*remove mutable when kmimetype doesn't use this anymore*/ QString m_strComment;
00071     int m_serviceOffersOffset;
00072     QMap<QString, QVariant::Type> m_mapPropDefs;
00073     QMap<QString,QVariant> m_mapProps;
00074     unsigned m_bDerived: 1;
00075     unsigned m_parentTypeLoaded: 1;
00076 };
00077 
00078 #endif // __kservicetype_p_h__
00079 

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