README
[n9profile] / mainwindow.h
1 #ifndef MAINWINDOW_H
2 #define MAINWINDOW_H
3 /*! \file mainwindow.h
4     \brief File .h for class MainWindow
5 \author Jakub Šplíchal <jakub.bzouk@gmail.com>
6     Header file
7 */
8 #include <QMainWindow>
9 #include <QtCore/QSettings>
10 //#include <QtGui/QSystemTrayIcon>
11
12 namespace Ui {
13     class MainWindow;
14 }
15 class ControlClass;
16 class QListWidgetItem;
17 class QMaemo5ListPickSelector;
18 class QMaemo5ValueButton;
19 class QStandardItemModel;
20 class QDBusInterface;
21 /*!
22   \class MainWindow
23   \brief Class to display the main window
24 */
25 class MainWindow : public QMainWindow {
26     Q_OBJECT
27     Q_CLASSINFO("D-Bus Interface", "org.indt.N9Profil")
28
29 public:
30             MainWindow(QWidget *parent = 0, Qt::WindowFlags flags = 0);
31     ~MainWindow();
32
33     void Init();
34
35 public slots:
36     void changeInProfiles(QStringList Profiles_Names);
37     Q_SCRIPTABLE int top_application();
38
39 signals:
40     void s_aboutToEnd();
41     void s_hide_show();
42
43 protected:
44     void changeEvent(QEvent *e);
45
46 private:
47     void createMermoButtons();
48     void closeEvent(QCloseEvent *event);
49
50     //! QT Class for storing settings.
51     /*!
52     *   Class will save the program settings.
53     */
54     QSettings settings;
55     QDBusInterface *connectionInterface;
56
57     Ui::MainWindow *ui;
58     ControlClass *p_cnt_class;
59
60     QMaemo5ValueButton *p_set_Profile_button;
61     QMaemo5ListPickSelector *p_list_pick_profile;
62     QStandardItemModel *p_model_profile_names;
63     void setNewIndexDeafaultProfile();
64
65     QMaemo5ValueButton *p_Timed_Profile_button;
66     QMaemo5ValueButton *p_Calendar_Profile_button;
67     QMaemo5ValueButton *p_IDWifi_Profile_button;
68     bool maybeQuit();
69
70 private slots:
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);
84
85     void sendNotif(QString name_of_profile);
86
87
88 };
89
90 #endif // MAINWINDOW_H