summaryrefslogtreecommitdiffstats
path: root/kgpg/keyservers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kgpg/keyservers.cpp')
-rw-r--r--kgpg/keyservers.cpp84
1 files changed, 42 insertions, 42 deletions
diff --git a/kgpg/keyservers.cpp b/kgpg/keyservers.cpp
index 23eb79a..fee508b 100644
--- a/kgpg/keyservers.cpp
+++ b/kgpg/keyservers.cpp
@@ -40,13 +40,13 @@
#include <tqcursor.h>
#include <tdelocale.h>
-#include <kprocess.h>
-#include <kprocio.h>
+#include <tdeprocess.h>
+#include <tdeprocio.h>
#include <tdelistview.h>
#include <kstatusbar.h>
#include <tdeconfig.h>
#include <klineedit.h>
-#include <ksimpleconfig.h>
+#include <tdesimpleconfig.h>
#include <tdeaction.h>
#include <kdebug.h>
@@ -59,7 +59,7 @@
keyServer::keyServer(TQWidget *parent, const char *name,bool modal,bool autoClose):KDialogBase( Swallow, i18n("Key Server"), Close, Close, parent, name,modal)
{
autoCloseWindow=autoClose;
- config=new KSimpleConfig ("kgpgrc");
+ config=new TDESimpleConfig ("kgpgrc");
page=new keyServerWidget();
setMainWidget(page);
@@ -68,17 +68,17 @@ keyServer::keyServer(TQWidget *parent, const char *name,bool modal,bool autoClos
currentKey = TQString();
hashMap.clear();
- connect(page->Buttonimport,TQT_SIGNAL(clicked()),this,TQT_SLOT(slotImport()));
- connect(page->Buttonsearch,TQT_SIGNAL(clicked()),this,TQT_SLOT(slotSearch()));
- connect(page->Buttonexport,TQT_SIGNAL(clicked()),this,TQT_SLOT(slotPreExport()));
- connect(this,TQT_SIGNAL(okClicked()),this,TQT_SLOT(slotOk()));
+ connect(page->Buttonimport,TQ_SIGNAL(clicked()),this,TQ_SLOT(slotImport()));
+ connect(page->Buttonsearch,TQ_SIGNAL(clicked()),this,TQ_SLOT(slotSearch()));
+ connect(page->Buttonexport,TQ_SIGNAL(clicked()),this,TQ_SLOT(slotPreExport()));
+ connect(this,TQ_SIGNAL(okClicked()),this,TQ_SLOT(slotOk()));
if (KgpgInterface::getGpgVersion() < 210 ) { // was removed in 2.1
- connect(page->cBproxyI,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(slotEnableProxyI(bool)));
- connect(page->cBproxyE,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(slotEnableProxyE(bool)));
+ connect(page->cBproxyI,TQ_SIGNAL(toggled(bool)),this,TQ_SLOT(slotEnableProxyI(bool)));
+ connect(page->cBproxyE,TQ_SIGNAL(toggled(bool)),this,TQ_SLOT(slotEnableProxyE(bool)));
}
- connect(page->kLEimportid, TQT_SIGNAL( textChanged ( const TQString & )), this, TQT_SLOT( slotTextChanged( const TQString &)));
+ connect(page->kLEimportid, TQ_SIGNAL( textChanged ( const TQString & )), this, TQ_SLOT( slotTextChanged( const TQString &)));
if (KgpgInterface::getGpgVersion() < 210 ) { // was removed in 2.1
page->cBproxyI->setChecked(KGpgSettings::useProxy());
page->cBproxyE->setChecked(KGpgSettings::useProxy());
@@ -91,10 +91,10 @@ keyServer::keyServer(TQWidget *parent, const char *name,bool modal,bool autoClos
}
}
- KProcIO *encid=new KProcIO(TQTextCodec::codecForLocale());
+ TDEProcIO *encid=new TDEProcIO(TQTextCodec::codecForLocale());
*encid << "gpg"<<"--no-secmem-warning"<<"--no-tty"<<"--with-colon"<<"--list-keys";
- TQObject::connect(encid, TQT_SIGNAL(processExited(TDEProcess *)),this, TQT_SLOT(slotprocresult(TDEProcess *)));
- TQObject::connect(encid, TQT_SIGNAL(readReady(KProcIO *)),this, TQT_SLOT(slotprocread(KProcIO *)));
+ TQObject::connect(encid, TQ_SIGNAL(processExited(TDEProcess *)),this, TQ_SLOT(slotprocresult(TDEProcess *)));
+ TQObject::connect(encid, TQ_SIGNAL(readReady(TDEProcIO *)),this, TQ_SLOT(slotprocread(TDEProcIO *)));
encid->start(TDEProcess::NotifyOnExit,true);
page->Buttonimport->setEnabled( !page->kLEimportid->text().isEmpty());
page->Buttonsearch->setEnabled( !page->kLEimportid->text().isEmpty());
@@ -123,7 +123,7 @@ void keyServer::slotEnableProxyE(bool on)
page->kLEproxyE->setEnabled(on);
}
-void keyServer::slotprocread(KProcIO *p)
+void keyServer::slotprocread(TDEProcIO *p)
{
// kdDebug(2100) << k_funcinfo << endl;
///////////////////////////////////////////////////////////////// extract encryption keys
@@ -237,14 +237,14 @@ void keyServer::slotSearch()
listpop->kLVsearch->setColumnWidth(0,150);
listpop->kLVsearch->setColumnWidth(1,130);
listpop->statusText->setText(i18n("Connecting to the server..."));
- connect(listpop->kLVsearch,TQT_SIGNAL(selectionChanged()),this,TQT_SLOT(transferKeyID()));
- connect(dialogServer,TQT_SIGNAL(okClicked()),this,TQT_SLOT(preimport()));
- connect(listpop->kLVsearch,TQT_SIGNAL(doubleClicked(TQListViewItem *,const TQPoint &,int)),dialogServer,TQT_SIGNAL(okClicked()));
+ connect(listpop->kLVsearch,TQ_SIGNAL(selectionChanged()),this,TQ_SLOT(transferKeyID()));
+ connect(dialogServer,TQ_SIGNAL(okClicked()),this,TQ_SLOT(preimport()));
+ connect(listpop->kLVsearch,TQ_SIGNAL(doubleClicked(TQListViewItem *,const TQPoint &,int)),dialogServer,TQ_SIGNAL(okClicked()));
- connect(dialogServer,TQT_SIGNAL(closeClicked()),this,TQT_SLOT(handleQuit()));
- connect( listpop , TQT_SIGNAL( destroyed() ) , this, TQT_SLOT( abortSearch()));
+ connect(dialogServer,TQ_SIGNAL(closeClicked()),this,TQ_SLOT(handleQuit()));
+ connect( listpop , TQ_SIGNAL( destroyed() ) , this, TQ_SLOT( abortSearch()));
- searchproc=new KProcIO(TQTextCodec::codecForLocale());
+ searchproc=new TDEProcIO(TQTextCodec::codecForLocale());
TQString keyserv=page->kCBimportks->currentText();
*searchproc<<"gpg"<<"--utf8-strings"/*<<"--no-tty"*/;
@@ -262,8 +262,8 @@ void keyServer::slotSearch()
keyNumbers=0;
TQApplication::setOverrideCursor(TQCursor(TQt::BusyCursor));
- TQObject::connect(searchproc, TQT_SIGNAL(processExited(TDEProcess *)),this, TQT_SLOT(slotsearchresult(TDEProcess *)));
- TQObject::connect(searchproc, TQT_SIGNAL(readReady(KProcIO *)),this, TQT_SLOT(slotsearchread(KProcIO *)));
+ TQObject::connect(searchproc, TQ_SIGNAL(processExited(TDEProcess *)),this, TQ_SLOT(slotsearchresult(TDEProcess *)));
+ TQObject::connect(searchproc, TQ_SIGNAL(readReady(TDEProcIO *)),this, TQ_SLOT(slotsearchread(TDEProcIO *)));
searchproc->setUsePty(TDEProcess::Stdout,false); // EKO: very important line - it took me a day to find out why I should use it
searchproc->start(TDEProcess::NotifyOnExit,true);
@@ -327,7 +327,7 @@ void keyServer::transferKeyID()
listpop->kLEID->setText(keysToSearch.stripWhiteSpace());
}
-void keyServer::slotsearchread(KProcIO *p)
+void keyServer::slotsearchread(TDEProcIO *p)
{
// kdDebug(2100) << k_funcinfo << endl;
TQString required = TQString();
@@ -414,7 +414,7 @@ void keyServer::slotsearchresult(TDEProcess *)
date = timestamp.date();
}
else {
- date = TQDate::fromString(keyString[5], Qt::ISODate);
+ date = TQDate::fromString(keyString[5], TQt::ISODate);
}
Q_ASSERT (date.isValid()) /*tqWarning("create date is not valid")*/;
if (date < TQDate::currentDate() ) {
@@ -446,7 +446,7 @@ void keyServer::slotsearchresult(TDEProcess *)
date = timestamp.date();
}
else {
- date = TQDate::fromString(keyString[4], Qt::ISODate);
+ date = TQDate::fromString(keyString[4], TQt::ISODate);
}
created=TDEGlobal::locale()->formatDate(date, true);
}
@@ -463,7 +463,7 @@ void keyServer::slotsearchresult(TDEProcess *)
date = timestamp.date();
}
else {
- date = TQDate::fromString(keyString[2], Qt::ISODate);
+ date = TQDate::fromString(keyString[2], TQt::ISODate);
}
created=TDEGlobal::locale()->formatDate(date, true);
}
@@ -514,7 +514,7 @@ void keyServer::slotExport(TQStringList keyIds)
return;
readmessage=TQString();
hashMap.clear();
- exportproc=new KProcIO(TQTextCodec::codecForLocale());
+ exportproc=new TDEProcIO(TQTextCodec::codecForLocale());
TQString keyserv=page->kCBexportks->currentText();
*exportproc<<"gpg"<<"--utf8-strings";
@@ -532,8 +532,8 @@ void keyServer::slotExport(TQStringList keyIds)
}
*exportproc << "--status-fd=2" << "--keyserver" << keyserv << "--send-keys" << keyIds;
- TQObject::connect(exportproc, TQT_SIGNAL(processExited(TDEProcess *)),this, TQT_SLOT(slotexportresult(TDEProcess *)));
- TQObject::connect(exportproc, TQT_SIGNAL(readReady(KProcIO *)),this, TQT_SLOT(slotimportread(KProcIO *)));
+ TQObject::connect(exportproc, TQ_SIGNAL(processExited(TDEProcess *)),this, TQ_SLOT(slotexportresult(TDEProcess *)));
+ TQObject::connect(exportproc, TQ_SIGNAL(readReady(TDEProcIO *)),this, TQ_SLOT(slotimportread(TDEProcIO *)));
exportproc->start(TDEProcess::NotifyOnExit,true);
TQApplication::setOverrideCursor(TQCursor(TQt::BusyCursor));
importpop = new TQDialog( this,0,true,TQt::WDestructiveClose);
@@ -546,8 +546,8 @@ void keyServer::slotExport(TQStringList keyIds)
importpop->setMinimumWidth(250);
importpop->adjustSize();
importpop->show();
- connect(importpop,TQT_SIGNAL(destroyed ()),this,TQT_SLOT(abortExport()));
- connect(Buttonabort,TQT_SIGNAL(clicked ()),importpop,TQT_SLOT(close()));
+ connect(importpop,TQ_SIGNAL(destroyed ()),this,TQ_SLOT(abortExport()));
+ connect(Buttonabort,TQ_SIGNAL(clicked ()),importpop,TQ_SLOT(close()));
}
void keyServer::abortExport()
@@ -611,7 +611,7 @@ void keyServer::slotImport()
keyNames=keyNames.simplifyWhiteSpace();
if ( keyNames.startsWith("0x") ) {
- searchproc=new KProcIO(TQTextCodec::codecForLocale());
+ searchproc=new TDEProcIO(TQTextCodec::codecForLocale());
*searchproc << "gpg"<<"--utf8-strings"<<"--no-secmem-warning";
if (KgpgInterface::getGpgVersion() < 210 ) { // was removed in 2.1
if (page->cBproxyI->isChecked()) {
@@ -631,8 +631,8 @@ void keyServer::slotImport()
keyNames=keyNames.stripWhiteSpace();
*searchproc<< TQString(TQFile::encodeName(fkeyNames));
}
- TQObject::connect(searchproc, TQT_SIGNAL(processExited(TDEProcess *)),TQT_TQOBJECT(this), TQT_SLOT(slotksearchprocresult(TDEProcess *)));
- TQObject::connect(searchproc, TQT_SIGNAL(readReady(KProcIO *)),TQT_TQOBJECT(this), TQT_SLOT(slotsearchread(KProcIO *)));
+ TQObject::connect(searchproc, TQ_SIGNAL(processExited(TDEProcess *)),this, TQ_SLOT(slotksearchprocresult(TDEProcess *)));
+ TQObject::connect(searchproc, TQ_SIGNAL(readReady(TDEProcIO *)),this, TQ_SLOT(slotsearchread(TDEProcIO *)));
TQApplication::setOverrideCursor(TQCursor(TQt::BusyCursor));
searchproc->setUsePty(TDEProcess::Stdout,false); // EKO: very important line - it took me a day to find out why I should use it
searchproc->start(TDEProcess::Block,true);
@@ -646,7 +646,7 @@ void keyServer::slotImport()
keysToImport = TQStringList::split(" ",keyNames,true);
}
- importproc=new KProcIO(TQTextCodec::codecForLocale());
+ importproc=new TDEProcIO(TQTextCodec::codecForLocale());
*importproc<<"gpg"<<"--utf8-strings";
if (KgpgInterface::getGpgVersion() < 210 ) { // was removed in 2.1
if (page->cBproxyI->isChecked()) {
@@ -663,8 +663,8 @@ void keyServer::slotImport()
*importproc<< (*it) ;
}
- TQObject::connect(importproc, TQT_SIGNAL(processExited(TDEProcess *)),TQT_TQOBJECT(this), TQT_SLOT(slotimportresult(TDEProcess *)));
- TQObject::connect(importproc, TQT_SIGNAL(readReady(KProcIO *)),TQT_TQOBJECT(this), TQT_SLOT(slotimportread(KProcIO *)));
+ TQObject::connect(importproc, TQ_SIGNAL(processExited(TDEProcess *)),this, TQ_SLOT(slotimportresult(TDEProcess *)));
+ TQObject::connect(importproc, TQ_SIGNAL(readReady(TDEProcIO *)),this, TQ_SLOT(slotimportread(TDEProcIO *)));
importproc->start(TDEProcess::NotifyOnExit,true);
importproc->closeWhenDone();
@@ -679,8 +679,8 @@ void keyServer::slotImport()
importpop->setMinimumWidth(250);
importpop->adjustSize();
importpop->show();
- connect(Buttonabort,TQT_SIGNAL(clicked()),importpop,TQT_SLOT(close()));
- connect(importpop,TQT_SIGNAL(destroyed ()),this,TQT_SLOT(abortImport()));
+ connect(Buttonabort,TQ_SIGNAL(clicked()),importpop,TQ_SLOT(close()));
+ connect(importpop,TQ_SIGNAL(destroyed ()),this,TQ_SLOT(abortImport()));
}
void keyServer::abortImport()
@@ -719,7 +719,7 @@ void keyServer::slotksearchprocresult(TDEProcess *) {
date = timestamp.date();
}
else {
- date = TQDate::fromString(keyString[5], Qt::ISODate);
+ date = TQDate::fromString(keyString[5], TQt::ISODate);
}
Q_ASSERT (date.isValid()) /*tqWarning("create date is not valid")*/;
if (date < TQDate::currentDate() ) {
@@ -831,7 +831,7 @@ void keyServer::slotimportresult(TDEProcess*)
if (autoCloseWindow) close();
}
-void keyServer::slotimportread(KProcIO *p)
+void keyServer::slotimportread(TDEProcIO *p)
{
TQString required;
while (p->readln(required,true)!=-1)