home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / libkcddb / configbase.h < prev   
Encoding:
C/C++ Source or Header  |  2008-10-24  |  5.3 KB  |  313 lines

  1. // This file is generated by kconfig_compiler from libkcddb.kcfg.
  2. // All changes you do to this file will be lost.
  3. #ifndef CONFIGBASE_H
  4. #define CONFIGBASE_H
  5.  
  6. #include <kconfigskeleton.h>
  7. #include <kdebug.h>
  8.  
  9. #include <qdir.h>
  10. class KDE_EXPORT ConfigBase : public KConfigSkeleton
  11. {
  12.   public:
  13.     class EnumCachePolicy
  14.     {
  15.       public:
  16.       enum type { OnlyCache, UseCache, IgnoreCache, COUNT };
  17.     };
  18.     class EnumLookupTransport
  19.     {
  20.       public:
  21.       enum type { CDDBP, HTTP, COUNT };
  22.     };
  23.     class EnumSubmitTransport
  24.     {
  25.       public:
  26.       enum type { HTTP, SMTP, COUNT };
  27.     };
  28.  
  29.     ConfigBase( );
  30.     ~ConfigBase();
  31.  
  32.     /**
  33.       Set hostname
  34.     */
  35.     void setHostname( const QString & v )
  36.     {
  37.       if (!isImmutable( QString::fromLatin1( "hostname" ) ))
  38.         mHostname = v;
  39.     }
  40.  
  41.     /**
  42.       Get hostname
  43.     */
  44.     QString hostname() const
  45.     {
  46.       return mHostname;
  47.     }
  48.  
  49.     /**
  50.       Set port
  51.     */
  52.     void setPort( int v )
  53.     {
  54.       if (!isImmutable( QString::fromLatin1( "port" ) ))
  55.         mPort = v;
  56.     }
  57.  
  58.     /**
  59.       Get port
  60.     */
  61.     int port() const
  62.     {
  63.       return mPort;
  64.     }
  65.  
  66.     /**
  67.       Set cachePolicy
  68.     */
  69.     void setCachePolicy( int v )
  70.     {
  71.       if (!isImmutable( QString::fromLatin1( "cachePolicy" ) ))
  72.         mCachePolicy = v;
  73.     }
  74.  
  75.     /**
  76.       Get cachePolicy
  77.     */
  78.     int cachePolicy() const
  79.     {
  80.       return mCachePolicy;
  81.     }
  82.  
  83.     /**
  84.       Set lookupTransport
  85.     */
  86.     void setLookupTransport( int v )
  87.     {
  88.       if (!isImmutable( QString::fromLatin1( "lookupTransport" ) ))
  89.         mLookupTransport = v;
  90.     }
  91.  
  92.     /**
  93.       Get lookupTransport
  94.     */
  95.     int lookupTransport() const
  96.     {
  97.       return mLookupTransport;
  98.     }
  99.  
  100.     /**
  101.       Set cacheLocations
  102.     */
  103.     void setCacheLocations( const QStringList & v )
  104.     {
  105.       if (!isImmutable( QString::fromLatin1( "cacheLocations" ) ))
  106.         mCacheLocations = v;
  107.     }
  108.  
  109.     /**
  110.       Get cacheLocations
  111.     */
  112.     QStringList cacheLocations() const
  113.     {
  114.       return mCacheLocations;
  115.     }
  116.  
  117.     /**
  118.       Set submitTransport
  119.     */
  120.     void setSubmitTransport( int v )
  121.     {
  122.       if (!isImmutable( QString::fromLatin1( "submitTransport" ) ))
  123.         mSubmitTransport = v;
  124.     }
  125.  
  126.     /**
  127.       Get submitTransport
  128.     */
  129.     int submitTransport() const
  130.     {
  131.       return mSubmitTransport;
  132.     }
  133.  
  134.     /**
  135.       Set emailAddress
  136.     */
  137.     void setEmailAddress( const QString & v )
  138.     {
  139.       if (!isImmutable( QString::fromLatin1( "emailAddress" ) ))
  140.         mEmailAddress = v;
  141.     }
  142.  
  143.     /**
  144.       Get emailAddress
  145.     */
  146.     QString emailAddress() const
  147.     {
  148.       return mEmailAddress;
  149.     }
  150.  
  151.     /**
  152.       Set httpSubmitServer
  153.     */
  154.     void setHttpSubmitServer( const QString & v )
  155.     {
  156.       if (!isImmutable( QString::fromLatin1( "httpSubmitServer" ) ))
  157.         mHttpSubmitServer = v;
  158.     }
  159.  
  160.     /**
  161.       Get httpSubmitServer
  162.     */
  163.     QString httpSubmitServer() const
  164.     {
  165.       return mHttpSubmitServer;
  166.     }
  167.  
  168.     /**
  169.       Set httpSubmitPort
  170.     */
  171.     void setHttpSubmitPort( int v )
  172.     {
  173.       if (!isImmutable( QString::fromLatin1( "httpSubmitPort" ) ))
  174.         mHttpSubmitPort = v;
  175.     }
  176.  
  177.     /**
  178.       Get httpSubmitPort
  179.     */
  180.     int httpSubmitPort() const
  181.     {
  182.       return mHttpSubmitPort;
  183.     }
  184.  
  185.     /**
  186.       Set smtpPort
  187.     */
  188.     void setSmtpPort( int v )
  189.     {
  190.       if (!isImmutable( QString::fromLatin1( "smtpPort" ) ))
  191.         mSmtpPort = v;
  192.     }
  193.  
  194.     /**
  195.       Get smtpPort
  196.     */
  197.     int smtpPort() const
  198.     {
  199.       return mSmtpPort;
  200.     }
  201.  
  202.     /**
  203.       Set smtpUsername
  204.     */
  205.     void setSmtpUsername( const QString & v )
  206.     {
  207.       if (!isImmutable( QString::fromLatin1( "smtpUsername" ) ))
  208.         mSmtpUsername = v;
  209.     }
  210.  
  211.     /**
  212.       Get smtpUsername
  213.     */
  214.     QString smtpUsername() const
  215.     {
  216.       return mSmtpUsername;
  217.     }
  218.  
  219.     /**
  220.       Set useGlobalEmail
  221.     */
  222.     void setUseGlobalEmail( bool v )
  223.     {
  224.       if (!isImmutable( QString::fromLatin1( "useGlobalEmail" ) ))
  225.         mUseGlobalEmail = v;
  226.     }
  227.  
  228.     /**
  229.       Get useGlobalEmail
  230.     */
  231.     bool useGlobalEmail() const
  232.     {
  233.       return mUseGlobalEmail;
  234.     }
  235.  
  236.     /**
  237.       Set replyTo
  238.     */
  239.     void setReplyTo( const QString & v )
  240.     {
  241.       if (!isImmutable( QString::fromLatin1( "replyTo" ) ))
  242.         mReplyTo = v;
  243.     }
  244.  
  245.     /**
  246.       Get replyTo
  247.     */
  248.     QString replyTo() const
  249.     {
  250.       return mReplyTo;
  251.     }
  252.  
  253.     /**
  254.       Set smtpHostname
  255.     */
  256.     void setSmtpHostname( const QString & v )
  257.     {
  258.       if (!isImmutable( QString::fromLatin1( "smtpHostname" ) ))
  259.         mSmtpHostname = v;
  260.     }
  261.  
  262.     /**
  263.       Get smtpHostname
  264.     */
  265.     QString smtpHostname() const
  266.     {
  267.       return mSmtpHostname;
  268.     }
  269.  
  270.     /**
  271.       Set submitAddress
  272.     */
  273.     void setSubmitAddress( const QString & v )
  274.     {
  275.       if (!isImmutable( QString::fromLatin1( "submitAddress" ) ))
  276.         mSubmitAddress = v;
  277.     }
  278.  
  279.     /**
  280.       Get submitAddress
  281.     */
  282.     QString submitAddress() const
  283.     {
  284.       return mSubmitAddress;
  285.     }
  286.  
  287.   protected:
  288.  
  289.     // Lookup
  290.     QString mHostname;
  291.     int mPort;
  292.     int mCachePolicy;
  293.     int mLookupTransport;
  294.     QStringList mCacheLocations;
  295.  
  296.     // Submit
  297.     int mSubmitTransport;
  298.     QString mEmailAddress;
  299.     QString mHttpSubmitServer;
  300.     int mHttpSubmitPort;
  301.     int mSmtpPort;
  302.     QString mSmtpUsername;
  303.     bool mUseGlobalEmail;
  304.     QString mReplyTo;
  305.     QString mSmtpHostname;
  306.     QString mSubmitAddress;
  307.  
  308.   private:
  309. };
  310.  
  311. #endif
  312.  
  313.