#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

FolderStoragemStorage
 
FolderStoragemStorageTempOpened
 
KMFolderDirmNewParent
 
TQString mNewName
 
TQString mNewImapPath
 
TQString mOldName
 
TQString mOldImapPath
 
TQStringList mOldImapPaths
 
KMFoldermNewFolder
 
CopyFolderJobmCopyFolderJob
 

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
storagethe folder that should be renames
newNamethe new name of the folder
newParentthe new parent if the folder should be moved, else 0

Definition at line 71 of file renamejob.cpp.

Member Function Documentation

◆ folderCopyComplete

void RenameJob::folderCopyComplete ( bool  success)
protectedslot

All messages are copied so remove the original folder.

Definition at line 190 of file renamejob.cpp.

◆ renameDone

void KMail::RenameJob::renameDone ( TQString  newName,
bool  success 
)
signal

Emitted when the job is done, check the success bool.

◆ slotRenameResult

void RenameJob::slotRenameResult ( TDEIO::Job *  job)
protectedslot

Rename the folder.

Definition at line 157 of file renamejob.cpp.


The documentation for this class was generated from the following files: