dnssd Library API Documentation

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 00008 namespace DNSSD { 00009 00010 class KDNSSD_EXPORT Configuration : public KConfigSkeleton 00011 { 00012 public: 00013 class EnumPublishType 00014 { 00015 public: 00016 enum type { LAN, WAN, COUNT }; 00017 }; 00018 00019 static Configuration *self(); 00020 ~Configuration(); 00021 00025 static 00026 void setDomainList( const QStringList & v ) 00027 { 00028 if (!self()->isImmutable( QString::fromLatin1( "DomainList" ) )) 00029 self()->mDomainList = v; 00030 } 00031 00035 static 00036 QStringList domainList() 00037 { 00038 return self()->mDomainList; 00039 } 00040 00044 static 00045 void setBrowseLocal( bool v ) 00046 { 00047 if (!self()->isImmutable( QString::fromLatin1( "BrowseLocal" ) )) 00048 self()->mBrowseLocal = v; 00049 } 00050 00054 static 00055 bool browseLocal() 00056 { 00057 return self()->mBrowseLocal; 00058 } 00059 00063 static 00064 void setRecursive( bool v ) 00065 { 00066 if (!self()->isImmutable( QString::fromLatin1( "Recursive" ) )) 00067 self()->mRecursive = v; 00068 } 00069 00073 static 00074 bool recursive() 00075 { 00076 return self()->mRecursive; 00077 } 00078 00082 static 00083 void setPublishType( int v ) 00084 { 00085 if (!self()->isImmutable( QString::fromLatin1( "PublishType" ) )) 00086 self()->mPublishType = v; 00087 } 00088 00092 static 00093 int publishType() 00094 { 00095 return self()->mPublishType; 00096 } 00097 00101 static 00102 void setPublishDomain( const QString & v ) 00103 { 00104 if (!self()->isImmutable( QString::fromLatin1( "PublishDomain" ) )) 00105 self()->mPublishDomain = v; 00106 } 00107 00111 static 00112 QString publishDomain() 00113 { 00114 return self()->mPublishDomain; 00115 } 00116 00117 static 00118 void writeConfig() 00119 { 00120 static_cast<KConfigSkeleton*>(self())->writeConfig(); 00121 } 00122 protected: 00123 Configuration(); 00124 static Configuration *mSelf; 00125 00126 00127 // browsing 00128 QStringList mDomainList; 00129 bool mBrowseLocal; 00130 bool mRecursive; 00131 00132 // publishing 00133 int mPublishType; 00134 QString mPublishDomain; 00135 00136 private: 00137 }; 00138 00139 } 00140 00141 #endif 00142
KDE Logo
This file is part of the documentation for dnssd Library Version 3.4.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Apr 14 00:30:31 2005 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003