N9profile
[n9profile] / telephonenumprofile.h
1 #ifndef TELEPHONENUMPROFILE_H
2 #define TELEPHONENUMPROFILE_H
3
4 #include <QWidget>
5 class QDBusMessage;
6 class QStandardItemModel;
7 class QModelIndex;
8 class QItemSelectionModel;
9 class QTimer;
10
11 /** \class TelephoneNumProfile
12   \brief class for setting profile based on telephone rules
13  */
14 class TelephoneNumProfile : public QWidget
15 {
16     Q_OBJECT
17 public:
18     explicit TelephoneNumProfile(QWidget *parent = 0);
19     void ShowDialog();
20     void createModels(QStandardItemModel * telenum);
21 signals:
22     void s_telnum_profile(QString);
23
24 private:
25     QTimer *timer;
26     QString FindTelnumInModel(QString telnum);
27
28
29
30     QStandardItemModel *model_of_telenum;
31     QItemSelectionModel *selModel_telenum;
32
33     QStringList list_of_profiles;
34 public slots:
35     void SetProfilenames(QStringList list_of_profiles_nf);
36 private slots:
37     void receiveCall (const  QDBusMessage&);
38     void TimerTimeout();
39
40 };
41
42 #endif // TELEPHONENUMPROFILE_H
43