kmail
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>
Signals | |
void | renameDone (QString newName, bool success) |
Public Member Functions | |
virtual void | execute () |
RenameJob (FolderStorage *storage, const QString &newName, KMFolderDir *newParent=0) | |
virtual | ~RenameJob () |
Protected Slots | |
void | folderCopyComplete (bool success) |
void | slotRenameResult (KIO::Job *job) |
Protected Attributes | |
CopyFolderJob * | mCopyFolderJob |
KMFolder * | mNewFolder |
QString | mNewImapPath |
QString | mNewName |
KMFolderDir * | mNewParent |
QString | mOldImapPath |
QStringList | mOldImapPaths |
QString | mOldName |
FolderStorage * | mStorage |
FolderStorage * | mStorageTempOpened |
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 51 of file renamejob.h.
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 71 of file renamejob.cpp.
RenameJob::~RenameJob | ( | ) | [virtual] |
Definition at line 90 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 95 of file renamejob.cpp.
void RenameJob::folderCopyComplete | ( | bool | success | ) | [protected, slot] |
All messages are copied so remove the original folder.
Definition at line 190 of file renamejob.cpp.
void KMail::RenameJob::renameDone | ( | QString | newName, | |
bool | success | |||
) | [signal] |
Emitted when the job is done, check the success bool.
void RenameJob::slotRenameResult | ( | KIO::Job * | job | ) | [protected, slot] |
Member Data Documentation
CopyFolderJob* KMail::RenameJob::mCopyFolderJob [protected] |
Definition at line 89 of file renamejob.h.
KMFolder* KMail::RenameJob::mNewFolder [protected] |
Definition at line 88 of file renamejob.h.
QString KMail::RenameJob::mNewImapPath [protected] |
Definition at line 84 of file renamejob.h.
QString KMail::RenameJob::mNewName [protected] |
Definition at line 83 of file renamejob.h.
KMFolderDir* KMail::RenameJob::mNewParent [protected] |
Definition at line 82 of file renamejob.h.
QString KMail::RenameJob::mOldImapPath [protected] |
Definition at line 86 of file renamejob.h.
QStringList KMail::RenameJob::mOldImapPaths [protected] |
Definition at line 87 of file renamejob.h.
QString KMail::RenameJob::mOldName [protected] |
Definition at line 85 of file renamejob.h.
FolderStorage* KMail::RenameJob::mStorage [protected] |
Definition at line 80 of file renamejob.h.
FolderStorage* KMail::RenameJob::mStorageTempOpened [protected] |
Definition at line 81 of file renamejob.h.
The documentation for this class was generated from the following files: