Редакция 29 | Редакция 41 | К новейшей редакции | Содержимое файла | Сравнить с предыдущей | Последнее изменение | Открыть журнал | RSS
Редакция | Автор | № строки | Строка |
---|---|---|---|
29 | pingvin | 1 | /************************************************************************************ |
2 | ** MySQL |
||
3 | ** MySQL class contains methods for working with databases |
||
4 | ** |
||
5 | ** |
||
6 | *************************************************************************************/ |
||
7 | |||
8 | |||
9 | |||
10 | |||
11 | |||
12 | |||
13 | #ifndef MYSQL_H |
||
14 | #define MYSQL_H |
||
15 | |||
38 | pingvin | 16 | #include "settingsdialog.h" |
17 | #include "tablefield.h" |
||
18 | #include "sqltable.h" |
||
19 | |||
29 | pingvin | 20 | #include <QObject> |
21 | #include <QtGui> |
||
22 | #include <QMainWindow> |
||
23 | #include <QString> |
||
24 | #include <QtSql> |
||
25 | #include <QSqlTableModel> |
||
26 | #include <QTableView> |
||
27 | #include <QSqlDriverPlugin> |
||
28 | #include <QIcon> |
||
29 | #include <QVariant> |
||
30 | #include <QProcess> |
||
31 | #include <QByteArray> |
||
32 | |||
33 | |||
34 | class MySql : public QObject |
||
35 | { |
||
36 | Q_OBJECT |
||
37 | public: |
||
38 | explicit MySql(QObject *parent = 0); |
||
39 | |||
40 | signals: |
||
41 | |||
42 | public slots: |
||
43 | |||
44 | private: |
||
45 | QString database_name; // , |
||
46 | QSqlDatabase db; |
||
47 | |||
48 | protected: |
||
49 | |||
50 | public: |
||
51 | void setDatabaseName(QString name); |
||
52 | }; |
||
53 | |||
54 | #endif // MYSQL_H |