LibEngsas
Public Slots | Public Member Functions | Static Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
ESearchExternalApp Class Reference

A dialog, where the user can choose and add applications to open a specific mimetype. More...

#include <esearchexternalapp.h>

+ Inheritance diagram for ESearchExternalApp:
+ Collaboration diagram for ESearchExternalApp:

Public Slots

int exec ()
- Public Slots inherited from EDialog
virtual void reloadSettings ()
 Used to reload settings the settings.

Public Member Functions

 ESearchExternalApp (QWidget *parent=0)
 ~ESearchExternalApp ()
void init (QList< EMimeProgram * > findAppsList)
QString selectedApp ()
bool setAsDefault ()
- Public Member Functions inherited from EDialog
 EDialog (QString objName, QWidget *parent=0, Qt::WindowFlags flags=0)
 Creates a EDialog instance with objectName() set to objName.
 EDialog (QWidget *parent=0, Qt::WindowFlags flags=0)
virtual ~EDialog ()
void setWindowTitle (const QString &title)
 Sets the window title and prepends the QApplication::applicationName().
void setObjectName (const QString &name)
 Set's the objectname and calls loadGeometry() afterwards.
void loadGeometry ()
 Can be called to restore geometry of this object.
void connectByPass (QObject *object)
 Connects all standard signals.

Static Public Member Functions

static QList< QDir > defaultPaths ()

Private Slots

void searchApp ()
void itemChanged (QString currentText)

Private Member Functions

QList< EMimeProgram * > findApps (QList< EMimeProgram * > appNames)

Private Attributes

Ui::ESearchExternalApp * m_ui
QList< EMimeProgram * > apps
QString curApp

Additional Inherited Members

- Signals inherited from EDialog
void error (const QString &message)
void warning (const QString &message)
void information (const QString &message)
void reloadEnableActions ()
 Request reloading of enabled actions in EMainWindow.
void addMenu (QMenu *newMenu, const QString &parent, QString before=QString())
void addAction (QAction *newAction, const QString &parent, QString before=QString())
void addToolBar (QToolBar *newToolBar, Qt::ToolBarArea area=Qt::TopToolBarArea)
void addNewDockWidget (QDockWidget *widget, const Qt::DockWidgetArea &area)
void setCentralWidget (QWidget *centralWidget)
void showSettings ()
void showHelp (const QString &page)
void showStatusWidget (QWidget *widget)
void reloadSettingsRequest ()
 Indicates, that a reload of the settings is needed.
void doReloadSettings ()
 Emitted to bring the reload request back to the farest child.
- Protected Slots inherited from EDialog
virtual void errorByPass (const QString &message)
virtual void warningByPass (const QString &message)
virtual void informationByPass (const QString &message)
virtual void reloadEnableActionsByPass ()
virtual void addMenuByPass (QMenu *newMenu, const QString &parent, QString before=QString())
virtual void addActionByPass (QAction *newAction, const QString &parent, QString before=QString())
virtual void addToolBarByPass (QToolBar *newToolBar, Qt::ToolBarArea area=Qt::TopToolBarArea)
virtual void addNewDockWidgetByPass (QDockWidget *widget, const Qt::DockWidgetArea &area)
virtual void setCentralWidgetByPass (QWidget *centralWidget)
virtual void showSettingsByPass ()
virtual void showHelpByPass (const QString &page)
virtual void showStatusWidgetByPass (QWidget *widget)
virtual void reloadSettingsRequestByPass ()
void setHelp (QString page, EPushButton *helpButton=0)
 Call this function to setup helpButton as a help button.
- Protected Member Functions inherited from EDialog
QString helpPage ()
void closeEvent (QCloseEvent *event)

Detailed Description

A dialog, where the user can choose and add applications to open a specific mimetype.

presents the user a dialog with a QListWidget where the user can choose one of the apps from foundApps or he can add one manually

Constructor & Destructor Documentation

ESearchExternalApp::ESearchExternalApp ( QWidget *  parent = 0)

+ Here is the call graph for this function:

ESearchExternalApp::~ESearchExternalApp ( )

Member Function Documentation

QList< QDir > ESearchExternalApp::defaultPaths ( )
static
Returns
a List of directories where applicatios are searched

+ Here is the caller graph for this function:

int ESearchExternalApp::exec ( )
slot

if only one application is found, this one is used and the dialog is not shown at all if more than one apps are found, the normal QDialog::exec() is called

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

QList< EMimeProgram * > ESearchExternalApp::findApps ( QList< EMimeProgram * >  appNames)
private

searches all application's with name of appNames at standard locations

Parameters
appNamesa QStringList with names of applications,
appNameswhich should be looked for at the places

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ESearchExternalApp::init ( QList< EMimeProgram * >  findAppsList)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ESearchExternalApp::itemChanged ( QString  currentText)
privateslot

sets the curApp to the selected one

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ESearchExternalApp::searchApp ( )
privateslot

opens the EFileDialog and let the user add a new application

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

QString ESearchExternalApp::selectedApp ( )
Returns
the selected application

+ Here is the caller graph for this function:

bool ESearchExternalApp::setAsDefault ( )
Returns
true if the user whishes to set the selectedApp() as the default app for this MimeType

+ Here is the caller graph for this function:

Member Data Documentation

QList<EMimeProgram*> ESearchExternalApp::apps
private
QString ESearchExternalApp::curApp
private
Ui::ESearchExternalApp* ESearchExternalApp::m_ui
private

The documentation for this class was generated from the following files: