KMail::RenameJob Class Reference
Rename and move (d)imap folders They can be moved everywhere (except search folders) as a new folder is created, all messages are moved there and the original folder is deleted. More...
#include <renamejob.h>
Collaboration diagram for KMail::RenameJob:

Signals | |
void | renameDone (QString newName, bool success) |
Public Member Functions | |
RenameJob (FolderStorage *storage, const QString &newName, KMFolderDir *newParent=0) | |
virtual void | execute () |
Protected Slots | |
void | slotRenameResult (KIO::Job *job) |
void | slotMoveMessages () |
void | slotMoveCompleted (KMCommand *command) |
Protected Attributes | |
FolderStorage * | mStorage |
KMFolderDir * | mNewParent |
QString | mNewName |
QString | mNewImapPath |
QString | mOldName |
QString | mOldImapPath |
KMFolder * | mNewFolder |
Detailed Description
Rename and move (d)imap folders They can be moved everywhere (except search folders) as a new folder is created, all messages are moved there and the original folder is deleted.
Definition at line 49 of file renamejob.h.
Constructor & Destructor Documentation
|
Create a new job.
Definition at line 56 of file renamejob.cpp. References FolderStorage::folderType(). |
Member Function Documentation
|
Rename the folder.
Definition at line 181 of file renamejob.cpp. References FolderStorage::folderType(), FolderStorage::rename(), and renameDone(). |
|
Move all messages from the original folder to mNewFolder.
Definition at line 214 of file renamejob.cpp. References FolderStorage::getMsgBase(), and slotMoveCompleted(). |
|
All messages are moved so remove the original folder.
Definition at line 240 of file renamejob.cpp. References FolderStorage::folder(), KMFolder::folderType(), FolderStorage::folderType(), KMFolder::idString(), KMFolder::readConfig(), renameDone(), and KMFolder::storage(). Referenced by slotMoveMessages(). |
|
Emitted when the job is done, check the success bool.
Referenced by slotMoveCompleted(), and slotRenameResult(). |
The documentation for this class was generated from the following files: