FactDev  0.1
databasesettingswidget.h
1 #ifndef DATABASESETTINGSWIDGET_H
2 #define DATABASESETTINGSWIDGET_H
3 
4 #include <QWidget>
5 
6 namespace Ui {
7  class DatabaseSettingsWidget;
8 }
9 
10 namespace Gui {
11 namespace Widgets {
12 
17 class DatabaseSettingsWidget : public QWidget
18 {
19  Q_OBJECT
20 
21 public:
27  explicit DatabaseSettingsWidget(QWidget *parent = 0);
29 
34  void fillFields();
35 
40  QString getDatabaseName();
41 
46  QString getLogin();
47 
53  QString getPassword();
54 
60  QString getDomainNameOrIP();
61 
66  QString getPort();
67 
68 public slots:
69 
75  bool isValid();
76 
81  void checkRepeatPassword(QString text);
82 
87  void userInterfaceChanged();
88 
89 signals:
94  void textfieldChanged();
95 
96 private:
97  Ui::DatabaseSettingsWidget *ui;
98 };
99 
100 }
101 }
102 #endif // DATABASESETTINGSWIDGET_H
void fillFields()
DatabaseSettingsWidget::fillFields Complete fields with a default value for field Database name...
Definition: databasesettingswidget.cpp:21
DatabaseSettingsWidget(QWidget *parent=0)
DatabaseSettingsWidget::DatabaseSettingsWidget Construct a DatabaseSettingsWidget.
Definition: databasesettingswidget.cpp:8
bool isValid()
DatabaseSettingsWidget::isValid Return TRUE if all fields are correctly inputed else FALSE...
Definition: databasesettingswidget.cpp:68
QString getDomainNameOrIP()
DatabaseSettingsWidget::getDomainNameOrIP Return the domain name or IP address on the machine where i...
Definition: databasesettingswidget.cpp:50
QString getDatabaseName()
DatabaseSettingsWidget::getDatabaseName Return the database name.
Definition: databasesettingswidget.cpp:35
void userInterfaceChanged()
DatabaseSettingsWidget::userInterfaceChanged User interface has changed.
Definition: databasesettingswidget.cpp:63
The DatabaseSettingsWidget class Windows of database settings.
Definition: databasesettingswidget.h:17
QString getPassword()
DatabaseSettingsWidget::getPassword Return the password of the user.
Definition: databasesettingswidget.cpp:45
QString getLogin()
DatabaseSettingsWidget::getLogin Return the login of the user.
Definition: databasesettingswidget.cpp:40
QString getPort()
DatabaseSettingsWidget::getPort Return the port of the database.
Definition: databasesettingswidget.cpp:55
void textfieldChanged()
DatabaseSettingsWidget::textfieldChanged Signal which indicates if a fieldtext has changed...
void checkRepeatPassword(QString text)
DatabaseSettingsWidget::checkRepeatLogin Check if the second login field is the same than the first...
Definition: databasesettingswidget.cpp:78