-
Notifications
You must be signed in to change notification settings - Fork 0
/
wxMsAccounth.h
68 lines (66 loc) · 2.54 KB
/
wxMsAccounth.h
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
/*-----------------------------------------------------------------
* Name: wxMsAccounth.h
* Purpose:
* Author: A. Wiegert
*
* Copyright:
* Licence: wxWidgets license
*-------------------------------------------------------------- */
#ifndef _WX_MS_ACCOUNT_H
#define _WX_MS_ACCOUNT_H
#include "wxMsh.h"
#include <wx/dynarray.h>
// ------------------------------------------------------------------
/**
* Account info is stored in the master INI file
*
* See the Mailwasher registry entry at
* HKeu_CURRENT_USERSoftware/eCOSN/Mailwasher/prefs/account/free
*/
class MyMsAccountEl {
public:
wxString m_wsAcctName; ///< Account Name
wxString m_wsUserName; ///< user name for this acct
wxString m_wsAcctKind; ///< PPOP3, IMAP, GMAIL, Yahoo, ....
wxString m_wsPopServerUrl; ///< POP3 server URL
bool m_bSavePassword;
wxString m_wsPassword;
unsigned long m_ulPopPort; ///< port to use for POP3
bool m_bEnabled; ///< allows accounts to be active or dormant
bool m_bServerAvailable; ///< is server available?
bool m_bAllowBounce; ///< can mail be bounced?
bool m_bHasCapa; ///< true if the server supports the CAPA command
wxString m_wsRawCapaString; ///< capabilities as returned from CAPA command
wxArrayString m_wasUidl; ///< string array of UIDLs
bool m_bHasUidl; ///< true if server has UIDL feature
bool m_bPopUseSsl;
///< details needed for bouncing
wxString m_wsSmtpServerUrl; ///< "
wxString m_wsAcctEmailAddr; ///< sender mail box address for bounce
wxString m_wsSmtpPassword; ///< "
unsigned long m_ulSmtpPort; ///< "
MyMsAccountEl() : // default ctor for the struct
m_wsAcctName(wxEmptyString),
m_wsUserName(wxEmptyString),
m_wsAcctKind(wxEmptyString),
m_wsPopServerUrl(wxEmptyString),
m_bSavePassword(false),
m_wsPassword(wxEmptyString),
m_ulPopPort(110),
m_bEnabled(false),
m_bServerAvailable(false),
m_bAllowBounce(false),
m_bHasCapa(false),
m_wsRawCapaString(wxEmptyString),
m_bHasUidl(false),
m_bPopUseSsl(false),
m_wsSmtpServerUrl(wxEmptyString),
m_wsAcctEmailAddr(wxEmptyString),
m_wsSmtpPassword(wxEmptyString),
m_ulSmtpPort(0)
{
};
};
WX_DECLARE_LIST( MyMsAccountEl, MyAccountList );
#endif // _WX_MS_ACCOUNT_H
// ------------------------------- eof ---------------------------