You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
562 lines
14 KiB
562 lines
14 KiB
15 years ago
|
/*
|
||
|
* Copyright (C) Sirtaj Singh Kang
|
||
|
* Copyright (C) Kurt Granroth
|
||
|
* Copyright (C) 2004, Mart Kelder (mart.kde@hccnet.nl)
|
||
|
*
|
||
|
* 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.
|
||
|
*
|
||
|
* This program is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
* GNU General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU General Public License
|
||
|
* along with this program; if not, write to the Free Software
|
||
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||
|
*/
|
||
|
|
||
|
/*
|
||
11 years ago
|
* tdeio.cpp -- Implementation of class KKIODrop.
|
||
15 years ago
|
* It is copyied from imap.cpp, with was writed by:
|
||
|
* Author: Kurt Granroth
|
||
|
* Version: $Id$
|
||
|
* Changed by:
|
||
|
* Mart Kelder <mart.kde@hccnet.nl>, 2004
|
||
|
*/
|
||
|
|
||
11 years ago
|
#include "tdeio.h"
|
||
12 years ago
|
#include "tdeio_count.h"
|
||
|
#include "tdeio_subjects.h"
|
||
|
#include "tdeio_read.h"
|
||
|
#include "tdeio_delete.h"
|
||
15 years ago
|
#include "protocol.h"
|
||
|
#include "protocols.h"
|
||
|
#include "stringid.h"
|
||
|
#include"utils.h"
|
||
|
//#include"kiocfg.h"
|
||
|
//#include"dropdlg.h"
|
||
|
#include "mailsubject.h"
|
||
|
|
||
12 years ago
|
#include<tdeconfig.h>
|
||
|
#include<tdeconfigbase.h>
|
||
15 years ago
|
#include<kdebug.h>
|
||
12 years ago
|
#include<tdelocale.h>
|
||
15 years ago
|
#include<kprocess.h>
|
||
|
|
||
14 years ago
|
#include<tqptrlist.h>
|
||
|
#include<tqregexp.h>
|
||
|
#include<tqvaluelist.h>
|
||
|
#include<tqvaluevector.h>
|
||
15 years ago
|
|
||
|
#include<assert.h>
|
||
|
#include<ctype.h>
|
||
|
#include<stdio.h>
|
||
|
#include<stdlib.h>
|
||
|
|
||
|
//Headers of protocols
|
||
12 years ago
|
#include"tdeio_proto.h"
|
||
15 years ago
|
//#include"pop3_proto.h"
|
||
|
//#include"pop3s_proto.h"
|
||
|
//#include"imap_proto.h"
|
||
|
//#include"imaps_proto.h"
|
||
|
//#include"nntp_proto.h"
|
||
|
//#include"maildir_proto.h"
|
||
|
//#include"qmail_proto.h"
|
||
|
//#include"process_proto.h"
|
||
|
#include"mbox_proto.h"
|
||
|
|
||
|
/*
|
||
|
* The 'process' maildrop is a lot different than the other protocols:
|
||
12 years ago
|
* it haven't a tdeioslave and could not result in file list. To prevent
|
||
15 years ago
|
* trowing it away, that functionality is hacked in this file.
|
||
|
*/
|
||
|
|
||
|
KKioDrop::KKioDrop()
|
||
|
: KPollableDrop(),
|
||
|
_kurl( 0 ),
|
||
|
_metadata( 0 ),
|
||
|
_valid(false),
|
||
|
_protocol( 0 ),
|
||
|
_ssl(false),
|
||
|
_count( 0 ),
|
||
|
_subjects( 0 ),
|
||
|
_read( 0 ),
|
||
|
_readSubjectsTotalSteps( 0 ),
|
||
|
_deleteMailsTotalSteps( 0 ),
|
||
|
_process( 0 ),
|
||
|
_mailurls( 0 )
|
||
|
{
|
||
|
_kurl = new KURL;
|
||
12 years ago
|
_metadata = new TDEIO::MetaData;
|
||
15 years ago
|
|
||
|
//Initialising protocol; if no protocol is set before first use, it will use the first protocol
|
||
|
_protocol = Protocols::firstProtocol()->getKIOProtocol(); //The first protocol is the default
|
||
|
_kurl->setPort( _protocol->defaultPort( _ssl ) );
|
||
|
|
||
13 years ago
|
//Creating children and connect them to the outside world; this class passes the messages for them...
|
||
15 years ago
|
//This class handles all the counting.
|
||
11 years ago
|
_count = new TDEIO_Count( this, "tdeio_count" );
|
||
15 years ago
|
|
||
|
//This class is responsible for providing the available subjects
|
||
11 years ago
|
_subjects = new TDEIO_Subjects( this, "tdeio_subjects" );
|
||
15 years ago
|
|
||
|
//This class is used when a full message has to be read.
|
||
11 years ago
|
_read = new TDEIO_Read( this, "tdeio_read" );
|
||
15 years ago
|
|
||
|
//This class can delete mails.
|
||
11 years ago
|
_delete = new TDEIO_Delete( this, "tdeio_delete" );
|
||
15 years ago
|
|
||
14 years ago
|
_mailurls = new TQValueList<FileInfo>;
|
||
15 years ago
|
}
|
||
|
|
||
12 years ago
|
KKioDrop::KKioDrop( TDEConfigGroup* )
|
||
15 years ago
|
: KPollableDrop(),
|
||
|
_kurl( 0 ),
|
||
|
_metadata( 0 ),
|
||
|
_valid(false),
|
||
|
_protocol( 0 ),
|
||
|
_ssl(false),
|
||
|
_count( 0 ),
|
||
|
_subjects( 0 ),
|
||
|
_read( 0 ),
|
||
|
_readSubjectsTotalSteps( 0 ),
|
||
|
_deleteMailsTotalSteps( 0 ),
|
||
|
_process( 0 ),
|
||
|
_mailurls( 0 )
|
||
|
{
|
||
|
_kurl = new KURL;
|
||
12 years ago
|
_metadata = new TDEIO::MetaData;
|
||
15 years ago
|
|
||
|
//Initialising protocol; if no protocol is set before first use, it will use the first protocol
|
||
|
_protocol = Protocols::firstProtocol()->getKIOProtocol(); //The first protocol is the default
|
||
|
_kurl->setPort( _protocol->defaultPort( _ssl ) );
|
||
|
|
||
13 years ago
|
//Creating children and connect them to the outside world; this class passes the messages for them...
|
||
15 years ago
|
//This class handles all the counting.
|
||
11 years ago
|
_count = new TDEIO_Count( this, "tdeio_count" );
|
||
15 years ago
|
|
||
|
//This class is responsible for providing the available subjects
|
||
11 years ago
|
_subjects = new TDEIO_Subjects( this, "tdeio_subjects" );
|
||
15 years ago
|
|
||
|
//This class is used when a full message has to be read.
|
||
11 years ago
|
_read = new TDEIO_Read( this, "tdeio_read" );
|
||
15 years ago
|
|
||
|
//This class can delete mails.
|
||
11 years ago
|
_delete = new TDEIO_Delete( this, "tdeio_delete" );
|
||
15 years ago
|
|
||
14 years ago
|
_mailurls = new TQValueList<FileInfo>;
|
||
15 years ago
|
|
||
|
//readConfigGroup( *config );
|
||
|
}
|
||
|
|
||
14 years ago
|
void KKioDrop::setKioServer( const TQString & proto, const TQString & server, int port )
|
||
15 years ago
|
{
|
||
12 years ago
|
//Settings default for last vars; could not inline because TDEIO::MetaData-object is not defined in header.
|
||
|
setKioServer( proto, server, port, TDEIO::MetaData(), false, true );
|
||
15 years ago
|
}
|
||
|
|
||
12 years ago
|
void KKioDrop::setKioServer(const TQString & proto, const TQString & server, int port, const TDEIO::MetaData metadata, bool ssl,
|
||
15 years ago
|
bool setProtocol )
|
||
|
{
|
||
14 years ago
|
TQString auth;
|
||
15 years ago
|
|
||
|
if( port == -1 )
|
||
|
port = _protocol->defaultPort( ssl );
|
||
|
|
||
|
if( setProtocol ) //false if _protocol already made
|
||
|
{
|
||
|
_protocol = Protocols::getProto( proto )->getKIOProtocol();
|
||
|
|
||
|
if( ! _protocol )
|
||
|
_protocol = Protocols::firstProtocol()->getKIOProtocol();
|
||
|
}
|
||
|
|
||
|
_kurl->setProtocol( _protocol->protocol( ssl ) );
|
||
|
_kurl->setHost ( server );
|
||
|
_kurl->setPort ( port );
|
||
|
_ssl = ssl;
|
||
|
|
||
|
//Checking for authentication-settings.
|
||
13 years ago
|
//if( _metadata->contains("auth") )
|
||
15 years ago
|
//{
|
||
|
// auth = (*_metadata)["auth"];
|
||
|
// *_metadata = metadata;
|
||
13 years ago
|
// if( ! _metadata->contains("auth") )
|
||
15 years ago
|
// (*_metadata)["auth"] = auth;
|
||
|
//} else
|
||
|
*_metadata = metadata;
|
||
|
|
||
|
_count->stopActiveCount();
|
||
|
}
|
||
|
|
||
14 years ago
|
void KKioDrop::setUser(const TQString & user, const TQString & password,
|
||
|
const TQString & mailbox, const TQString & auth )
|
||
15 years ago
|
{
|
||
|
_kurl->setUser( user );
|
||
|
_password = password ;
|
||
|
_kurl->setPass( _password );
|
||
|
_kurl->setPath( mailbox );
|
||
|
if( ! auth.isEmpty() && auth != "Plain" )
|
||
|
(*_metadata)["auth"] = auth;
|
||
13 years ago
|
else if( _metadata->contains( "auth" ) )
|
||
15 years ago
|
_metadata->erase( "auth" );
|
||
|
|
||
|
_valid = _kurl->isValid();
|
||
|
emit validChanged( valid() );
|
||
|
|
||
|
if( ! _valid )
|
||
|
kdWarning() << i18n( "url is not valid" ) << endl;
|
||
|
|
||
|
_count->stopActiveCount();
|
||
|
}
|
||
|
|
||
14 years ago
|
TQString KKioDrop::protocol() const
|
||
15 years ago
|
{
|
||
|
return _protocol->configName();
|
||
|
}
|
||
|
|
||
14 years ago
|
TQString KKioDrop::server() const
|
||
15 years ago
|
{
|
||
|
return _kurl->host();
|
||
|
}
|
||
|
int KKioDrop::port() const
|
||
|
{
|
||
|
return _kurl->port();
|
||
|
}
|
||
|
|
||
14 years ago
|
TQString KKioDrop::user() const
|
||
15 years ago
|
{
|
||
|
return _kurl->user();
|
||
|
}
|
||
14 years ago
|
TQString KKioDrop::password() const
|
||
15 years ago
|
{
|
||
|
return _password ;
|
||
|
}
|
||
14 years ago
|
TQString KKioDrop::mailbox() const
|
||
15 years ago
|
{
|
||
|
return _kurl->path();
|
||
|
}
|
||
14 years ago
|
TQString KKioDrop::auth() const
|
||
15 years ago
|
{
|
||
13 years ago
|
return ( _metadata->contains("auth")?(*_metadata)["auth"]:"" );
|
||
15 years ago
|
}
|
||
|
|
||
|
void KKioDrop::recheck()
|
||
|
{
|
||
|
if( _protocol->configName() == "process" ) //Process isn't pollable
|
||
|
{
|
||
|
emit rechecked();
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
_count->count( this );
|
||
|
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
void KKioDrop::forceRecheck()
|
||
|
{
|
||
|
if( _protocol->configName() == "process" )
|
||
|
return;
|
||
|
|
||
|
_count->stopActiveCount();
|
||
|
_count->count( this );
|
||
|
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
bool KKioDrop::valid()
|
||
|
{
|
||
|
return _valid && _count->valid() && _subjects->valid();
|
||
|
}
|
||
|
|
||
|
KKioDrop::~KKioDrop()
|
||
|
{
|
||
|
delete _count;
|
||
|
delete _subjects;
|
||
|
delete _kurl;
|
||
|
delete _metadata;
|
||
|
delete _mailurls;
|
||
|
}
|
||
|
|
||
|
bool KKioDrop::canReadSubjects( )
|
||
|
{
|
||
|
return (_protocol!=0?_protocol->canReadSubjects():false);
|
||
|
}
|
||
|
|
||
14 years ago
|
TQValueVector<KornMailSubject> * KKioDrop::doReadSubjects(bool * )
|
||
15 years ago
|
{
|
||
|
_subjects->doReadSubjects( this );
|
||
|
|
||
|
/*
|
||
14 years ago
|
* A empty TQValueVector is made here.
|
||
15 years ago
|
* After that, the size is expanded to the expected number of subjects.
|
||
|
* This way, reallocation of memmory is minimized, and thus more efficient.
|
||
|
*/
|
||
14 years ago
|
TQValueVector<KornMailSubject> *vector = new TQValueVector<KornMailSubject>( );
|
||
15 years ago
|
vector->reserve( _mailurls->count() );
|
||
|
return vector;
|
||
|
}
|
||
|
|
||
|
bool KKioDrop::canReadMail( )
|
||
|
{
|
||
|
return (_protocol!=0?_protocol->canReadMail():false);
|
||
|
}
|
||
|
|
||
14 years ago
|
bool KKioDrop::deleteMails(TQPtrList<const KornMailId> * ids, bool * /*stop*/)
|
||
15 years ago
|
{
|
||
|
_delete->deleteMails( ids, this );
|
||
|
return _delete->valid();
|
||
|
}
|
||
|
|
||
|
bool KKioDrop::canDeleteMails ()
|
||
|
{
|
||
|
return (_protocol!=0?_protocol->canDeleteMail():false);
|
||
|
}
|
||
|
|
||
14 years ago
|
TQString KKioDrop::readMail(const KornMailId * item, bool * )
|
||
15 years ago
|
{
|
||
|
_read->readMail( item, this );
|
||
|
|
||
|
return "";
|
||
|
}
|
||
|
|
||
|
KMailDrop* KKioDrop::clone() const
|
||
|
{
|
||
|
KKioDrop *clone = new KKioDrop;
|
||
|
|
||
|
*clone = *this;
|
||
|
|
||
|
return clone;
|
||
|
}
|
||
|
|
||
14 years ago
|
bool KKioDrop::readConfigGroup( const TQMap< TQString, TQString > &map, const Protocol* protocol )
|
||
15 years ago
|
{
|
||
14 years ago
|
TQString val, val2;
|
||
15 years ago
|
|
||
13 years ago
|
if( !map.contains( "server" ) || !map.contains( "port" ) || !map.contains( "ssl" ) || !map.contains( "username" ) ||
|
||
|
!map.contains( "mailbox" ) || !map.contains( "password" ) || !map.contains( "metadata" ) || !map.contains( "name" ) )
|
||
15 years ago
|
{
|
||
|
kdWarning() << "Bug: map niet compleet" << endl;
|
||
|
return false;
|
||
|
}
|
||
|
|
||
13 years ago
|
this->setName( (*map.find( "name" )).utf8() );
|
||
15 years ago
|
|
||
|
_protocol = protocol->getKIOProtocol();
|
||
|
if( !_protocol )
|
||
|
_protocol = Protocols::firstProtocol()->getKIOProtocol();
|
||
|
|
||
13 years ago
|
val = *map.find( "server" );
|
||
12 years ago
|
setKioServer( val2, val, (*map.find( "port" )).toInt(), TDEIO::MetaData(), *map.find( "ssl" ) == "true", false );
|
||
15 years ago
|
|
||
13 years ago
|
_kurl->setUser( *map.find( "username" ) );
|
||
|
_kurl->setPath( *map.find( "mailbox" ) );
|
||
15 years ago
|
|
||
13 years ago
|
_kurl->setPass( *map.find( "password" ) );
|
||
15 years ago
|
|
||
13 years ago
|
TQStringList list = TQStringList::split( ',', *map.find( "metadata" ) );
|
||
14 years ago
|
TQStringList::Iterator it;
|
||
15 years ago
|
for( it = list.begin(); it != list.end(); ++it )
|
||
|
{
|
||
13 years ago
|
int split = (*it).find( "=" );
|
||
15 years ago
|
if( split > 0 )
|
||
|
_metadata->insert( (*it).left( split ), (*it).right( (*it).length() - split - 1 ) );
|
||
|
}
|
||
|
|
||
|
_valid = true;
|
||
|
emitValidChanged();
|
||
|
|
||
|
return true;
|
||
|
}
|
||
|
|
||
12 years ago
|
bool KKioDrop::writeConfigGroup( TDEConfigBase& cfg ) const
|
||
15 years ago
|
{
|
||
|
KPollableDrop::writeConfigGroup( cfg );
|
||
14 years ago
|
/*TQString p;
|
||
15 years ago
|
|
||
|
if( _kurl->hasPass() ) {
|
||
|
p = _kurl->pass();
|
||
|
//encrypt ( p );
|
||
|
}
|
||
|
|
||
|
cfg.writeEntry(fu(ProtoConfigKey), _protocol->configName() );
|
||
11 years ago
|
if( ( _protocol->fields() | _protocol->urlFields() ) & TDEIO_Protocol::server )
|
||
15 years ago
|
cfg.writeEntry(fu(HostConfigKey), _kurl->host() );
|
||
11 years ago
|
if( ( _protocol->fields() | _protocol->urlFields() ) & TDEIO_Protocol::port )
|
||
15 years ago
|
cfg.writeEntry(fu(PortConfigKey), _kurl->port() );
|
||
11 years ago
|
if( ( _protocol->fields() | _protocol->urlFields() ) & TDEIO_Protocol::username )
|
||
15 years ago
|
cfg.writeEntry(fu(UserConfigKey), _kurl->user() );
|
||
11 years ago
|
if( ( _protocol->fields() | _protocol->urlFields() ) & TDEIO_Protocol::mailbox )
|
||
15 years ago
|
cfg.writeEntry(fu(MailboxConfigKey), _kurl->path() );
|
||
11 years ago
|
if( ( _protocol->fields() | _protocol->urlFields() ) & TDEIO_Protocol::password )
|
||
15 years ago
|
cfg.writeEntry(fu(PassConfigKey), p );
|
||
11 years ago
|
if( ( _protocol->fields() | _protocol->urlFields() ) & TDEIO_Protocol::auth )
|
||
15 years ago
|
cfg.writeEntry(fu(AuthConfigKey), auth() );
|
||
|
*/
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
KKioDrop& KKioDrop::operator = ( const KKioDrop& other )
|
||
|
{
|
||
|
*_kurl=*other._kurl;
|
||
|
setFreq( other.freq() );
|
||
|
|
||
|
if( other._protocol )
|
||
|
_protocol = other._protocol->getKIOProtocol();
|
||
|
_ssl = other._ssl;
|
||
|
|
||
|
return *this;
|
||
|
}
|
||
|
|
||
|
//Public slots
|
||
|
void KKioDrop::readSubjectsCanceled()
|
||
|
{
|
||
|
_subjects->cancelled();
|
||
|
}
|
||
|
|
||
|
void KKioDrop::readMailCanceled()
|
||
|
{
|
||
|
_read->canceled( );
|
||
|
}
|
||
|
|
||
|
void KKioDrop::deleteMailsCanceled()
|
||
|
{
|
||
|
_delete->canceled( );
|
||
|
}
|
||
|
|
||
|
//Private slots for displaying connection errors
|
||
14 years ago
|
void KKioDrop::slotConnectionError( int number, const TQString& arg )
|
||
15 years ago
|
{
|
||
12 years ago
|
kdError() << TDEIO::buildErrorString( number, arg ) << endl;
|
||
15 years ago
|
// if( passivePopup() )
|
||
12 years ago
|
emitShowPassivePopup( TDEIO::buildErrorString( number, arg ) );
|
||
15 years ago
|
}
|
||
|
|
||
14 years ago
|
void KKioDrop::slotConnectionWarning( const TQString& msg )
|
||
15 years ago
|
{
|
||
|
kdWarning() << msg << endl;
|
||
|
}
|
||
|
|
||
14 years ago
|
void KKioDrop::slotConnectionInfoMessage( const TQString& msg )
|
||
15 years ago
|
{
|
||
|
kdDebug() << msg << endl; //Display only in debug modes
|
||
|
}
|
||
|
|
||
|
//Private slots
|
||
|
|
||
|
//The next functions are needed for process maildrops.
|
||
|
bool KKioDrop::startProcess()
|
||
|
{ //code copyied from edrop.cpp
|
||
|
|
||
|
if( _protocol->configName() != "process" )
|
||
|
return true;
|
||
|
|
||
|
if( _process != 0 ) {
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
// debug( "proc start: %s", _command.data() );
|
||
|
|
||
12 years ago
|
_process = new TDEProcess;
|
||
15 years ago
|
_process->setUseShell( true );
|
||
|
|
||
|
// only reading stdin yet
|
||
|
|
||
12 years ago
|
connect( _process,TQT_SIGNAL(receivedStdout( TDEProcess *, char *, int)),
|
||
|
this, TQT_SLOT(receivedStdout( TDEProcess *,char *,int)) );
|
||
|
connect( _process, TQT_SIGNAL(processExited(TDEProcess*)),
|
||
|
this, TQT_SLOT(processExit(TDEProcess*)) );
|
||
15 years ago
|
*_process << _kurl->path();
|
||
12 years ago
|
_process->start( TDEProcess::NotifyOnExit, TDEProcess::Stdout );
|
||
15 years ago
|
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
bool KKioDrop::stopProcess()
|
||
|
{ //code copied from edrop.cpp
|
||
|
if( _protocol->configName() != "process" )
|
||
|
return true;
|
||
|
|
||
|
if( _process != 0 ) {
|
||
|
// debug( "proc stop" );
|
||
|
_process->kill( SIGHUP );
|
||
|
delete _process;
|
||
|
_process = 0;
|
||
|
}
|
||
|
|
||
|
return true;
|
||
|
}
|
||
|
|
||
12 years ago
|
void KKioDrop::receivedStdout( TDEProcess *proc, char * buffer, int /*len*/ )
|
||
15 years ago
|
{
|
||
|
assert(static_cast<void *>(proc) == static_cast<void *>(_process));
|
||
|
|
||
|
//Original code
|
||
|
/*char *buf = new char[ len + 1 ];
|
||
|
memcpy( buf, buffer, len );
|
||
|
buf[ len ] = '\0';
|
||
|
|
||
|
char *ptr = buf, *start = buf;
|
||
|
int num = 0;
|
||
|
|
||
|
while( *ptr ) {
|
||
|
// find number
|
||
|
while( *ptr && !isdigit( *ptr ) ) {
|
||
|
ptr++;
|
||
|
}
|
||
|
start = ptr;
|
||
|
if( *ptr == 0 ) {
|
||
|
break;
|
||
|
}
|
||
|
|
||
|
// find end
|
||
|
while( *ptr && isdigit( *ptr ) ) {
|
||
|
ptr++;
|
||
|
}
|
||
|
|
||
|
// atoi number
|
||
|
char back = *ptr;
|
||
|
*ptr = 0;
|
||
|
num = atoi( start );
|
||
|
*ptr = back;
|
||
|
}
|
||
|
|
||
|
emit changed( num );
|
||
|
delete [] buf;*/
|
||
|
|
||
|
//Alternatieve code
|
||
14 years ago
|
TQString buf = buffer;
|
||
|
TQRegExp regexp( "^(.*\\D+|\\D*)(\\d+)\\D*$" );
|
||
15 years ago
|
|
||
|
if( regexp.search( buf ) == 0 )
|
||
|
{ //Number found
|
||
|
emit changed( regexp.cap( 2 ).toInt(), this );
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
12 years ago
|
void KKioDrop::processExit(TDEProcess* proc)
|
||
15 years ago
|
{
|
||
|
assert(static_cast<void *>(proc) == static_cast<void *>(_process));
|
||
|
|
||
|
_process = 0;
|
||
|
|
||
|
// debug( "proc exited" );
|
||
|
}
|
||
|
|
||
|
const char *KKioDrop::ProtoConfigKey = "protocol";
|
||
|
const char *KKioDrop::HostConfigKey = "server";
|
||
|
const char *KKioDrop::PortConfigKey = "port";
|
||
|
const char *KKioDrop::UserConfigKey = "username";
|
||
|
const char *KKioDrop::PassConfigKey = "password";
|
||
|
const char *KKioDrop::MailboxConfigKey = "mailbox";
|
||
|
const char *KKioDrop::SavePassConfigKey = "savepass";
|
||
|
const char *KKioDrop::MetadataConfigKey = "metadata";
|
||
|
|
||
11 years ago
|
#include "tdeio.moc"
|