kmail
KMail::RenameJob Class Reference
#include <renamejob.h>
Inheritance diagram for KMail::RenameJob:

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.
Signals | |
void | renameDone (QString newName, bool success) |
Public Member Functions | |
RenameJob (FolderStorage *storage, const QString &newName, KMFolderDir *newParent=0) | |
virtual | ~RenameJob () |
virtual void | execute () |
Protected Slots | |
void | slotRenameResult (KIO::Job *job) |
void | slotMoveMessages () |
void | slotMoveCompleted (KMCommand *command) |
void | slotMoveSubFolders (QString newName, bool success) |
Protected Member Functions | |
void | moveSubFoldersBeforeMessages () |
Protected Attributes | |
FolderStorage * | mStorage |
FolderStorage * | mStorageTempOpened |
KMFolderDir * | mNewParent |
QString | mNewName |
QString | mNewImapPath |
QString | mOldName |
QString | mOldImapPath |
KMFolder * | mNewFolder |
Constructor & Destructor Documentation
RenameJob::RenameJob | ( | FolderStorage * | storage, | |
const QString & | newName, | |||
KMFolderDir * | newParent = 0 | |||
) |
Create a new job.
- Parameters:
-
storage the folder that should be renames newName the new name of the folder newParent the new parent if the folder should be moved, else 0
Definition at line 55 of file renamejob.cpp.
Member Function Documentation
void RenameJob::execute | ( | ) | [virtual] |
Has to be reimplemented.
It's called by the start() method. Should start the processing of the specified job function.
Implements KMail::FolderJob.
Definition at line 76 of file renamejob.cpp.
void RenameJob::slotRenameResult | ( | KIO::Job * | job | ) | [protected, slot] |
void RenameJob::slotMoveMessages | ( | ) | [protected, slot] |
Move all messages from the original folder to mNewFolder.
Definition at line 222 of file renamejob.cpp.
void RenameJob::slotMoveCompleted | ( | KMCommand * | command | ) | [protected, slot] |
void KMail::RenameJob::renameDone | ( | QString | newName, | |
bool | success | |||
) | [signal] |
Emitted when the job is done, check the success bool.
The documentation for this class was generated from the following files: