-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathlogtools.cpp
33 lines (31 loc) · 880 Bytes
/
logtools.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include "logtools.h"
logTools::logTools()
{
selectQuery.prepare("SELECT id,"
"call, "
"name, "
"ctry, "
"date, "
"time, "
"freq, "
"mode, "
"sent, "
"recv, "
"grid, "
"qqth, "
"comm, "
"ctss, "
"ctsr, "
"sync, "
"loca "
"FROM qsos");
}
void logTools::performQuery()
{
// Perform select query:
if(!selectQuery.exec()) {
qDebug() << "selectQuery: SQL Error" << selectQuery.lastError();
} else {
qDebug() << "selectQuery: exec ok";
}
}