22 #include "messagesender.h"
25 # ifndef REALLY_WANT_KMSENDER
26 # error Do not include kmsender.h, but messagesender.h.
30 #include <tqcstring.h>
32 #include <tqstringlist.h>
35 #include <tdeversion.h>
46 class KMTransportInfo;
53 class KMSender: public TQObject, public KMail::MessageSender
57 friend class ::KMSendProc;
58 friend class ::KMSendSendmail;
59 friend class ::KMSendSMTP;
73 bool doSend( KMMessage* msg, short sendNow);
78 bool doSendQueued( const TQString& transport );
82 bool sending() const { return mSendInProgress; }
87 bool sendImmediate() const { return mSendImmediate; }
88 void setSendImmediate( bool);
92 bool sendQuotedPrintable() const { return mSendQuotedPrintable; }
93 void setSendQuotedPrintable( bool);
97 KMTransportInfo * transportInfo() { return mTransportInfo; }
104 void writeConfig( bool withSync= true);
108 void setStatusMsg( const TQString&);
111 void setStatusByLink( const KMMessage *aMsg);
114 void emitProgressInfo( int currentFileProgress );
118 void slotPrecommandFinished( bool);
123 void slotAbortSend();
126 void sendProcStarted( bool success);
129 void outboxMsgAdded( int idx);
144 bool settingsOk() const;
148 KMSendProc* createSendProcFromString( const TQString & transport );
150 bool runPrecommand( const TQString & cmd );
154 bool mSendQuotedPrintable;
155 KMTransportInfo *mTransportInfo;
156 KMPrecommand *mPrecommand;
158 TQString mCustomTransport;
159 bool mSentOk, mSendAborted;
161 KMSendProc *mSendProc;
163 bool mSendProcStarted;
164 bool mSendInProgress;
168 KPIM::ProgressItem* mProgressItem;
169 int mSentMessages, mTotalMessages;
170 int mSentBytes, mTotalBytes;
172 TQMap<TQString,TQString> mPasswdCache;
|