KDED
kded.cpp
75 QObject::connect(m_serviceWatcher, &QDBusServiceWatcher::serviceUnregistered, this, &Kded::slotApplicationRemoved);
135 QVector<KPluginMetaData> plugins = KPluginMetaData::findPlugins(QStringLiteral("kf" QT_STRINGIFY(QT_VERSION_MAJOR) "/kded"));
145 const KPluginInfo::List oldStylePlugins = KPluginInfo::fromServices(KServiceTypeTrader::self()->query(QStringLiteral("KDEDModule")));
154 qCDebug(KDED).nospace() << "kded module " << info.pluginName() << " still uses .desktop files (" << info.entryPath()
171 KService::Ptr oldStyleModule = KService::serviceByDesktopPath(QStringLiteral("kded/") + id + QStringLiteral(".desktop"));
173 qCDebug(KDED).nospace() << "kded module " << oldStyleModule->desktopEntryName() << " still uses .desktop files (" << oldStyleModule->entryPath()
190 // it seems there is no reason to honour KDE_FULL_SESSION on OS X even if it's set for some reason.
199 // not the same user like the one running the session (most likely we're run via sudo or something)
303 const QStringList supportedPlatforms = module.value(QStringLiteral("X-KDE-OnlyShowOnQtPlatforms"), QStringList());
363 factoryResult = KPluginFactory::loadFactory(KPluginMetaData(QStringLiteral("kded_") + module.fileName()));
365 qCWarning(KDED).nospace() << "found kded module " << moduleId << " by prepending 'kded_' to the library path, please fix your metadata.";
368 qCWarning(KDED).nospace() << "Could not load kded module " << moduleId << ":" << factoryResult.errorText
529 // If the dir was created or updated there could be new folders to merge into the active theme(s)
530 QDBusMessage message = QDBusMessage::createSignal(QStringLiteral("/KIconLoader"), QStringLiteral("org.kde.KIconLoader"), QStringLiteral("iconChanged"));
550 m_pDirWatch->addDir(path, KDirWatch::WatchFiles | KDirWatch::WatchSubDirs); // add watch on this dir
605 QStringList dirs = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QStringLiteral("kconf_update"), QStandardPaths::LocateDirectory);
697 // get the application's Info Dictionary. For app bundles this would live in the bundle's Info.plist,
699 CFMutableDictionaryRef infoDict = (CFMutableDictionaryRef)CFBundleGetInfoDictionary(mainBundle);
732 parser.addOption(QCommandLineOption(QStringLiteral("check"), QStringLiteral("Check cache validity")));
733 QCommandLineOption replaceOption({QStringLiteral("replace")}, QStringLiteral("Replace an existing instance"));
745 KDBusService service(KDBusService::Unique | KDBusService::StartupOption(parser.isSet(replaceOption) ? KDBusService::Replace : 0));
748 // Also register as all the names we should respond to (org.kde.kcookiejar, org.kde.khotkeys etc.)
750 const QVector<KPluginMetaData> plugins = KPluginMetaData::findPlugins(QStringLiteral("kf" QT_STRINGIFY(QT_VERSION_MAJOR) "/kded"));
static KSycoca * self()
void start(const QString &program, const QStringList &arguments, QIODevice::OpenMode mode)
void append(const T &value)
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const const
void windowRegistered(qlonglong windowId)
int exec()
void ensureCacheValid()
KCMUTILS_EXPORT void unloadModule(const KCModuleInfo &mod)
LocateDirectory
bool waitForFinished(int msecs)
Replace
int removeAll(const T &value)
WatchSubDirs
singleShot
bool contains(const QString &str, Qt::CaseSensitivity cs) const const
AA_UseHighDpiPixmaps
void append(const T &value)
void setQuitOnLastWindowClosed(bool quit)
bool isValid() const
QString fileName() const
void setApplicationVersion(const QString &version)
bool registerObject(const QString &path, QObject *object, QDBusConnection::RegisterOptions options)
QString homePath()
KCRASH_EXPORT void setFlags(KCrash::CrashFlags flags)
void serviceUnregistered(const QString &serviceName)
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void setOrganizationDomain(const QString &orgDomain)
KCMUTILS_EXPORT KCModule * loadModule(const KCModuleInfo &module, ErrorReporting report, QWidget *parent=nullptr, const QStringList &args=QStringList())
bool send(const QDBusMessage &message) const const
static QString moduleForMessage(const QDBusMessage &message)
QStringList standardLocations(QStandardPaths::StandardLocation type)
Unique
void setApplicationDisplayName(const QString &name)
QString pluginName() const
QDBusConnection sessionBus()
void process(const QStringList &arguments)
QCommandLineOption addVersionOption()
void timeout()
bool isEmpty() const const
static Ptr serviceByDesktopPath(const QString &_path)
bool isEmpty() const const
AutoRestart
QDBusMessage createSignal(const QString &path, const QString &interface, const QString &name)
KSharedConfigPtr config()
void setApplicationName(const QString &application)
bool isSet(const QString &name) const const
static Result< KPluginFactory > loadFactory(const KPluginMetaData &data)
QDBusConnectionInterface * interface() const const
bool contains(const T &value) const const
bool value(const QString &key, bool defaultValue) const
QString & remove(int position, int n)
static QVector< KPluginMetaData > findPlugins(const QString &directory, std::function< bool(const KPluginMetaData &)> filter, KPluginMetaDataOption option)
QStringList allResourceDirs()
void windowUnregistered(qlonglong windowId)
int toInt(bool *ok, int base) const const
GenericDataLocation
bool isEmpty() const const
KIOFILEWIDGETS_EXPORT QString dir(const QString &fileClass)
void setAttribute(Qt::ApplicationAttribute attribute, bool on)
QString path(const QString &relativePath)
void setModuleName(const QString &name)
KStandardDirs * dirs()
void dirty(const QString &path)
QStringList locateAll(QStandardPaths::StandardLocation type, const QString &fileName, QStandardPaths::LocateOptions options)
void update(Part *part, const QByteArray &data, qint64 dataSize)
void deleted(const QString &path)
QSet::iterator insert(const T &value)
void created(const QString &path)
bool addOption(const QCommandLineOption &option)
WatchFiles
WatchDirOnly
bool contains(QChar ch, Qt::CaseSensitivity cs) const const
QString pluginId() const
void setTestModeEnabled(bool testMode)
StartupOption
QCommandLineOption addHelpOption()
void moduleDeleted(KDEDModule *)
QString message
T value(int i) const const
WatchForUnregistration
char * data()
QDBusReply< QDBusConnectionInterface::RegisterServiceReply > registerService(const QString &serviceName, QDBusConnectionInterface::ServiceQueueOptions qoption, QDBusConnectionInterface::ServiceReplacementOptions roption)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Dec 5 2023 03:57:19 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Dec 5 2023 03:57:19 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.