Qx v0.5.8
Qt Extensions Library
|
The ApplicationDesktopEntry class represents an Application type desktop entry. More...
#include <qx/linux/qx-applicationdesktopentry.h>
Additional Inherited Members | |
Static Public Member Functions inherited from Qx::DesktopEntry | |
static IoOpReport | writeToDisk (QString path, const DesktopEntry *entry) |
Static Protected Member Functions inherited from Qx::DesktopEntry | |
static QString | keyValueString (const QString &key, bool value) |
static QString | keyValueString (const QString &key, const char *value) |
static QString | keyValueString (const QString &key, const QString &value) |
static QString | keyValueString (const QString &key, const QStringList &value) |
Qx::ApplicationDesktopEntry::ApplicationDesktopEntry | ( | ) |
Constructs an empty application desktop entry.
DesktopAction Qx::ApplicationDesktopEntry::action | ( | const QString & | actionName | ) |
Returns the application action of this entry with the action name actionName, if present; otherwise, returns an empty action.
QList< DesktopAction > Qx::ApplicationDesktopEntry::actions | ( | ) |
Returns the entry's application actions.
QStringList Qx::ApplicationDesktopEntry::categories | ( | ) | const |
Returns the categories in which the entry should be shown in a menu.
QString Qx::ApplicationDesktopEntry::exec | ( | ) |
Returns the full path of the associated application and its arguments.
|
overridevirtual |
Returns the proper extension of the entry that corresponds to its type.
Implements Qx::DesktopEntry.
QStringList Qx::ApplicationDesktopEntry::implements | ( | ) | const |
Returns the interfaces that the associated applications implements.
void Qx::ApplicationDesktopEntry::insertAction | ( | const DesktopAction & | action | ) |
Adds the application action action to the entry.
bool Qx::ApplicationDesktopEntry::isDBusActivatable | ( | ) |
Returns true
if D-Bus activation is supported by the associated application; otherwise, returns false
.
bool Qx::ApplicationDesktopEntry::isPrefersNonDefaultGPU | ( | ) | const |
Returns true
if the associated application prefers to be run on a more powerful discrete GPU if available; otherwise, returns false
.
bool Qx::ApplicationDesktopEntry::isSingleMainWindow | ( | ) | const |
Returns true
if the application has a single main window and does not support having an additional one opened; otherwise, returns false
.
bool Qx::ApplicationDesktopEntry::isStartupNotify | ( | ) | const |
Returns true
if the associated application sends a 'remove' message when started with the "DESKTOP_STARTUP_ID" environment variable set; otherwise, returns false
.
bool Qx::ApplicationDesktopEntry::isTerminal | ( | ) |
Returns true
if the program runs in a terminal window; otherwise, returns false
.
QStringList Qx::ApplicationDesktopEntry::keywords | ( | ) | const |
Returns the additional words used to describe this entry.
QStringList Qx::ApplicationDesktopEntry::mimeTypes | ( | ) | const |
Returns the MIME types supported by the associated application.
QString Qx::ApplicationDesktopEntry::path | ( | ) |
Returns the working directory of the associated application .
void Qx::ApplicationDesktopEntry::removeAction | ( | const QString & | actionName | ) |
Removes the application action with the action name actionName from the entry if present; otherwise, does nothing.
void Qx::ApplicationDesktopEntry::setCategories | ( | const QStringList & | categories | ) |
Sets the categories in which the entry should be shown in a menu to categories.
void Qx::ApplicationDesktopEntry::setDBusActivatable | ( | bool | activatable | ) |
Sets whether or not D-Bus activation is supported by the associated application.
void Qx::ApplicationDesktopEntry::setExec | ( | const QString & | exec | ) |
Sets the full path of the associated application and its arguments to exec.
void Qx::ApplicationDesktopEntry::setImplements | ( | const QStringList & | implements | ) |
Sets the interfaces that the associated application implements to implements.
void Qx::ApplicationDesktopEntry::setKeywords | ( | const QStringList & | keywords | ) |
Sets the additional words used to describe this entry to keywords.
void Qx::ApplicationDesktopEntry::setMimeTypes | ( | const QStringList & | mimeTypes | ) |
Sets the MIME types supported by the associated application to mimeTypes.
void Qx::ApplicationDesktopEntry::setPath | ( | const QString & | path | ) |
Sets the working directory of the associated application to path.
void Qx::ApplicationDesktopEntry::setPrefersNonDefaultGPU | ( | bool | prefers | ) |
Sets whether or not the associated application prefers to be run on a more powerful discrete GPU if available
void Qx::ApplicationDesktopEntry::setSingleMainWindow | ( | bool | single | ) |
Sets whether or not the application has a single main window and does not support having an additional one opened
void Qx::ApplicationDesktopEntry::setStartupNotify | ( | bool | notify | ) |
Sets whether or not the associated application is known to send a 'remove' message when stared with the "DESKTOP_STARTUP_ID" environment variable set.
void Qx::ApplicationDesktopEntry::setStartupWMClass | ( | const QString & | wmClass | ) |
Sets the string that the associated application is known to map to a least window as its WM class or WM name hint to wmClass.
void Qx::ApplicationDesktopEntry::setTerminal | ( | bool | terminal | ) |
Sets whether or not the program runs in a terminal window.
void Qx::ApplicationDesktopEntry::setTryExec | ( | const QString & | tryExec | ) |
Sets the path to the executable to use to determine if the associated application is actually installed to tryExec.
QString Qx::ApplicationDesktopEntry::startupWMClass | ( | ) | const |
Returns the string that the associated application is known to map to a least window as its WM class or WM name hint.
|
overridevirtual |
Composites the desktop entry into its string form, as would be found in an entry file on disk.
Reimplemented from Qx::DesktopEntry.
QString Qx::ApplicationDesktopEntry::tryExec | ( | ) |
Returns the path to an executable used to determine if associated application is actually installed.
|
overridevirtual |
Returns the type string of the entry.
Implements Qx::DesktopEntry.