• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdeutils
  • Sitemap
  • Contact Us
 

kgpg

kgpgsettings.h

Go to the documentation of this file.
00001 // This file is generated by kconfig_compiler from kgpg.kcfg.
00002 // All changes you do to this file will be lost.
00003 #ifndef KGPGSETTINGS_H
00004 #define KGPGSETTINGS_H
00005 
00006 #include <kgpginterface.h>
00007 
00008 #include <kconfigskeleton.h>
00009 #include <kdebug.h>
00010 
00011 #include <kglobalsettings.h>
00012 class KGpgSettings : public KConfigSkeleton
00013 {
00014   public:
00015     class EnumPhotoProperties
00016     {
00017       public:
00018       enum type { Disable, Small, Medium, Big, COUNT };
00019     };
00020     class EnumLeftClick
00021     {
00022       public:
00023       enum type { KeyManager, Editor, COUNT };
00024     };
00025     class EnumEncryptedDropEvent
00026     {
00027       public:
00028       enum type { DecryptAndSave, DecryptAndOpen, Ask, COUNT };
00029     };
00030     class EnumUnencryptedDropEvent
00031     {
00032       public:
00033       enum type { Encrypt, Sign, Ask, COUNT };
00034     };
00035     class EnumSignMenu
00036     {
00037       public:
00038       enum type { Disabled, AllFiles, COUNT };
00039     };
00040     class EnumDecryptMenu
00041     {
00042       public:
00043       enum type { Disabled, AllFiles, EncryptedFiles, COUNT };
00044     };
00045 
00046     static KGpgSettings *self();
00047     ~KGpgSettings();
00048 
00052     static
00053     void setCustomDecrypt( const QString & v )
00054     {
00055       if (!self()->isImmutable( QString::fromLatin1 ( "CustomDecrypt" ) ))
00056         self()->mCustomDecrypt = v;
00057     }
00058 
00062     static
00063     QString customDecrypt()
00064     {
00065       return self()->mCustomDecrypt;
00066     }
00067 
00071     static
00072     void setCustomEncryptionOptions( const QString & v )
00073     {
00074       if (!self()->isImmutable( QString::fromLatin1 ( "CustomEncryptionOptions" ) ))
00075         self()->mCustomEncryptionOptions = v;
00076     }
00077 
00081     static
00082     QString customEncryptionOptions()
00083     {
00084       return self()->mCustomEncryptionOptions;
00085     }
00086 
00090     static
00091     void setAllowCustomEncryptionOptions( bool v )
00092     {
00093       if (!self()->isImmutable( QString::fromLatin1 ( "AllowCustomEncryptionOptions" ) ))
00094         self()->mAllowCustomEncryptionOptions = v;
00095     }
00096 
00100     static
00101     bool allowCustomEncryptionOptions()
00102     {
00103       return self()->mAllowCustomEncryptionOptions;
00104     }
00105 
00109     static
00110     void setFileEncryptionKey( const QString & v )
00111     {
00112       if (!self()->isImmutable( QString::fromLatin1 ( "FileEncryptionKey" ) ))
00113         self()->mFileEncryptionKey = v;
00114     }
00115 
00119     static
00120     QString fileEncryptionKey()
00121     {
00122       return self()->mFileEncryptionKey;
00123     }
00124 
00128     static
00129     void setEncryptFilesTo( bool v )
00130     {
00131       if (!self()->isImmutable( QString::fromLatin1 ( "EncryptFilesTo" ) ))
00132         self()->mEncryptFilesTo = v;
00133     }
00134 
00138     static
00139     bool encryptFilesTo()
00140     {
00141       return self()->mEncryptFilesTo;
00142     }
00143 
00147     static
00148     void setAsciiArmor( bool v )
00149     {
00150       if (!self()->isImmutable( QString::fromLatin1 ( "AsciiArmor" ) ))
00151         self()->mAsciiArmor = v;
00152     }
00153 
00157     static
00158     bool asciiArmor()
00159     {
00160       return self()->mAsciiArmor;
00161     }
00162 
00166     static
00167     void setAllowUntrustedKeys( bool v )
00168     {
00169       if (!self()->isImmutable( QString::fromLatin1 ( "AllowUntrustedKeys" ) ))
00170         self()->mAllowUntrustedKeys = v;
00171     }
00172 
00176     static
00177     bool allowUntrustedKeys()
00178     {
00179       return self()->mAllowUntrustedKeys;
00180     }
00181 
00185     static
00186     void setHideUserID( bool v )
00187     {
00188       if (!self()->isImmutable( QString::fromLatin1 ( "HideUserID" ) ))
00189         self()->mHideUserID = v;
00190     }
00191 
00195     static
00196     bool hideUserID()
00197     {
00198       return self()->mHideUserID;
00199     }
00200 
00204     static
00205     void setPgpCompatibility( bool v )
00206     {
00207       if (!self()->isImmutable( QString::fromLatin1 ( "PgpCompatibility" ) ))
00208         self()->mPgpCompatibility = v;
00209     }
00210 
00214     static
00215     bool pgpCompatibility()
00216     {
00217       return self()->mPgpCompatibility;
00218     }
00219 
00223     static
00224     void setPgpExtension( bool v )
00225     {
00226       if (!self()->isImmutable( QString::fromLatin1 ( "PgpExtension" ) ))
00227         self()->mPgpExtension = v;
00228     }
00229 
00233     static
00234     bool pgpExtension()
00235     {
00236       return self()->mPgpExtension;
00237     }
00238 
00242     static
00243     void setGpgConfigPath( const QString & v )
00244     {
00245       if (!self()->isImmutable( QString::fromLatin1 ( "GpgConfigPath" ) ))
00246         self()->mGpgConfigPath = v;
00247     }
00248 
00252     static
00253     QString gpgConfigPath()
00254     {
00255       return self()->mGpgConfigPath;
00256     }
00257 
00261     static
00262     void setGpgBinaryPath( const QString & v )
00263     {
00264       if (!self()->isImmutable( QString::fromLatin1 ( "GpgBinaryPath" ) ))
00265         self()->mGpgBinaryPath = v;
00266     }
00267 
00271     static
00272     QString gpgBinaryPath()
00273     {
00274       return self()->mGpgBinaryPath;
00275     }
00276 
00280     static
00281     void setGroups( const QString & v )
00282     {
00283       if (!self()->isImmutable( QString::fromLatin1 ( "Groups" ) ))
00284         self()->mGroups = v;
00285     }
00286 
00290     static
00291     QString groups()
00292     {
00293       return self()->mGroups;
00294     }
00295 
00299     static
00300     void setPhotoProperties( int v )
00301     {
00302       if (!self()->isImmutable( QString::fromLatin1 ( "PhotoProperties" ) ))
00303         self()->mPhotoProperties = v;
00304     }
00305 
00309     static
00310     int photoProperties()
00311     {
00312       return self()->mPhotoProperties;
00313     }
00314 
00318     static
00319     void setFirstRun( bool v )
00320     {
00321       if (!self()->isImmutable( QString::fromLatin1 ( "FirstRun" ) ))
00322         self()->mFirstRun = v;
00323     }
00324 
00328     static
00329     bool firstRun()
00330     {
00331       return self()->mFirstRun;
00332     }
00333 
00337     static
00338     void setEditorGeometry( const QSize & v )
00339     {
00340       if (!self()->isImmutable( QString::fromLatin1 ( "EditorGeometry" ) ))
00341         self()->mEditorGeometry = v;
00342     }
00343 
00347     static
00348     QSize editorGeometry()
00349     {
00350       return self()->mEditorGeometry;
00351     }
00352 
00356     static
00357     void setShowTrust( bool v )
00358     {
00359       if (!self()->isImmutable( QString::fromLatin1 ( "ShowTrust" ) ))
00360         self()->mShowTrust = v;
00361     }
00362 
00366     static
00367     bool showTrust()
00368     {
00369       return self()->mShowTrust;
00370     }
00371 
00375     static
00376     void setShowExpi( bool v )
00377     {
00378       if (!self()->isImmutable( QString::fromLatin1 ( "ShowExpi" ) ))
00379         self()->mShowExpi = v;
00380     }
00381 
00385     static
00386     bool showExpi()
00387     {
00388       return self()->mShowExpi;
00389     }
00390 
00394     static
00395     void setShowSize( bool v )
00396     {
00397       if (!self()->isImmutable( QString::fromLatin1 ( "ShowSize" ) ))
00398         self()->mShowSize = v;
00399     }
00400 
00404     static
00405     bool showSize()
00406     {
00407       return self()->mShowSize;
00408     }
00409 
00413     static
00414     void setShowCreat( bool v )
00415     {
00416       if (!self()->isImmutable( QString::fromLatin1 ( "ShowCreat" ) ))
00417         self()->mShowCreat = v;
00418     }
00419 
00423     static
00424     bool showCreat()
00425     {
00426       return self()->mShowCreat;
00427     }
00428 
00432     static
00433     void setShowSecret( bool v )
00434     {
00435       if (!self()->isImmutable( QString::fromLatin1 ( "ShowSecret" ) ))
00436         self()->mShowSecret = v;
00437     }
00438 
00442     static
00443     bool showSecret()
00444     {
00445       return self()->mShowSecret;
00446     }
00447 
00451     static
00452     void setHideExRev( bool v )
00453     {
00454       if (!self()->isImmutable( QString::fromLatin1 ( "HideExRev" ) ))
00455         self()->mHideExRev = v;
00456     }
00457 
00461     static
00462     bool hideExRev()
00463     {
00464       return self()->mHideExRev;
00465     }
00466 
00470     static
00471     void setUseMouseSelection( bool v )
00472     {
00473       if (!self()->isImmutable( QString::fromLatin1 ( "UseMouseSelection" ) ))
00474         self()->mUseMouseSelection = v;
00475     }
00476 
00480     static
00481     bool useMouseSelection()
00482     {
00483       return self()->mUseMouseSelection;
00484     }
00485 
00489     static
00490     void setAutoStart( bool v )
00491     {
00492       if (!self()->isImmutable( QString::fromLatin1 ( "AutoStart" ) ))
00493         self()->mAutoStart = v;
00494     }
00495 
00499     static
00500     bool autoStart()
00501     {
00502       return self()->mAutoStart;
00503     }
00504 
00508     static
00509     void setRemoteFileWarn( bool v )
00510     {
00511       if (!self()->isImmutable( QString::fromLatin1 ( "RemoteFileWarn" ) ))
00512         self()->mRemoteFileWarn = v;
00513     }
00514 
00518     static
00519     bool remoteFileWarn()
00520     {
00521       return self()->mRemoteFileWarn;
00522     }
00523 
00527     static
00528     void setLeftClick( int v )
00529     {
00530       if (!self()->isImmutable( QString::fromLatin1 ( "LeftClick" ) ))
00531         self()->mLeftClick = v;
00532     }
00533 
00537     static
00538     int leftClick()
00539     {
00540       return self()->mLeftClick;
00541     }
00542 
00546     static
00547     void setEncryptedDropEvent( int v )
00548     {
00549       if (!self()->isImmutable( QString::fromLatin1 ( "EncryptedDropEvent" ) ))
00550         self()->mEncryptedDropEvent = v;
00551     }
00552 
00556     static
00557     int encryptedDropEvent()
00558     {
00559       return self()->mEncryptedDropEvent;
00560     }
00561 
00565     static
00566     void setUnencryptedDropEvent( int v )
00567     {
00568       if (!self()->isImmutable( QString::fromLatin1 ( "UnencryptedDropEvent" ) ))
00569         self()->mUnencryptedDropEvent = v;
00570     }
00571 
00575     static
00576     int unencryptedDropEvent()
00577     {
00578       return self()->mUnencryptedDropEvent;
00579     }
00580 
00584     static
00585     void setSignMenu( int v )
00586     {
00587       if (!self()->isImmutable( QString::fromLatin1 ( "SignMenu" ) ))
00588         self()->mSignMenu = v;
00589     }
00590 
00594     static
00595     int signMenu()
00596     {
00597       return self()->mSignMenu;
00598     }
00599 
00603     static
00604     void setDecryptMenu( int v )
00605     {
00606       if (!self()->isImmutable( QString::fromLatin1 ( "DecryptMenu" ) ))
00607         self()->mDecryptMenu = v;
00608     }
00609 
00613     static
00614     int decryptMenu()
00615     {
00616       return self()->mDecryptMenu;
00617     }
00618 
00622     static
00623     void setShowSystray( bool v )
00624     {
00625       if (!self()->isImmutable( QString::fromLatin1 ( "ShowSystray" ) ))
00626         self()->mShowSystray = v;
00627     }
00628 
00632     static
00633     bool showSystray()
00634     {
00635       return self()->mShowSystray;
00636     }
00637 
00641     static
00642     void setShowTipOfDay( bool v )
00643     {
00644       if (!self()->isImmutable( QString::fromLatin1 ( "ShowTipOfDay" ) ))
00645         self()->mShowTipOfDay = v;
00646     }
00647 
00651     static
00652     bool showTipOfDay()
00653     {
00654       return self()->mShowTipOfDay;
00655     }
00656 
00660     static
00661     void setColorGood( const QColor & v )
00662     {
00663       if (!self()->isImmutable( QString::fromLatin1 ( "ColorGood" ) ))
00664         self()->mColorGood = v;
00665     }
00666 
00670     static
00671     QColor colorGood()
00672     {
00673       return self()->mColorGood;
00674     }
00675 
00679     static
00680     void setColorRev( const QColor & v )
00681     {
00682       if (!self()->isImmutable( QString::fromLatin1 ( "ColorRev" ) ))
00683         self()->mColorRev = v;
00684     }
00685 
00689     static
00690     QColor colorRev()
00691     {
00692       return self()->mColorRev;
00693     }
00694 
00698     static
00699     void setColorUnknown( const QColor & v )
00700     {
00701       if (!self()->isImmutable( QString::fromLatin1 ( "ColorUnknown" ) ))
00702         self()->mColorUnknown = v;
00703     }
00704 
00708     static
00709     QColor colorUnknown()
00710     {
00711       return self()->mColorUnknown;
00712     }
00713 
00717     static
00718     void setColorBad( const QColor & v )
00719     {
00720       if (!self()->isImmutable( QString::fromLatin1 ( "ColorBad" ) ))
00721         self()->mColorBad = v;
00722     }
00723 
00727     static
00728     QColor colorBad()
00729     {
00730       return self()->mColorBad;
00731     }
00732 
00736     static
00737     void setColorUltimate( const QColor & v )
00738     {
00739       if (!self()->isImmutable( QString::fromLatin1 ( "ColorUltimate" ) ))
00740         self()->mColorUltimate = v;
00741     }
00742 
00746     static
00747     QColor colorUltimate()
00748     {
00749       return self()->mColorUltimate;
00750     }
00751 
00755     static
00756     void setColorMarginal( const QColor & v )
00757     {
00758       if (!self()->isImmutable( QString::fromLatin1 ( "ColorMarginal" ) ))
00759         self()->mColorMarginal = v;
00760     }
00761 
00765     static
00766     QColor colorMarginal()
00767     {
00768       return self()->mColorMarginal;
00769     }
00770 
00774     static
00775     void setColorExpired( const QColor & v )
00776     {
00777       if (!self()->isImmutable( QString::fromLatin1 ( "ColorExpired" ) ))
00778         self()->mColorExpired = v;
00779     }
00780 
00784     static
00785     QColor colorExpired()
00786     {
00787       return self()->mColorExpired;
00788     }
00789 
00793     static
00794     void setFont( const QFont & v )
00795     {
00796       if (!self()->isImmutable( QString::fromLatin1 ( "Font" ) ))
00797         self()->mFont = v;
00798     }
00799 
00803     static
00804     QFont font()
00805     {
00806       return self()->mFont;
00807     }
00808 
00812     static
00813     void setUseProxy( bool v )
00814     {
00815       if (!self()->isImmutable( QString::fromLatin1 ( "UseProxy" ) ))
00816         self()->mUseProxy = v;
00817     }
00818 
00822     static
00823     bool useProxy()
00824     {
00825       return self()->mUseProxy;
00826     }
00827 
00828   protected:
00829     KGpgSettings();
00830     friend class KGpgSettingsHelper;
00831 
00832 
00833     // Decryption
00834     QString mCustomDecrypt;
00835 
00836     // Encryption
00837     QString mCustomEncryptionOptions;
00838     bool mAllowCustomEncryptionOptions;
00839     QString mFileEncryptionKey;
00840     bool mEncryptFilesTo;
00841     bool mAsciiArmor;
00842     bool mAllowUntrustedKeys;
00843     bool mHideUserID;
00844     bool mPgpCompatibility;
00845     bool mPgpExtension;
00846 
00847     // GPG Settings
00848     QString mGpgConfigPath;
00849     QString mGpgBinaryPath;
00850     QString mGroups;
00851 
00852     // General Options
00853     int mPhotoProperties;
00854     bool mFirstRun;
00855     QSize mEditorGeometry;
00856     bool mShowTrust;
00857     bool mShowExpi;
00858     bool mShowSize;
00859     bool mShowCreat;
00860     bool mShowSecret;
00861     bool mHideExRev;
00862 
00863     // User Interface
00864     bool mUseMouseSelection;
00865     bool mAutoStart;
00866     bool mRemoteFileWarn;
00867     int mLeftClick;
00868     int mEncryptedDropEvent;
00869     int mUnencryptedDropEvent;
00870     int mSignMenu;
00871     int mDecryptMenu;
00872     bool mShowSystray;
00873 
00874     // TipOfDay
00875     bool mShowTipOfDay;
00876 
00877     // Key Colors
00878     QColor mColorGood;
00879     QColor mColorRev;
00880     QColor mColorUnknown;
00881     QColor mColorBad;
00882     QColor mColorUltimate;
00883     QColor mColorMarginal;
00884     QColor mColorExpired;
00885 
00886     // Text Font
00887     QFont mFont;
00888 
00889     // Key Servers
00890     bool mUseProxy;
00891 
00892   private:
00893     // Include custom additions
00894     #include "kgpgsettings_addons.h"
00895 };
00896 
00897 #endif
00898 

kgpg

Skip menu "kgpg"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdeutils

Skip menu "kdeutils"
  • ark
  • kcalc
  • kcharselect
  • kdelirc
  • kdessh
  • kdf
  • kfloppy
  • kgpg
  • kjots
  • klaptopdaemon
  • kmilo
  • ksim
  • ktimer
  • kwallet
  • superkaramba
Generated for kdeutils by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal