KDECore
kautostart.cpp
Go to the documentation of this file.
207 return QFile::exists(KStandardDirs::locate("autostart", entryName + QString::fromLatin1(".desktop")));
227 KAutostart::StartPhase readEntry(const KConfigGroup &group, const char* key, const KAutostart::StartPhase& aDefault)
void setCommand(const QString &command)
Set the associated command for this autostart service.
Definition: kautostart.cpp:180
void removeFromAllowedEnvironments(const QString &environment)
Removes an environment to the list of environments this service may start in.
Definition: kautostart.cpp:301
QString & append(QChar ch)
KAutostart::StartPhase readEntry(const KConfigGroup &group, const char *key, const KAutostart::StartPhase &aDefault)
Definition: kautostart.cpp:227
Definition: kmacroexpander_unix.cpp:34
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
everything else that doesn't belong in the above two categories, including most system tray applicati...
Definition: kautostart.h:121
static QString locate(const char *type, const QString &filename, const KComponentData &cData=KGlobal::mainComponent())
This function is just for convenience.
Definition: kstandarddirs.cpp:2085
void addToAllowedEnvironments(const QString &environment)
Adds an environment to the list of environments this service may start in.
Definition: kautostart.cpp:289
bool isNull() const
void removeAt(int i)
bool contains(const QString &str, Qt::CaseSensitivity cs) const
const KAboutData * aboutData() const
Returns the about data of this component.
Definition: kcomponentdata.cpp:215
bool exists() const
void setAllowedEnvironments(const QStringList &environments)
Sets the environments this service is allowed to start in.
Definition: kautostart.cpp:279
void setVisibleName(const QString &entryName)
Sets the user-visible name for this autostart service.
Definition: kautostart.cpp:195
void removeFromExcludedEnvironments(const QString &environment)
Removes an environment to the list of environments this service may not be autostarted in...
Definition: kautostart.cpp:341
an executable that is checked for existence by name
Definition: kautostart.h:86
void setExcludedEnvironments(const QStringList &environments)
Sets the environments this service is not allowed to start in.
Definition: kautostart.cpp:319
const char * name() const
void setCommandToCheck(const QString &exec)
Sets the executable to check for the existence of when autostarting this service. ...
Definition: kautostart.cpp:215
int count(const T &value) const
void append(const T &value)
services that should be available before most interactive applications start but that aren't part of ...
Definition: kautostart.h:115
KDesktopFile * copyTo(const QString &file) const
Copies all entries from this config object to a new KDesktopFile object that will save itself to file...
Definition: kdesktopfile.cpp:372
QString command() const
Returns the associated command for this autostart service.
Definition: kautostart.cpp:175
bool checkAllowedEnvironment(const QString &environment) const
Checks whether autostart is allowed in the given environment, depending on allowedEnvironments() and ...
Definition: kautostart.cpp:160
bool isEmpty() const
bool isEmpty() const
KAutostart provides a programmatic means to control the state of autostart services on a per-user bas...
Definition: kautostart.h:49
the essential desktop services such as panels and window managers
Definition: kautostart.h:108
QString visibleName() const
Returns the user-visible name this autostart service is registered as.
Definition: kautostart.cpp:190
QStringList allowedEnvironments() const
Returns the list of environments (e.g.
Definition: kautostart.cpp:274
void addToExcludedEnvironments(const QString &environment)
Adds an environment to the list of environments this service may not be autostarted in...
Definition: kautostart.cpp:329
QString startAfter() const
Returns the name of another service that should be autostarted before this one (if that service would...
Definition: kautostart.cpp:354
StartPhase
Enumerates the various autostart phases that occur during start-up.
Definition: kautostart.h:103
autostart condition will be checked too (KDE-specific)
Definition: kautostart.h:91
static QString locateLocal(const char *type, const QString &filename, const KComponentData &cData=KGlobal::mainComponent())
This function is much like locate.
Definition: kstandarddirs.cpp:2091
bool autostarts(const QString &environment=QString(), Conditions check=NoConditions) const
Returns whether or not the service represented by entryName in the autostart system is set to autosta...
Definition: kautostart.cpp:115
void setAutostarts(bool autostart)
Sets the given exec to start automatically at login.
Definition: kautostart.cpp:104
void setStartPhase(StartPhase phase)
Sets the service (by name) this service should be started after.
Definition: kautostart.cpp:251
const KComponentData & mainComponent()
Returns the global component data.
Definition: kglobal.cpp:145
QString fromLatin1(const char *str, int size)
int indexOf(const QRegExp &rx, int from) const
static bool isServiceRegistered(const QString &entryName)
Checks whether or not a service by the given name entryName is registered with the autostart system...
Definition: kautostart.cpp:205
QString commandToCheck() const
Returns the executable to check for when attempting to autostart this service.
Definition: kautostart.cpp:210
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
QStringList excludedEnvironments() const
Returns the list of environments this service is explicitly not allowed to start in.
Definition: kautostart.cpp:314
StartPhase startPhase() const
Returns the autostart phase this service is started in.
Definition: kautostart.cpp:246
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:10 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:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.