4 \brief File .h for class MainWindow
5 \author Jakub Šplíchal <jakub.bzouk@gmail.com>
9 #include <QtCore/QSettings>
10 //#include <QtGui/QSystemTrayIcon>
16 class QListWidgetItem;
17 class QMaemo5ListPickSelector;
18 class QMaemo5ValueButton;
19 class QStandardItemModel;
23 \brief Class to display the main window
25 class MainWindow : public QMainWindow {
27 Q_CLASSINFO("D-Bus Interface", "org.indt.N9Profil")
30 MainWindow(QWidget *parent = 0, Qt::WindowFlags flags = 0);
36 void changeInProfiles(QStringList Profiles_Names);
37 Q_SCRIPTABLE int top_application();
44 void changeEvent(QEvent *e);
47 void createMermoButtons();
48 void closeEvent(QCloseEvent *event);
50 //! QT Class for storing settings.
52 * Class will save the program settings.
55 QDBusInterface *connectionInterface;
58 ControlClass *p_cnt_class;
60 QMaemo5ValueButton *p_set_Profile_button;
61 QMaemo5ListPickSelector *p_list_pick_profile;
62 QStandardItemModel *p_model_profile_names;
63 void setNewIndexDeafaultProfile();
65 QMaemo5ValueButton *p_Timed_Profile_button;
66 QMaemo5ValueButton *p_Calendar_Profile_button;
67 QMaemo5ValueButton *p_IDWifi_Profile_button;
71 void on_pushButtonPhonenum_clicked();
72 void on_actionExit_triggered();
73 void on_actionAbout_triggered();
74 void on_actionAboutQT_triggered();
75 void SetTimedProfile();
76 void SetCalendarProfiles();
77 void SetNetworkProfile();
78 void on_listWidgetProfiles_itemClicked(QListWidgetItem* item);
79 void on_ButtonNewProfile_clicked();
80 void SetDeafaultProfile(QString);
81 void SetTimedProfilename(QString);
82 void SetCalendarProfilename(QString);
83 void SetMetworkProfilename(QString);
85 void sendNotif(QString name_of_profile);
90 #endif // MAINWINDOW_H