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