KDesktopFileAction
#include <kdesktopfileaction.h>
Public Member Functions | |
KDesktopFileAction () | |
KDesktopFileAction (const KDesktopFileAction &other) | |
KDesktopFileAction (const QString &name, const QString &text, const QString &icon, const QString &exec, const QString &desktopFilePath) | |
KDesktopFileAction (KDesktopFileAction &&other) | |
QString | actionsKey () const |
QString | desktopFilePath () const |
QString | exec () const |
QString | icon () const |
bool | isSeparator () const |
QString | name () const |
KDesktopFileAction & | operator= (const KDesktopFileAction &other) |
KDesktopFileAction & | operator= (KDesktopFileAction &&other) |
Detailed Description
Class for representing an Action of a desktop file.
- Since
- 6.0
Definition at line 20 of file kdesktopfileaction.h.
Constructor & Destructor Documentation
◆ KDesktopFileAction() [1/2]
|
explicit |
Construct an empty KDesktopFileAction.
Needed so the Action can be stored in containers that require type T to be default constructible (e.g. QVariant).
Definition at line 33 of file kdesktopfileaction.cpp.
◆ KDesktopFileAction() [2/2]
|
explicit |
Construct a KDesktopFileAction with all required properties.
Definition at line 28 of file kdesktopfileaction.cpp.
Member Function Documentation
◆ actionsKey()
QString KDesktopFileAction::actionsKey | ( | ) | const |
- Returns
- the action's internal name For instance Actions=Setup;... and the group [Desktop Action Setup] define an action with the name "Setup".
Definition at line 44 of file kdesktopfileaction.cpp.
◆ desktopFilePath()
QString KDesktopFileAction::desktopFilePath | ( | ) | const |
- Returns
- Path of the desktop file this action was loaded from
Definition at line 49 of file kdesktopfileaction.cpp.
◆ exec()
QString KDesktopFileAction::exec | ( | ) | const |
- Returns
- the action's exec command, as defined by the Exec key in the desktop action group
Definition at line 64 of file kdesktopfileaction.cpp.
◆ icon()
QString KDesktopFileAction::icon | ( | ) | const |
- Returns
- the action's icon, as defined by the Icon key in the desktop action group
Definition at line 59 of file kdesktopfileaction.cpp.
◆ isSeparator()
bool KDesktopFileAction::isSeparator | ( | ) | const |
Returns whether the action is a separator.
This is true when the Actions key contains "_SEPARATOR_".
Definition at line 69 of file kdesktopfileaction.cpp.
◆ name()
QString KDesktopFileAction::name | ( | ) | const |
- Returns
- the action's Name, as defined by the Name key in the desktop action group
Definition at line 54 of file kdesktopfileaction.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:53:32 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.