Skip to main content ::
::
KDE PIM API Reference
::
Skip to Link Menu
/
API Reference
/
kmail
kmail
kmail
renamejob.h
1
/*
2
* Copyright (c) 2004 Carsten Burghardt <burghardt@kde.org>
3
*
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; version 2 of the License
7
*
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16
*
17
* In addition, as a special exception, the copyright holders give
18
* permission to link the code of this program with any edition of
19
* the TQt library by Trolltech AS, Norway (or with modified versions
20
* of TQt that use the same license as TQt), and distribute linked
21
* combinations including the two. You must obey the GNU General
22
* Public License in all respects for all of the code used other than
23
* TQt. If you modify this file, you may extend this exception to
24
* your version of the file, but you are not obligated to do so. If
25
* you do not wish to do so, delete this exception statement from
26
* your version.
27
*/
28
#ifndef RENAMEJOB_H
29
#define RENAMEJOB_H
30
31
#include "folderjob.h"
32
33
class
FolderStorage
;
34
class
KMFolderDir
;
35
class
KMFolder
;
36
class
KMCommand;
37
38
namespace
KIO {
39
class
Job;
40
}
41
42
namespace
KMail {
43
44
class
CopyFolderJob;
45
51
class
RenameJob
:
public
FolderJob
52
{
53
Q_OBJECT
54
TQ_OBJECT
55
public
:
62
RenameJob
(
FolderStorage
* storage,
const
TQString& newName,
63
KMFolderDir
* newParent = 0 );
64
65
virtual
~
RenameJob
();
66
67
virtual
void
execute();
68
69
protected
slots:
71
void
slotRenameResult
( KIO::Job* job );
72
74
void
folderCopyComplete
(
bool
success );
75
76
signals:
78
void
renameDone
( TQString newName,
bool
success );
79
80
protected
:
81
FolderStorage
* mStorage;
82
FolderStorage
* mStorageTempOpened;
83
KMFolderDir
* mNewParent;
84
TQString mNewName;
85
TQString mNewImapPath;
86
TQString mOldName;
87
TQString mOldImapPath;
88
TQStringList mOldImapPaths;
89
KMFolder
* mNewFolder;
90
CopyFolderJob
*mCopyFolderJob;
91
};
92
93
}
// namespace KMail
94
95
#endif
/* RENAMEJOB_H */
96
kmail
Skip menu "kmail"
Main Page
Namespace List
Class Hierarchy
Alphabetical List
Class List
File List
Namespace Members
Class Members
Related Pages
kmail
Skip menu "kmail"
akregator
src
librss
certmanager
lib
kaddressbook
kalarm
lib
kandy
karm
kdgantt
kgantt
kioslaves
imap4
mbox
kitchensync
kmail
knotes
konsolekalendar
kontact
korganizer
libemailfunctions
libkcal
libkdepim
libkholidays
libkmime
libkpgp
libkpimidentities