kmail
renamejob.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef RENAMEJOB_H
00029 #define RENAMEJOB_H
00030
00031 #include "folderjob.h"
00032
00033 class FolderStorage;
00034 class KMFolderDir;
00035 class KMFolder;
00036 class KMCommand;
00037
00038 namespace KIO {
00039 class Job;
00040 }
00041
00042 namespace KMail {
00043
00049 class RenameJob : public FolderJob
00050 {
00051 Q_OBJECT
00052 public:
00059 RenameJob( FolderStorage* storage, const QString& newName,
00060 KMFolderDir* newParent = 0 );
00061
00062 virtual ~RenameJob();
00063
00064 virtual void execute();
00065
00066 protected slots:
00068 void slotRenameResult( KIO::Job* job );
00069
00071 void slotMoveMessages();
00072
00074 void slotMoveCompleted( KMCommand *command );
00075
00076 void slotMoveSubFolders( QString newName, bool success );
00077
00078 signals:
00080 void renameDone( QString newName, bool success );
00081
00082 protected:
00083 void moveSubFoldersBeforeMessages();
00084
00085 FolderStorage* mStorage;
00086 FolderStorage* mStorageTempOpened;
00087 KMFolderDir* mNewParent;
00088 QString mNewName;
00089 QString mNewImapPath;
00090 QString mOldName;
00091 QString mOldImapPath;
00092 KMFolder* mNewFolder;
00093 };
00094
00095 }
00096
00097 #endif
00098
|