Fotobot
Get data from your photovoltaic plant
msqlquery.h
Go to the documentation of this file.
1 
6 #ifndef MSQLQUERY_H
7 #define MSQLQUERY_H
8 
9 #include <QObject>
10 #include <QSqlQuery>
11 #include <QSqlDatabase>
12 #include <QCoreApplication>
13 
14 
22 class MSqlQuery : public QSqlQuery {
23  Q_DECLARE_TR_FUNCTIONS(MSqlQuery)
24  public:
25  MSqlQuery();
26  MSqlQuery(QString);
27  MSqlQuery(QSqlDatabase);
28 
29  virtual ~MSqlQuery();
30 
31  public:
32  bool exec (const QString& query);
33  bool exec ();
34 
35  private:
36  void isError();
37 
38 };
39 
40 #endif
Extends class QSqlQuery - adds a diagnostics and logging.
Definition: msqlquery.h:22