kmail
KMail::CopyFolderJob Class Reference
#include <copyfolderjob.h>
Inheritance diagram for KMail::CopyFolderJob:

Detailed Description
Copy a hierarchy of folders somewhere else in the folder tree.Currently online imap folders are not supported as target folders, and the same is true for search folders where it does not make much sense for them to be target folders.
Definition at line 50 of file copyfolderjob.h.
Signals | |
void | folderCopyComplete (bool success) |
Public Member Functions | |
CopyFolderJob (FolderStorage *const storage, KMFolderDir *const newParent=0) | |
virtual | ~CopyFolderJob () |
virtual void | execute () |
KMFolder * | targetFolder () const |
Protected Slots | |
bool | createTargetDir () |
void | copyMessagesToTargetDir () |
void | slotCopyCompleted (KMCommand *command) |
void | slotCopyNextChild (bool success=true) |
void | rollback () |
void | folderCreationDone (const QString &name, bool success) |
Protected Attributes | |
QGuardedPtr< FolderStorage > const | mStorage |
KMFolderDir *const | mNewParent |
QGuardedPtr< KMFolder > | mNewFolder |
QPtrListIterator< KMFolderNode > | mChildFolderNodeIterator |
KMFolder * | mNextChildFolder |
Constructor & Destructor Documentation
|
Create a new job.
Definition at line 47 of file copyfolderjob.cpp. |
Member Function Documentation
|
Copy all messages from the original folder to mNewFolder.
Definition at line 79 of file copyfolderjob.cpp. |
|
Create the target directory under the new parent. Returns success or failure. Definition at line 171 of file copyfolderjob.cpp. |
|
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 72 of file copyfolderjob.cpp. |
|
Emitted when the job is done, check the success bool.
|
|
Called when the online IMAP folder creation finished.
Definition at line 271 of file copyfolderjob.cpp. |
|
Called when one of the operations of the foldre itself or one of it's child folders failed and the already created target folder needs to be removed again.
Definition at line 241 of file copyfolderjob.cpp. |
|
Called when the CopyCommand has either succesfully completed copying the contents of our folder to the new location or failed.
Definition at line 104 of file copyfolderjob.cpp. |
|
Called when the previous sibling's copy operation completed.
Definition at line 125 of file copyfolderjob.cpp. |
|
Returns the newly created target folder.
Definition at line 68 of file copyfolderjob.h. |
The documentation for this class was generated from the following files: