FactDev  0.1
checkphone.h
1 #ifndef CHECKPHONE_H
2 #define CHECKPHONE_H
3 
4 #include "checkuntilfield.h"
5 
6 namespace Gui {
7 namespace Widgets {
8 namespace CheckFields {
13 {
14 public:
19  CheckPhone(QWidget* w = 0, QPushButton* btn=0);
20 
27  bool check(QString text);
28 
33  QString getCountry() const;
38  void setCountry(const QString &country);
39 
40 private :
41  QString _country;
42 };
43 }
44 }
45 }
46 
47 #endif // CHECKPHONE_H
CheckPhone(QWidget *w=0, QPushButton *btn=0)
CheckPhone::CheckPhone Construct a CheckPhone.
Definition: checkphone.cpp:9
QString getCountry() const
CheckPhone::getCountry Return the country linked to current field.
Definition: checkphone.cpp:41
void setCountry(const QString &country)
CheckPhone::setCountry Modify the country linked to field.
Definition: checkphone.cpp:46
The CheckUntilField class.
Definition: checkuntilfield.h:12
bool check(QString text)
CheckPhone::check Check if the field is valid. To be valid, a name should be composed of a character...
Definition: checkphone.cpp:13
The CheckPhone class Line Edit of Phone number with a check icon.
Definition: checkphone.h:12