UltraScan III
us_database.h
Go to the documentation of this file.
1 #ifndef US_DATABASE_H
3 #define US_DATABASE_H
4 
5 #include <QtCore>
6 
7 #include "us_widgets.h"
8 
12 class US_Database : public US_Widgets
13 {
14  Q_OBJECT
15 
16  public:
17 
19  US_Database( QWidget* w = 0, Qt::WindowFlags flags = 0 );
20 
21  private:
22  QList<QStringList> dblist;
23  QString uuid;
24 
25  QPushButton* pb_add;
26  QPushButton* pb_delete;
27  QPushButton* pb_save;
28  QPushButton* pb_reset;
29  QPushButton* pb_testConnect;
30 
31  QLineEdit* le_description;
32  QLineEdit* le_username;
33  QLineEdit* le_password;
34  QLineEdit* le_dbname;
35  QLineEdit* le_host;
36  QLineEdit* le_investigator_email;
37  QLineEdit* le_investigator_pw;
38 
39  QListWidget* lw_entries;
40 
41  void update_lw( const QString& = 0 );
42 
43  private slots:
44  void help ( void );
45  void select_db ( QListWidgetItem* );
46  void check_add ( void );
47  void reset ( void );
48  void save_default( void );
49  void deleteDB ( void );
50  bool test_connect( void );
51  void update_inv ( void );
52 };
53 #endif