Редакция 38 | К новейшей редакции | Содержимое файла | Последнее изменение | Открыть журнал | 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 | |||
16 | #include <QObject> |
||
17 | #include <QtGui> |
||
18 | #include <QMainWindow> |
||
19 | #include <QString> |
||
20 | #include <QtSql> |
||
21 | #include <QSqlTableModel> |
||
22 | #include <QTableView> |
||
23 | #include <QSqlDriverPlugin> |
||
24 | #include <QIcon> |
||
25 | #include <QVariant> |
||
26 | #include <QProcess> |
||
27 | #include <QByteArray> |
||
28 | |||
29 | |||
30 | class MySql : public QObject |
||
31 | { |
||
32 | Q_OBJECT |
||
33 | public: |
||
34 | explicit MySql(QObject *parent = 0); |
||
35 | |||
36 | signals: |
||
37 | |||
38 | public slots: |
||
39 | |||
40 | private: |
||
41 | QString database_name; // , |
||
42 | QSqlDatabase db; |
||
43 | |||
44 | protected: |
||
45 | |||
46 | public: |
||
47 | void setDatabaseName(QString name); |
||
48 | }; |
||
49 | |||
50 | #endif // MYSQL_H |