1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
/*
** Copyright 2003, Double Precision Inc.
**
** See COPYING for distribution information.
*/
#ifndef libmail_smapsendfolder_H
#define libmail_smapsendfolder_H
#include "libmail_config.h"
#include "mail.H"
#include "imap.H"
#include "smtpinfo.H"
LIBMAIL_START
class smapSendFolder : public folder {
mail::imap *imapAccount;
smtpInfo sendInfo;
std::string sentPath;
public:
smapSendFolder(mail::imap *, const smtpInfo &, std::string);
~smapSendFolder();
void sameServerAsHelperFunc() const;
std::string getName() const;
std::string getPath() const;
bool hasMessages() const;
bool hasSubFolders() const;
bool isParentOf(std::string path) const;
void hasMessages(bool);
void hasSubFolders(bool);
void readFolderInfo( callback::folderInfo
&callback1,
callback &callback2) const;
void getParentFolder(callback::folderList &callback1,
callback &callback2) const;
void readSubFolders( callback::folderList &callback1,
callback &callback2) const;
mail::addMessage *addMessage(callback &callback) const;
void createSubFolder(std::string name, bool isDirectory,
callback::folderList
&callback1,
callback &callback2) const;
void create(bool isDirectory,
callback &callback) const;
void destroy(callback &callback, bool destroyDir) const;
void renameFolder(const folder *newParent, std::string newName,
callback::folderList &callback1,
callback &callback2) const;
folder *clone() const;
std::string toString() const;
void open(callback &openCallback,
snapshot *restoreSnapshot,
callback::folder &folderCallback) const;
};
LIBMAIL_END
#endif
|