KIMAP Library
20 #include "renamejob.h"
22 #include <KDE/KLocalizedString>
26 #include "message_p.h"
27 #include "session_p.h"
32 class RenameJobPrivate :
public JobPrivate
35 RenameJobPrivate( Session *session,
const QString& name ) : JobPrivate( session, name ) { }
36 ~RenameJobPrivate() { }
43 using namespace KIMAP;
45 RenameJob::RenameJob( Session *session )
46 : Job( *new RenameJobPrivate( session, i18n(
"Rename" ) ) )
50 RenameJob::~RenameJob()
54 void RenameJob::doStart()
57 d->tags << d->sessionInternal()->sendCommand(
"RENAME",
'\"' + KIMAP::encodeImapFolderName( d->sourceMailBox.toUtf8() ) +
58 "\" \"" + KIMAP::encodeImapFolderName( d->destinationMailBox.toUtf8() ) +
'\"' );
61 void RenameJob::setSourceMailBox(
const QString &mailBox )
64 d->sourceMailBox = mailBox;
67 QString RenameJob::sourceMailBox()
const
69 Q_D(
const RenameJob );
70 return d->sourceMailBox;
73 void RenameJob::setDestinationMailBox(
const QString &mailBox )
76 d->destinationMailBox = mailBox;
79 QString RenameJob::destinationMailBox()
const
81 Q_D(
const RenameJob );
82 return d->destinationMailBox;
This file is part of the IMAP support library and defines the RfcCodecs class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:03 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.