• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDECore

ksycocaentry.h

Go to the documentation of this file.
00001 /*  This file is part of the KDE libraries
00002  *  Copyright (C) 1999 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 KSYCOCAENTRY_H
00020 #define KSYCOCAENTRY_H
00021 
00022 #include <kglobal.h>
00023 #include <ksycocatype.h>
00024 #include <ksharedptr.h>
00025 
00026 #include <QtCore/QDataStream>
00027 #include <QtCore/QStringList>
00028 #include <QtCore/QVariant>
00029 
00030 class KSycocaEntryPrivate;
00031 
00041 class KDECORE_EXPORT KSycocaEntry : public KShared
00042 {
00043 
00044 public:
00045    /*
00046     * constructs a invalid KSycocaEntry object
00047     */
00048    KSycocaEntry();
00049 
00050    virtual ~KSycocaEntry();
00051 
00055    bool isType(KSycocaType t) const;
00059    KSycocaType sycocaType() const;
00060 
00061    typedef KSharedPtr<KSycocaEntry> Ptr;
00062    typedef QList<Ptr> List;
00063 
00067 //   explicit KSycocaEntry(const QString &path);
00068 
00072    static void read( QDataStream &s, QString &str );
00073    static void read( QDataStream &s, QStringList &list );
00074 
00075 
00079    QString name() const;
00080 
00086    QString entryPath() const;
00087 
00091    bool isValid() const;
00092 
00096    bool isDeleted() const;
00097 
00106    QVariant property(const QString &name) const;
00107 
00113     QStringList propertyNames() const;
00114 
00118    void setDeleted( bool deleted );
00119 
00120    
00121    /*
00122     * @returns true, if this is a separator
00123     */
00124    bool isSeparator() const;
00125 
00130    int offset() const;
00131 
00137    void save(QDataStream &s);
00138 
00139 //   KSycocaEntry(const KSycocaEntry &copy);
00140 //   KSycocaEntry &operator=(const KSycocaEntry &right);
00141 protected:
00142    KSycocaEntry(KSycocaEntryPrivate &d);
00143    KSycocaEntryPrivate *d_ptr;
00144 
00145 private:
00146     Q_DISABLE_COPY(KSycocaEntry)
00147 
00148     Q_DECLARE_PRIVATE(KSycocaEntry)
00149 };
00150 
00151 #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
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
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