KCMShell
main.cpp
Go to the documentation of this file.
63 const KService::List services = KServiceTypeTrader::self()->query( "KCModule", "[X-KDE-ParentApp] == 'kcontrol' or [X-KDE-ParentApp] == 'kinfocenter'" );
89 // Not a KCModule. E.g. "kcmshell4 akonadi" finds services/kresources/kabc/akonadi.desktop, unrelated.
127 QDBusConnection::sessionBus().registerObject("/KCModule/dialog", this, QDBusConnection::ExportScriptableSlots);
212 for( KService::List::ConstIterator it = m_modules.constBegin(); it != m_modules.constEnd(); ++it)
219 for( KService::List::ConstIterator it = m_modules.constBegin(); it != m_modules.constEnd(); ++it)
257 fprintf(stderr, "%s\n", i18n("Could not find module '%1'. See kcmshell4 --list for the full list of modules.", arg).toLocal8Bit().constData());
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
QDBusConnectionInterface * interface() const
virtual Q_SCRIPTABLE void activate(const QByteArray &asn_id)
Activate a module with id asn_id .
Definition: main.cpp:130
bool registerObject(const QString &path, QObject *object, QFlags< QDBusConnection::RegisterOption > options)
bool isValid() const
QDBusConnection sessionBus()
QDBusMessage call(const QString &method, const QVariant &arg1, const QVariant &arg2, const QVariant &arg3, const QVariant &arg4, const QVariant &arg5, const QVariant &arg6, const QVariant &arg7, const QVariant &arg8)
void setConnection(const QDBusConnection &connection)
bool isEmpty() const
void setServiceName(const QString &serviceName)
Sets m_serviceName basically to serviceName, and then registers with D-BUS.
Definition: main.cpp:139
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
static bool caseInsensitiveLessThan(const KService::Ptr s1, const KService::Ptr s2)
Definition: main.cpp:53
KCMShellMultiDialog(KPageDialog::FaceType dialogFace, QWidget *parent=0)
Constructor.
Definition: main.cpp:121
QByteArray toLocal8Bit() const
char * data()
void waitForExit()
Waits until the last instance of kcmshell with the same module as this one exits, and then exits...
Definition: main.cpp:145
void setWatchMode(QFlags< QDBusServiceWatcher::WatchModeFlag > mode)
int compare(const QString &other) const
QDBusReply< QString > serviceOwner(const QString &name) const
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
Essentially a plain KCMultiDialog, but has the additional functionality of allowing it to be told to ...
Definition: main.h:80
void addWatchedService(const QString &newService)
bool registerService(const QString &serviceName)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:08:20 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:08:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.