Cppcheck
|
A class containing information of the application to execute. More...
#include <application.h>
Public Member Functions | |
Application ()=default | |
Application (QString name, QString path, QString params) | |
const QString & | getName () const |
Get application name. More... | |
const QString & | getPath () const |
Get application path. More... | |
const QString & | getParameters () const |
Get application command line parameters. More... | |
void | setName (const QString &name) |
Set application name. More... | |
void | setPath (const QString &path) |
Set application path. More... | |
void | setParameters (const QString ¶meters) |
Set application command line parameters. More... | |
Private Attributes | |
QString | mName |
Application's name. More... | |
QString | mPath |
Application's path. More... | |
QString | mParameters |
Application's parameters. More... | |
A class containing information of the application to execute.
Each application has a name and a path. Name is displayed to the user and has no other meaning. It isn't used to start the application. Path contains the full path to the application containing the executable name. Parameters contains the command line arguments for the executable.
User can also specify certain predefined strings to parameters. These strings will be replaced with appropriate values concerning the error. Strings are: (file) - Filename containing the error (line) - Line number containing the error (message) - Error message (severity) - Error severity
Example opening a file with Kate and make Kate scroll to the correct line. Executable: kate Parameters: -l(line) (file)
Definition at line 43 of file application.h.
|
default |
Application::Application | ( | QString | name, |
QString | path, | ||
QString | params | ||
) |
Definition at line 23 of file application.cpp.
|
inline |
Get application name.
Definition at line 52 of file application.h.
References mName.
Referenced by SettingsDialog::addApplication(), ApplicationList::addApplication(), ApplicationDialog::ApplicationDialog(), ResultsTree::contextMenuEvent(), SettingsDialog::editApplication(), SettingsDialog::populateApplicationList(), and ApplicationList::saveSettings().
|
inline |
Get application command line parameters.
Definition at line 68 of file application.h.
References mParameters.
Referenced by ApplicationDialog::ApplicationDialog(), ApplicationList::saveSettings(), and ResultsTree::startApplication().
|
inline |
Get application path.
Definition at line 60 of file application.h.
References mPath.
Referenced by ApplicationList::addApplication(), ApplicationDialog::ApplicationDialog(), ApplicationList::saveSettings(), and ResultsTree::startApplication().
|
inline |
Set application name.
name | Application name. |
Definition at line 76 of file application.h.
References mName.
Referenced by ApplicationList::checkAndAddApplication(), ApplicationList::loadSettings(), and ApplicationDialog::ok().
|
inline |
Set application command line parameters.
parameters | Application command line parameters. |
Definition at line 92 of file application.h.
References mParameters.
Referenced by ApplicationList::checkAndAddApplication(), ApplicationList::loadSettings(), and ApplicationDialog::ok().
|
inline |
Set application path.
path | Application path. |
Definition at line 84 of file application.h.
References mPath.
Referenced by ApplicationList::checkAndAddApplication(), ApplicationList::loadSettings(), and ApplicationDialog::ok().
|
private |
Application's name.
Definition at line 101 of file application.h.
|
private |
Application's parameters.
Definition at line 111 of file application.h.
Referenced by getParameters(), and setParameters().
|
private |
Application's path.
Definition at line 106 of file application.h.