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...
static QString findExe(const QString &appname, const QString &pathstr=QString(), SearchOptions options=NoSearchOptions)
Finds the executable in the system path.
Definition: kstandarddirs.cpp:1334
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:1484
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:26
virtual QIODevice * device()=0
Definition: ksycocadevices_p.h:109
This, instead of a typedef, allows to declare "class ..." in header files.
Definition: ksycocafactory.h:149
Definition: ksycocafactory.h:37
Definition: ksycocadevices_p.h:70
Definition: ksycocadevices_p.h:91
Definition: ksycoca_p.h:31
enum KSycocaPrivate::@7 databaseStatus
enum KSycocaPrivate::@8 m_sycocaStrategy
void setStrategyFromString(const QString &strategy)
Definition: ksycoca.cpp:110
bool openDatabase(bool openDummyIfNotFound=true)
Definition: ksycoca.cpp:189
bool checkDatabase(BehaviorsIfNotFound ifNotFound)
Definition: ksycoca.cpp:408
Definition: ksycoca.h:44
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
static KSycoca * self()
Get or create the only instance of KSycoca (read-only)
Definition: ksycoca.cpp:293
static QString absoluteFilePath(DatabaseType type=LocalDatabase)
Definition: ksycoca.cpp:529
static OrgKdeKLauncherInterface * klauncher()
Returns the D-Bus interface of the service launcher.
#define K_GLOBAL_STATIC(TYPE, NAME)
This macro makes it easy to use non-POD types as global statics.
Definition: kglobal.h:221
#define KSYCOCA_FILENAME
Sycoca file name, used internally (by kbuildsycoca)
Definition: ksycoca.cpp:63
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.