Pass database object to others using their constructors.
Prepare SQLiteDB class functions so it can be instantiated.
This commit is contained in:
@@ -35,7 +35,7 @@ class CmaClient : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit CmaClient(QObject *parent = 0);
|
||||
explicit CmaClient(Database *db, QObject *parent = 0);
|
||||
|
||||
static bool isRunning();
|
||||
void launch();
|
||||
@@ -55,6 +55,7 @@ private:
|
||||
static void registrationComplete();
|
||||
|
||||
CmaBroadcast broadcast;
|
||||
Database *m_db;
|
||||
static QString tempOnlineId;
|
||||
|
||||
//TODO: move all the control variables to the client manager class
|
||||
|
||||
Reference in New Issue
Block a user