Search for usage in LXR

AutostartScriptDesktopFile Class Reference

#include <autostartscriptdesktopfile.h>

Inheritance diagram for AutostartScriptDesktopFile:

Public Member Functions

 AutostartScriptDesktopFile (const QString &name, const QString &execPath, const QString &iconName)
- Public Member Functions inherited from KDesktopFile
 KDesktopFile (const QString &fileName)
 KDesktopFile (QStandardPaths::StandardLocation resourceType, const QString &fileName)
KConfigGroup actionGroup (const QString &group)
QList< KDesktopFileActionactions () const
KDesktopFilecopyTo (const QString &file) const
KConfigGroup desktopGroup () const
QString fileName () const
bool hasActionGroup (const QString &group) const
bool hasApplicationType () const
bool hasDeviceType () const
bool hasLinkType () const
bool noDisplay () const
QStringList readActions () const
QString readComment () const
QString readDocPath () const
QString readGenericName () const
QString readIcon () const
QStringList readMimeTypes () const
QString readName () const
QString readPath () const
QString readType () const
QString readUrl () const
bool tryExec () const
- Public Member Functions inherited from KConfig
 KConfig (const QString &file, const QString &backend, QStandardPaths::StandardLocation type=QStandardPaths::GenericConfigLocation)
 KConfig (const QString &file=QString(), OpenFlags mode=FullConfig, QStandardPaths::StandardLocation type=QStandardPaths::GenericConfigLocation)
AccessMode accessMode () const override
AccessMode accessMode () const override
void addConfigSources (const QStringList &sources)
void addConfigSources (const QStringList &sources)
QStringList additionalConfigSources () const
QStringList additionalConfigSources () const
void checkUpdate (const QString &id, const QString &updateFile)
KConfigcopyTo (const QString &file, KConfig *config=nullptr) const
QMap< QString, QStringentryMap (const QString &aGroup=QString()) const
QStringList groupList () const override
bool isConfigWritable (bool warnUser)
bool isConfigWritable (bool warnUser)
bool isDirty () const
bool isImmutable () const override
bool isImmutable () const override
QString locale () const
QString locale () const
QStandardPaths::StandardLocation locationType () const
void markAsClean () override
QString name () const
OpenFlags openFlags () const
bool readDefaults () const
bool readDefaults () const
void reparseConfiguration ()
bool setLocale (const QString &aLocale)
bool setLocale (const QString &aLocale)
void setReadDefaults (bool b)
void setReadDefaults (bool b)
bool sync () override
- Public Member Functions inherited from KConfigBase
void deleteGroup (const QString &group, WriteConfigFlags flags=Normal)
KConfigGroup group (const QString &group)
const KConfigGroup group (const QString &group) const
bool hasGroup (const QString &group) const
bool isGroupImmutable (const QString &group) const

Static Public Member Functions

static QDir autostartLocation ()
static bool isAutostartScript (const KDesktopFile &file)
- Static Public Member Functions inherited from KDesktopFile
static bool isAuthorizedDesktopFile (const QString &path)
static bool isDesktopFile (const QString &path)
static QString locateLocal (const QString &path)
- Static Public Member Functions inherited from KConfig
static QString mainConfigName ()
static void setMainConfigName (const QString &str)

Additional Inherited Members

- Public Types inherited from KConfig
enum  OpenFlag
typedef QFlags< OpenFlagOpenFlags
- Public Types inherited from KConfigBase
enum  AccessMode
enum  WriteConfigFlag
typedef QFlags< WriteConfigFlagWriteConfigFlags
- Public Attributes inherited from KConfig
- Public Attributes inherited from KConfigBase
- Protected Member Functions inherited from KConfig
void deleteGroupImpl (const QString &groupName, WriteConfigFlags flags=Normal) override
const KConfigGroup groupImpl (const QString &groupName) const override
KConfigGroup groupImpl (const QString &groupName) override
bool hasGroupImpl (const QString &groupName) const override
bool isGroupImmutableImpl (const QString &groupName) const override
void virtual_hook (int id, void *data) override

Detailed Description

Corresponds to a .desktop file in $XDG_CONFIG_HOME/autostart that points to an autostart script and has X-KDE-AutostartScript=true.

Definition at line 17 of file autostartscriptdesktopfile.h.

Constructor & Destructor Documentation

◆ AutostartScriptDesktopFile()

AutostartScriptDesktopFile::AutostartScriptDesktopFile ( const QString & name,
const QString & execPath,
const QString & iconName )

Definition at line 17 of file autostartscriptdesktopfile.cpp.

Member Function Documentation

◆ autostartLocation()

QDir AutostartScriptDesktopFile::autostartLocation ( )

The location of autostart .desktop application and script files ($XDG_CONFIG_HOME/autostart)

Definition at line 12 of file autostartscriptdesktopfile.cpp.

◆ isAutostartScript()

bool AutostartScriptDesktopFile::isAutostartScript ( const KDesktopFile & file)

Checks whether this KDesktopFile has X-KDE-AutostartScript=true.

Definition at line 28 of file autostartscriptdesktopfile.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 24 2024 11:55:35 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.