34 #include "kmmessage.h"
37 #include <tqptrlist.h>
44 class FolderJob : public TQObject
50 enum JobType { tListMessages, tGetFolder, tCreateFolder, tExpungeFolder,
51 tDeleteMessage, tGetMessage, tPutMessage, tAddSubfolders,
52 tDeleteFolders, tCheckUidValidity, tRenameFolder,
53 tCopyMessage, tMoveMessage, tOther };
59 TQString partSpecifier = TQString() );
66 FolderJob( const TQPtrList<KMMessage>& msgList, const TQString& sets,
67 JobType jt = tGetMessage, KMFolder *folder = 0 );
73 FolderJob( JobType jt );
76 TQPtrList<KMMessage> msgList() const;
93 int error() const { return mErrorCode; }
98 bool isCancellable() const { return mCancellable; }
106 void setCancellable( bool b ) { mCancellable = b; }
108 void setPassiveDestructor( bool passive ) { mPassiveDestructor = passive; }
109 bool passiveDestructor() { return mPassiveDestructor; }
121 void messageUpdated( KMMessage *, TQString );
134 void messageCopied( TQPtrList<KMMessage> );
154 void result( KMail::FolderJob* job );
161 void progress( unsigned long bytesDownloaded, unsigned long bytesTotal );
171 virtual void execute()=0;
173 TQPtrList<KMMessage> mMsgList;
178 TQString mPartSpecifier;
182 bool mPassiveDestructor;
|