N9profile
[n9profile] / telephonenumnewruledialog.h
1 #ifndef TELEPHONENUMNEWRULEDIALOG_H
2 #define TELEPHONENUMNEWRULEDIALOG_H
3
4 #include <QDialog>
5
6 namespace Ui {
7     class TelePhoneNumNewRuleDialog;
8 }
9 class QStandardItemModel;
10 class QModelIndex;
11 class QItemSelectionModel;
12 class QSettings;
13 class QMaemo5ValueButton;
14 class QStringList;
15 class QModelIndex;
16 class QListView;
17 class QMaemo5ListPickSelector;
18
19 /** \class TelePhoneNumNewRuleDialog
20   \brief class for dialog to create telephone rules
21  */
22 class TelePhoneNumNewRuleDialog : public QDialog {
23     Q_OBJECT
24 public:
25     TelePhoneNumNewRuleDialog(QWidget *parent = 0);
26     ~TelePhoneNumNewRuleDialog();
27     void SetProfilenames(QStringList list_of_profiles_nf);
28     void SetNameOfLabel(QString id, QString name );
29     void SetTelNum(QString str);
30     QString GetNameProfile();
31     QString GetNameOfRule();
32     QString GetTelNum();
33     void SetNameOfRule(QString name);
34     void SetModel(QStandardItemModel *model);
35 protected:
36     void changeEvent(QEvent *e);
37     void accept();
38
39 private:
40     Ui::TelePhoneNumNewRuleDialog *ui;
41
42     QMaemo5ValueButton *p_set_Profile_button;
43     QMaemo5ListPickSelector *p_list_pick_profile;
44     QStandardItemModel *p_model_profile_names;
45
46     QStandardItemModel *model_of_Telnum;
47
48     QString selectedProfile;
49     QStringList list_of_profiles;
50
51     QString name_of_rule;
52
53     bool FindTelModel(QString Tel);
54
55 private slots:
56     void SelectedName(QString name);
57 };
58
59 #endif // TELEPHONENUMNEWRULEDIALOG_H