settings.h

00001 // This file is generated by kconfig_compiler from kcm_kdnssd.kcfg.
00002 // All changes you do to this file will be lost.
00003 #ifndef DNSSD_CONFIGURATION_H
00004 #define DNSSD_CONFIGURATION_H
00005 
00006 #include <kconfigskeleton.h>
00007 #include <kdebug.h>
00008 
00009 namespace DNSSD {
00010 
00011 class KDNSSD_EXPORT Configuration : public KConfigSkeleton
00012 {
00013   public:
00014     class EnumPublishType
00015     {
00016       public:
00017       enum type { LAN, WAN, COUNT };
00018     };
00019 
00020     static Configuration *self();
00021     ~Configuration();
00022 
00026     static
00027     void setDomainList( const QStringList & v )
00028     {
00029       if (!self()->isImmutable( QString::fromLatin1( "DomainList" ) ))
00030         self()->mDomainList = v;
00031     }
00032 
00036     static
00037     QStringList domainList()
00038     {
00039       return self()->mDomainList;
00040     }
00041 
00045     static
00046     void setBrowseLocal( bool v )
00047     {
00048       if (!self()->isImmutable( QString::fromLatin1( "BrowseLocal" ) ))
00049         self()->mBrowseLocal = v;
00050     }
00051 
00055     static
00056     bool browseLocal()
00057     {
00058       return self()->mBrowseLocal;
00059     }
00060 
00064     static
00065     void setRecursive( bool v )
00066     {
00067       if (!self()->isImmutable( QString::fromLatin1( "Recursive" ) ))
00068         self()->mRecursive = v;
00069     }
00070 
00074     static
00075     bool recursive()
00076     {
00077       return self()->mRecursive;
00078     }
00079 
00083     static
00084     void setPublishType( int v )
00085     {
00086       if (!self()->isImmutable( QString::fromLatin1( "PublishType" ) ))
00087         self()->mPublishType = v;
00088     }
00089 
00093     static
00094     int publishType()
00095     {
00096       return self()->mPublishType;
00097     }
00098 
00102     static
00103     void setPublishDomain( const QString & v )
00104     {
00105       if (!self()->isImmutable( QString::fromLatin1( "PublishDomain" ) ))
00106         self()->mPublishDomain = v;
00107     }
00108 
00112     static
00113     QString publishDomain()
00114     {
00115       return self()->mPublishDomain;
00116     }
00117 
00118     static
00119     void writeConfig()
00120     {
00121       static_cast<KConfigSkeleton*>(self())->writeConfig();
00122     }
00123   protected:
00124     Configuration();
00125     static Configuration *mSelf;
00126 
00127 
00128     // browsing
00129     QStringList mDomainList;
00130     bool mBrowseLocal;
00131     bool mRecursive;
00132 
00133     // publishing
00134     int mPublishType;
00135     QString mPublishDomain;
00136 
00137   private:
00138 };
00139 
00140 }
00141 
00142 #endif
00143 
KDE Home | KDE Accessibility Home | Description of Access Keys