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.
30 lines
512 B
30 lines
512 B
#include "waconfig.h"
|
|
|
|
#include <kstaticdeleter.h>
|
|
|
|
WAConfig *WAConfig::mSelf = 0;
|
|
static KStaticDeleter<WAConfig> staticWAConfigDeleter;
|
|
|
|
WAConfig *WAConfig::self()
|
|
{
|
|
if ( !mSelf ) {
|
|
staticWAConfigDeleter.setObject( mSelf, new WAConfig() );
|
|
mSelf->readConfig();
|
|
}
|
|
|
|
return mSelf;
|
|
}
|
|
|
|
WAConfig::WAConfig( )
|
|
: TDEConfigSkeleton( TQString::fromLatin1( "wlassistantrc" ) )
|
|
{
|
|
mSelf = this;
|
|
}
|
|
|
|
WAConfig::~WAConfig()
|
|
{
|
|
if ( mSelf == this )
|
|
staticWAConfigDeleter.setObject( mSelf, 0, false );
|
|
}
|
|
|