KDED
kded.cpp
Go to the documentation of this file.
85 static void runBuildSycoca(QObject *callBackObj=0, const char *callBackSlot=0, const char *callBackErrorSlot=0)
101 KToolInvocation::klauncher()->callWithCallback("kdeinit_exec_wait", argList, callBackObj, callBackSlot, callBackErrorSlot);
111 KToolInvocation::kdeinitExecWait( "kconf_update", QStringList(), 0, 0, "0" /*no startup notification*/ );
222 // not the same user like the one running the session (most likely we're run via sudo or something)
290 for(KService::List::ConstIterator it = kdedModules.constBegin(); it != kdedModules.constEnd(); ++it) {
636 m_pDirWatch->addDir(path,KDirWatch::WatchFiles|KDirWatch::WatchSubDirs); // add watch on this dir
639 QDir d( _path, QString(), QDir::Unsorted, QDir::Readable | QDir::Executable | QDir::Dirs | QDir::Hidden );
846 XSendEvent( QX11Info::display(), QX11Info::appRootWindow(), False, SubstructureNotifyMask, &e );
858 XSendEvent( QX11Info::display(), QX11Info::appRootWindow(), False, SubstructureNotifyMask, &e );
874 KAboutData aboutData( "kded" /*don't change this one to kded4! dbus registration should be org.kde.kded etc.*/,
KLibrary * library(const QString &libname, QLibrary::LoadHints loadHint=0)
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
static void addCmdLineOptions(const KCmdLineOptions &options, const KLocalizedString &name=KLocalizedString(), const QByteArray &id=QByteArray(), const QByteArray &afterId=QByteArray())
static bool start()
iterator insert(const Key &key, const T &value)
int toInt(bool *ok, int base) const
Definition: kded.h:230
void registerWindowId(qlonglong windowId, const QString &sender)
Applications can register/unregister their windows with kded modules.
Definition: kded.cpp:682
void setModuleAutoloading(const QString &module, bool autoload)
Configure whether a module should be loaded on startup.
Definition: kded.cpp:305
KCmdLineOptions & add(const QByteArray &name, const KLocalizedString &description=KLocalizedString(), const QByteArray &defaultValue=QByteArray())
void setDelayedReply(bool enable) const
Definition: kdedadaptor.h:26
static KServiceTypeTrader * self()
KLocalizedString ki18n(const char *msg)
void slotApplicationRemoved(const QString &)
An application unregistered itself from DBus.
Definition: kded.cpp:450
int timeout
void moveToThread(QThread *targetThread)
Qt::HANDLE appRootWindow(int screen)
static KCmdLineArgs * parsedArgs(const QByteArray &id=QByteArray())
Display * display()
QStringList findDirs(const char *type, const QString &reldir) const
QVariant property(const QString &_name, QVariant::Type t) const
KStandardDirs * dirs()
bool registerObject(const QString &path, QObject *object, QFlags< QDBusConnection::RegisterOption > options)
bool contains(const QString &str, Qt::CaseSensitivity cs) const
bool isEmpty() const
void windowUnregistered(qlonglong windowId)
MessageType type() const
void slotKDEDModuleRemoved(KDEDModule *)
A KDEDModule is about to get destroyed.
Definition: kded.cpp:442
void writeEntry(const QString &key, const QVariant &value, WriteConfigFlags pFlags=Normal)
QDBusConnection sessionBus()
const_iterator insert(const T &value)
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
#define KDE_VERSION_STRING
void setModuleName(const QString &name)
bool isSet(const QByteArray &option) const
KSharedConfigPtr config()
const KSharedConfig::Ptr & config() const
int count(const T &value) const
void append(const T &value)
void setConnection(const QDBusConnection &connection)
QDBusMessage createReply(const QList< QVariant > &arguments) const
void windowRegistered(qlonglong windowId)
QString errorString() const
int toInt(bool *ok) const
QDBUS_EXPORT void qDBusAddSpyHook(void(*)(const QDBusMessage &))
bool isEmpty() const
bool send(const QDBusMessage &message) const
bool isEmpty() const
int removeAll(const T &value)
QString moduleName() const
iterator begin()
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
static void runDontChangeHostname(const QByteArray &oldName, const QByteArray &newName)
Definition: kded.cpp:114
static void runBuildSycoca(QObject *callBackObj=0, const char *callBackSlot=0, const char *callBackErrorSlot=0)
Definition: kded.cpp:85
Definition: kded.h:218
virtual int newInstance()
int remove(const Key &key)
bool isModuleAutoloaded(const QString &module) const
Check if a module should be loaded on startup.
Definition: kded.cpp:317
bool removeWatchedService(const QString &service)
bool isModuleLoadedOnDemand(const QString &module) const
Check if a module should be loaded on demand.
Definition: kded.cpp:334
static Ptr serviceByDesktopPath(const QString &_path)
QList< Key > keys() const
QDBusMessage createErrorReply(const QString name, const QString &msg) const
void clear()
iterator end()
const T value(const Key &key) const
QString library() const
KBuildsycocaAdaptor(QObject *parent)
Definition: kded.cpp:803
void stop()
bool contains(const QString &path) const
KPluginFactory * factory()
static void addCmdLineOptions()
static KLibLoader * self()
KService::List query(const QString &servicetype, const QString &constraint=QString()) const
void_function_ptr resolveFunction(const char *name)
QByteArray toLatin1() const
QString mid(int position, int n) const
bool remove(const T &value)
T takeFirst()
QString desktopEntryName() const
int count() const
bool callWithCallback(const QString &method, const QList< QVariant > &args, QObject *receiver, const char *returnMethod, const char *errorMethod)
static int kdeinitExecWait(const QString &name, const QStringList &args=QStringList(), QString *error=0, int *pid=0, const QByteArray &startup_id=QByteArray())
static QString findExe(const QString &appname, const QString &pathstr=QString(), SearchOptions options=NoSearchOptions)
typedef ConstIterator
KAction * create(StandardAction id, const QObject *recvr, const char *slot, QObject *parent)
static void init(int argc, char **argv, const QByteArray &appname, const QByteArray &catalog, const KLocalizedString &programName, const QByteArray &version, const KLocalizedString &description=KLocalizedString(), StdCmdLineArgs stdargs=StdCmdLineArgs(CmdLineArgQt|CmdLineArgKDE))
int length() const
bool toBool() const
#define KDE_VERSION_MAJOR
static QDebug kWarning(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
QString left(int n) const
QString path() const
void addDir(const QString &path, WatchModes watchModes=WatchDirOnly)
void start(int msec)
bool isValid() const
bool contains(const Key &key) const
void setFlags(CrashFlags flags)
void sync()
iterator end()
const_iterator constEnd() const
const_iterator constBegin() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void setWatchMode(QFlags< QDBusServiceWatcher::WatchModeFlag > mode)
#define KBUILDSYCOCA_EXENAME
QString toString() const
T readEntry(const QString &key, const T &aDefault) const
static KSycoca * self()
iterator begin()
QStringList allResourceDirs()
void unregisterWindowId(qlonglong windowId, const QString &sender)
Unregister a window previously registered with KDED.
Definition: kded.cpp:700
void addWatchedService(const QString &newService)
QByteArray encodeName(const QString &fileName)
QString decodeName(const QByteArray &localFileName)
#define KDE_EXPORT
void setSingleShot(bool singleShot)
static OrgKdeKLauncherInterface * klauncher()
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26: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:26:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.