1 |
/*************************************************************************** |
/*************************************************************************** |
2 |
* * |
* * |
3 |
* Copyright (C) 2007 Grigor Iliev * |
* Copyright (C) 2007, 2008 Grigor Iliev * |
4 |
* * |
* * |
5 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
6 |
* it under the terms of the GNU General Public License as published by * |
* it under the terms of the GNU General Public License as published by * |
453 |
*/ |
*/ |
454 |
static String toEscapedText(String text); |
static String toEscapedText(String text); |
455 |
|
|
|
/** |
|
|
* Closes the database connection if opened and deletes |
|
|
* the InstrumentsDb instance. |
|
|
*/ |
|
|
static void Destroy(); |
|
|
|
|
456 |
JobList Jobs; |
JobList Jobs; |
457 |
|
|
458 |
private: |
private: |
459 |
sqlite3* db; |
sqlite3* db; |
460 |
String DbFile; |
String DbFile; |
461 |
static InstrumentsDb* pInstrumentsDb; |
static InstrumentsDb instance; |
462 |
Mutex DbInstrumentsMutex; |
Mutex DbInstrumentsMutex; |
463 |
ListenerList<InstrumentsDb::Listener*> llInstrumentsDbListeners; |
ListenerList<InstrumentsDb::Listener*> llInstrumentsDbListeners; |
464 |
bool InTransaction; |
bool InTransaction; |