25 #include <ksimpleconfig.h>
26 #include <kstandarddirs.h>
31 KSimpleConfig *DocPrefs::mConfig = 0;
33 DocPrefs::DocPrefs( const TQString &type )
36 mConfig = new KSimpleConfig( locateLocal( "data", "korganizer/docprefs." + type + ".tdeconfig" ) );
45 void DocPrefs::setDoc( const TQString &identifier )
50 TQString DocPrefs::doc() const
55 bool DocPrefs::readBoolEntry( const TQString & id ) const
57 mConfig->setGroup( mDocId );
58 bool result = mConfig->readBoolEntry( id, false );
63 void DocPrefs::writeEntry( const TQString & id, bool value )
66 mConfig->setGroup( mDocId );
67 mConfig->writeEntry( id, value );
|