|
Cppcheck
|
A class containing information of the application to execute. More...
#include <application.h>
Public Member Functions | |
| Application () | |
| Application (const QString &name, const QString &path, const QString ¶ms) | |
| QString | getName () const |
| Get application name. | |
| QString | getPath () const |
| Get application path. | |
| QString | getParameters () const |
| Get application command line parameters. | |
| void | setName (const QString &name) |
| Set application name. | |
| void | setPath (const QString &path) |
| Set application path. | |
| void | setParameters (const QString ¶meters) |
| Set application command line parameters. | |
Private Attributes | |
| QString | mName |
| Application's name. | |
| QString | mPath |
| Application's path. | |
| QString | mParameters |
| Application's parameters. | |
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.
| Application::Application | ( | ) | [inline] |
Definition at line 45 of file application.h.
| Application::Application | ( | const QString & | name, |
| const QString & | path, | ||
| const QString & | params | ||
| ) |
Definition at line 21 of file application.cpp.
| QString Application::getName | ( | ) | const [inline] |
Get application name.
Definition at line 52 of file application.h.
References mName.
Referenced by ApplicationList::AddApplication(), SettingsDialog::AddApplication(), ApplicationDialog::ApplicationDialog(), ResultsTree::contextMenuEvent(), SettingsDialog::EditApplication(), SettingsDialog::PopulateApplicationList(), and ApplicationList::SaveSettings().
| QString Application::getParameters | ( | ) | const [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().
| QString Application::getPath | ( | ) | const [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().
| void Application::setName | ( | const QString & | name | ) | [inline] |
Set application name.
| name | Application name. |
Definition at line 76 of file application.h.
References mName.
Referenced by ApplicationList::FindDefaultWindowsEditor(), ApplicationList::LoadSettings(), and ApplicationDialog::Ok().
| void Application::setParameters | ( | const QString & | parameters | ) | [inline] |
Set application command line parameters.
| parameters | Application command line parameters. |
Definition at line 92 of file application.h.
References mParameters.
Referenced by ApplicationList::FindDefaultWindowsEditor(), ApplicationList::LoadSettings(), and ApplicationDialog::Ok().
| void Application::setPath | ( | const QString & | path | ) | [inline] |
Set application path.
| path | Application path. |
Definition at line 84 of file application.h.
References mPath.
Referenced by ApplicationList::FindDefaultWindowsEditor(), ApplicationList::LoadSettings(), and ApplicationDialog::Ok().
QString Application::mName [private] |
Application's name.
Definition at line 101 of file application.h.
QString Application::mParameters [private] |
Application's parameters.
Definition at line 111 of file application.h.
Referenced by getParameters(), and setParameters().
QString Application::mPath [private] |
Application's path.
Definition at line 106 of file application.h.
1.7.6.1