36 #include <QtCore/QList>
42 using namespace AlarmNotifications;
48 return global_instance;
50 catch ( std::exception& e )
65 : _configfilelocation ( CreateConfigFileLocation() ),
66 _backend ( KSharedConfig::openConfig ( QString::fromUtf8 ( _configfilelocation.c_str() ) , KConfig::SimpleConfig ) ),
67 _skeleton ( _backend )
97 _skeleton.setCurrentGroup ( QString::fromUtf8 (
"ActiveMQConnectivity" ) );
246 const char*
const envvar = getenv (
"ALARMNOTIFICATIONSCONFIG" );
247 if ( envvar ==
nullptr )
248 if ( getenv (
"HOME" ) !=
nullptr )
250 std::string conffile ( CONFIGFILELOCATION );
251 if ( conffile.find (
"~" ) != std::string::npos )
252 conffile.replace ( conffile.find (
"~" ), 1, getenv (
"HOME" ) );
257 return std::string ( CONFIGFILELOCATION );
260 return std::string ( envvar );