Bibletime – a bible study tool
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

46 lines
985 B

/*********
*
* This file is part of BibleTime's source code, http://www.bibletime.info/.
*
* Copyright 1999-2006 by the BibleTime developers.
* The BibleTime source code is licensed under the GNU General Public License version 2.0.
*
**********/
#include "bibletimeapp.h"
#include "frontend/cbtconfig.h"
#include "util/cresmgr.h"
//KDE includes
#include <dcopclient.h>
BibleTimeApp::BibleTimeApp() {
initDCOP();
CResMgr::init_i18n();
}
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 TQCString appId = dcopClient()->registerAs(kapp->name(), false);
// dcopClient()->setDefaultObject("BibleTimeInterface");
}
}