summaryrefslogtreecommitdiff
path: root/src/bibletimeapp.cpp
blob: 13451fcde14a296b62e074c73aa57a860dae78c5 (plain)
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
34
35
36
37
38
39
40
41
42
43
/*********
*
* This file is part of BibleTime's source code, http://www.bibletime.info/.
*
* Copyright 1999-2008 by the BibleTime developers.
* The BibleTime source code is licensed under the GNU General Public License version 2.0.
*
**********/

#include "bibletimeapp.h"
#include "backend/config/cbtconfig.h"
#include "util/cresmgr.h"

//KDE includes
//#include <dcopclient.h> #TODO: USE DBUS INSTEAD OF DCOP

BibleTimeApp::BibleTimeApp( int & argc, char ** argv ) : QApplication(argc, argv) 
{ 
//	initDCOP();
	CResMgr::init_tr();
}

BibleTimeApp::~BibleTimeApp() {

	//we can set this safely now because we close now (hopyfully without crash)
	CBTConfig::set(CBTConfig::crashedLastTime, false);
	CBTConfig::set(CBTConfig::crashedTwoTimes, false);

	deleteDisplayTemplateMgr();
	deleteLanguageMgr();
	deleteBackend();
}

/*
void BibleTimeApp::initDCOP() {
	const bool dcopOk = dcopClient()->attach();
	Q_ASSERT(dcopOk);
	if (dcopOk) {
		const Q3CString appId = dcopClient()->registerAs(kapp->name(), false);
		//   dcopClient()->setDefaultObject("BibleTimeInterface");
	}
}
*/