maemo5settingsgui.h 1023 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #ifndef MAEMO5SETTINGSGUI_H
  2. #define MAEMO5SETTINGSGUI_H
  3. class QFileInfo;
  4. #include <QList>
  5. #include <QString>
  6. #include <QWidget>
  7. namespace Ui {
  8. class Maemo5SettingsGui;
  9. }
  10. class Maemo5SettingsGui : public QWidget {
  11. Q_OBJECT
  12. public:
  13. Maemo5SettingsGui(const QList<QString> & licences,
  14. const QString & app,
  15. QWidget * parent = 0);
  16. ~Maemo5SettingsGui();
  17. /**
  18. * Uses "Settings" class to persist settings. It does not check
  19. * for sanity of those, only persists them.
  20. */
  21. void saveSettings() const;
  22. protected:
  23. void changeEvent(QEvent *e);
  24. private slots:
  25. void browseForBash();
  26. void browseForLog();
  27. void editLongDesc();
  28. private:
  29. QFileInfo getFileInfo(QString fileName);
  30. friend class Maemo5QtProjectGenerator;
  31. static QString bashPath();
  32. private:
  33. Ui::Maemo5SettingsGui * ui;
  34. const QString m_app;
  35. };
  36. #endif // MAEMO5SETTINGSGUI_H