blob: 7b0b9d90348e6b44dc1f0f44ff8e776e055a9dcd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
/***************************************************************************
cryptographypreferences.cpp - description
-------------------
begin : jeu nov 14 2002
copyright : (C) 2002 by Olivier Goffart
email : ogoffart @ kde.org
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include <tqpushbutton.h>
#include <klineedit.h>
#include <kgenericfactory.h>
#include "cryptographyprefsbase.h"
#include "cryptographypreferences.h"
#include "kgpgselkey.h"
typedef KGenericFactory<CryptographyPreferences> CryptographyPreferencesFactory;
K_EXPORT_COMPONENT_FACTORY( kcm_kopete_cryptography, CryptographyPreferencesFactory("kcm_kopete_cryptography"))
CryptographyPreferences::CryptographyPreferences(TQWidget *parent, const char* /*name*/, const TQStringList &args)
: KCAutoConfigModule(CryptographyPreferencesFactory::instance(), parent, args)
{
// Add actuall widget generated from ui file.
preferencesDialog = new CryptographyPrefsUI(this);
connect (preferencesDialog->m_selectOwnKey , TQ_SIGNAL(pressed()) , this , TQ_SLOT(slotSelectPressed()));
setMainWidget( preferencesDialog ,"Cryptography Plugin");
}
void CryptographyPreferences::slotSelectPressed()
{
KgpgSelKey opts(this,0,false);
opts.exec();
if (opts.result()==TQDialog::Accepted)
preferencesDialog->PGP_private_key->setText(opts.getkeyID());
}
#include "cryptographypreferences.moc"
|