1 #ifndef TELEPHONENUMNEWRULEDIALOG_H
2 #define TELEPHONENUMNEWRULEDIALOG_H
7 class TelePhoneNumNewRuleDialog;
9 class QStandardItemModel;
11 class QItemSelectionModel;
13 class QMaemo5ValueButton;
17 class QMaemo5ListPickSelector;
19 /** \class TelePhoneNumNewRuleDialog
20 \brief class for dialog to create telephone rules
22 class TelePhoneNumNewRuleDialog : public QDialog {
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();
33 void SetNameOfRule(QString name);
34 void SetModel(QStandardItemModel *model);
36 void changeEvent(QEvent *e);
40 Ui::TelePhoneNumNewRuleDialog *ui;
42 QMaemo5ValueButton *p_set_Profile_button;
43 QMaemo5ListPickSelector *p_list_pick_profile;
44 QStandardItemModel *p_model_profile_names;
46 QStandardItemModel *model_of_Telnum;
48 QString selectedProfile;
49 QStringList list_of_profiles;
53 bool FindTelModel(QString Tel);
56 void SelectedName(QString name);
59 #endif // TELEPHONENUMNEWRULEDIALOG_H