35 #include <tdeconfig.h>
37 KAccount::KAccount( const uint id, const TQString &name, const Type type )
38 : mId( id ), mName( name ), mType( type )
42 void KAccount::writeConfig( TDEConfig &config, const TQString &group )
44 TQString oldGroup = config.group();
46 config.setGroup(group);
47 config.writeEntry( "Id", mId);
48 config.writeEntry( "Name", mName);
50 config.setGroup(oldGroup);
53 void KAccount::readConfig( TDEConfig &config, const TQString &group )
55 TQString oldGroup = config.group();
57 config.setGroup(group);
58 mId = config.readUnsignedNumEntry( "Id", 0);
59 mName = config.readEntry( "Name");
61 config.setGroup(oldGroup);
|