kgpg
conf_encryption.cpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #include "conf_encryption.h"
00018
00019 Encryption::Encryption( QWidget* parent )
00020 : QWidget( parent ), Ui_Encryption()
00021 {
00022 setupUi( this );
00023 connect(kcfg_EncryptFilesTo, SIGNAL(toggled(bool)), this,SLOT(encrypt_files_to_toggled(bool)));
00024 connect(kcfg_AllowCustomEncryptionOptions, SIGNAL(toggled(bool)), this, SLOT(allow_custom_option_toggled(bool)));
00025 connect(encrypt_to_always, SIGNAL(toggled(bool)), this, SLOT(encrypt_to_always_toggled(bool)));
00026 }
00027
00028 void Encryption::encrypt_to_always_toggled(bool isOn)
00029 {
00030 always_key->setEnabled(isOn);
00031 }
00032
00033
00034 void Encryption::encrypt_files_to_toggled(bool isOn)
00035 {
00036 file_key->setEnabled(isOn);
00037 }
00038
00039
00040 void Encryption::allow_custom_option_toggled(bool isOn)
00041 {
00042 kcfg_CustomEncryptionOptions->setEnabled(isOn);
00043 }
00044 #include "conf_encryption.moc"