rcmaemo5settingsgui.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #ifndef RCMAEMO5SETTINGSGUI_H
  2. #define RCMAEMO5SETTINGSGUI_H
  3. class QFileInfo;
  4. #include <QList>
  5. #include <QString>
  6. #include <QWidget>
  7. namespace Ui {
  8. class RcMaemo5SettingsGui;
  9. }
  10. class RcMaemo5SettingsGui : public QWidget {
  11. Q_OBJECT
  12. public:
  13. RcMaemo5SettingsGui(const QList<QString> & licences,
  14. const QString & app,
  15. QWidget * parent = 0);
  16. ~RcMaemo5SettingsGui();
  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 openNetworkSettings();
  26. void browseForLog();
  27. void editLongDesc();
  28. private:
  29. QFileInfo getFileInfo(QString fileName);
  30. // OBS friend class Maemo5QtProjectGenerator;
  31. private:
  32. Ui::RcMaemo5SettingsGui *ui;
  33. const QString m_app;
  34. };
  35. #endif // RCMAEMO5SETTINGSGUI_H