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

KDECore

ksycoca.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 KSYCOCA_H
00020 #define KSYCOCA_H
00021 
00022 #include <kdecore_export.h>
00023 #include <ksycocatype.h>
00024 
00025 #include <QtCore/QObject>
00026 #include <QtCore/QStringList>
00027 
00028 class QDataStream;
00029 class KSycocaFactory;
00030 class KSycocaFactoryList;
00031 class KSycocaPrivate;
00032 
00036 #define KBUILDSYCOCA_EXENAME "kbuildsycoca4"
00037 
00042 class KDECORE_EXPORT KSycoca : public QObject
00043 {
00044   Q_OBJECT
00045   //Q_CLASSINFO("D-Bus Interface", "org.kde.KSycoca")
00046 
00047 protected:
00052    explicit KSycoca( bool /* buildDatabase */ );
00053 
00054 public:
00059    typedef enum { LocalDatabase, GlobalDatabase } DatabaseType;
00060 
00064    KSycoca();
00065 
00069    static KSycoca *self();
00070 
00071    virtual ~KSycoca();
00072 
00076    static int version();
00077 
00083    static bool isAvailable();
00084 
00089    QDataStream *findEntry(int offset, KSycocaType &type);
00093    QDataStream *findFactory( KSycocaFactoryId id);
00097    QString kfsstnd_prefixes();
00107    static QString absoluteFilePath(DatabaseType type=LocalDatabase);
00111    QString language();
00112 
00119    quint32 timeStamp();
00120 
00130    quint32 updateSignature();
00131 
00136    QStringList allResourceDirs();
00137 
00141    void addFactory( KSycocaFactory * );
00142 
00147    virtual bool isBuilding();
00148 
00152    void disableAutoRebuild();
00153 
00159    static bool isChanged(const char *type);
00160 
00164    static void flagError();
00165 
00169    static bool readError();
00170 
00171 private Q_SLOTS:
00175    void notifyDatabaseChanged(const QStringList &);
00176 
00177 Q_SIGNALS:
00182     void databaseChanged(); // KDE5 TODO: pass const QStringList& changedList here, remove isChanged()
00183 
00184 protected:
00185     KSycocaFactoryList* factories();
00186 
00187     // @internal used by kbuildsycoca
00188     QDataStream *m_str;
00189 
00190 private:
00191     Q_DISABLE_COPY(KSycoca)
00192     friend class KSycocaPrivate;
00193     KSycocaPrivate * const d;
00194 };
00195 
00196 #endif
00197 

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