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...
int execute(const QString &program, const QStringList &arguments)
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
void clear()
Definition: ksycocadevices_p.h:69
virtual bool seek(qint64 pos)
Definition: ksycoca.h:43
QDBusConnectionInterface * interface() const
#define K_GLOBAL_STATIC(TYPE, NAME)
This macro makes it easy to use non-POD types as global statics.
Definition: kglobal.h:221
bool contains(const QString &str, Qt::CaseSensitivity cs) const
bool isEmpty() const
QDBusConnection sessionBus()
Definition: ksycoca_p.h:58
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
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
QDBusReply< bool > isServiceRegistered(const QString &serviceName) const
Definition: ksycocadevices_p.h:108
void clear()
#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
bool isEmpty() const
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
QThread * currentThread()
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
QString fromLatin1(const char *str, int size)
QIODevice * device() const
bool connect(const QString &service, const QString &path, const QString &interface, const QString &name, QObject *receiver, const char *slot)
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
QString decodeName(const QByteArray &localFileName)
static OrgKdeKLauncherInterface * klauncher()
Returns the D-Bus interface of the service launcher.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.