/[kvoss_old]/kvsvv/trunk/src/eksdb.h
ViewVC logotype

Contents of /kvsvv/trunk/src/eksdb.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3206 - (show annotations) (download)
Wed Jan 4 12:34:06 2012 UTC (7 years, 10 months ago) by terjeer
File MIME type: text/plain
File size: 693 byte(s)
- first checkin -
1 /*programert av Glenn Blandehoel -sist oppdatert 22/6-2011*/
2 #ifndef eksdb_H
3 #define eksdb_H
4 #include <QtSql/QtSql>
5 #define DB_DRIVER "QPSQL"
6 #define DB_HOST "157.249.66.89"
7 #define DB_DBNAME "kvmeta-svv"
8 #define DB_USER "kvalobs"
9 #define DB_PASSWD "kvalobs12"
10
11 class Eksdb
12 {
13
14 public:
15
16 Eksdb();
17 Eksdb(QString IP_db,QString dbName);
18 ~Eksdb();
19 void closeConnection();
20 bool createConnection();
21 QString querie(QString sqlString,QString *param,QString *queryString);
22 void insert_db(float FG,int idconf);
23 int numberOfRows(QString sqlString);
24 private:
25 QSqlDatabase myDB;
26 QSqlDatabase *db4;
27 bool okDB;
28 QString IP,dbN;
29
30 };
31
32
33
34 #endif
35
36
37

svn@met.no
ViewVC Help
Powered by ViewVC 1.1.5