KDECore
ksycoca.cpp
Go to the documentation of this file.
311 return self()->d->checkDatabase(KSycocaPrivate::IfNotFoundDoNothing/* don't open dummy db if not found */);
356 //kDebug(7011) << QThread::currentThread() << "got a notifyDatabaseChanged signal" << changeList;
397 kWarning(7011) << "Found version" << aVersion << ", expecting version" << KSYCOCA_VERSION << "or higher.";
419 const bool kdeinitRunning = QDBusConnection::sessionBus().interface()->isServiceRegistered(QString::fromLatin1("org.kde.klauncher"));
437 kDebug(7011) << QThread::currentThread() << "We have no database.... launching" << KBUILDSYCOCA_EXENAME;
532 QString path = KGlobal::dirs()->findResource("services", QString::fromLatin1(KSYCOCA_FILENAME));
572 // It deletes m_str which is a problem when flagError is called during the KSycocaFactory ctor...
QString saveLocation(const char *type, const QString &suffix=QString(), bool create=true) const
Finds a location to save files into for the given type in the user's home directory.
Definition: kstandarddirs.cpp:1478
This, instead of a typedef, allows to declare "class ..." in header files.
Definition: ksycocafactory.h:148
Definition: ksycocadevices_p.h:69
Definition: ksycoca.h:43
#define K_GLOBAL_STATIC(TYPE, NAME)
This macro makes it easy to use non-POD types as global statics.
Definition: kglobal.h:221
Definition: ksycoca_p.h:58
Definition: ksycocafactory.h:36
static bool isChanged(const char *type)
When you receive a "databaseChanged" signal, you can query here if a change has occurred in a specifi...
Definition: ksycoca.cpp:347
Definition: ksycocadevices_p.h:108
#define KSYCOCA_FILENAME
Sycoca file name, used internally (by kbuildsycoca)
Definition: ksycoca.cpp:63
Definition: ksycoca.h:60
Definition: ksycoca_p.h:58
void setStrategyFromString(const QString &strategy)
Definition: ksycoca.cpp:110
Definition: ksycoca_p.h:58
enum KSycocaPrivate::@7 databaseStatus
Definition: ksycoca_p.h:39
Definition: ksycocadevices_p.h:90
Definition: ksycoca_p.h:51
Definition: ksycoca_p.h:52
bool openDatabase(bool openDummyIfNotFound=true)
Definition: ksycoca.cpp:189
enum KSycocaPrivate::@8 m_sycocaStrategy
Definition: ksycoca_p.h:54
QT_MOC_COMPAT void databaseChanged()
Connect to this to get notified when the database changes.
Definition: ksycoca_p.h:30
bool checkDatabase(BehaviorsIfNotFound ifNotFound)
Definition: ksycoca.cpp:408
static QString findExe(const QString &appname, const QString &pathstr=QString(), SearchOptions options=NoSearchOptions)
Finds the executable in the system path.
Definition: kstandarddirs.cpp:1328
QString findResource(const char *type, const QString &filename) const
Tries to find a resource in the following order:
Definition: kstandarddirs.cpp:458
Definition: ksycocadevices_p.h:25
T readEntry(const QString &key, const T &aDefault) const
Reads the value of an entry specified by pKey in the current group.
Definition: kconfiggroup.h:248
static KSycoca * self()
Get or create the only instance of KSycoca (read-only)
Definition: ksycoca.cpp:293
Definition: ksycoca_p.h:53
static QString absoluteFilePath(DatabaseType type=LocalDatabase)
Definition: ksycoca.cpp:529
static OrgKdeKLauncherInterface * klauncher()
Returns the D-Bus interface of the service launcher.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.