]>
Commit | Line | Data |
---|---|---|
decb3a6a JS |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: smapi.h | |
3 | // Purpose: Simple MAPI classes | |
4 | // Author: PJ Naughter <pjna@naughter.com> | |
5 | // Modified by: Julian Smart | |
6 | // Created: 2001-08-21 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) PJ Naughter | |
9 | // Licence: wxWindows licence | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
decb3a6a JS |
12 | #ifndef _WX_SMAPI_H_ |
13 | #define _WX_SMAPI_H_ | |
14 | ||
15 | #include "wx/net/msg.h" | |
16 | ||
15e8daec | 17 | class WXDLLIMPEXP_NETUTILS wxMapiData; |
decb3a6a JS |
18 | |
19 | //The class which encapsulates the MAPI connection | |
15e8daec | 20 | class WXDLLIMPEXP_NETUTILS wxMapiSession |
decb3a6a JS |
21 | { |
22 | public: | |
23 | //Constructors / Destructors | |
24 | wxMapiSession(); | |
25 | ~wxMapiSession(); | |
26 | ||
27 | //Logon / Logoff Methods | |
28 | bool Logon(const wxString& sProfileName, const wxString& sPassword = wxEmptyString, wxWindow* pParentWnd = NULL); | |
29 | bool LoggedOn() const; | |
30 | bool Logoff(); | |
31 | ||
32 | //Send a message | |
33 | bool Send(wxMailMessage& message); | |
34 | ||
35 | //General MAPI support | |
36 | bool MapiInstalled() const; | |
37 | ||
38 | //Error Handling | |
39 | long GetLastError() const; | |
40 | ||
41 | protected: | |
42 | //Methods | |
43 | void Initialise(); | |
44 | void Deinitialise(); | |
45 | bool Resolve(const wxString& sName, void* lppRecip1); | |
46 | ||
47 | wxMapiData* m_data; | |
48 | ||
49 | }; | |
50 | ||
51 | ||
ab7ce33c | 52 | #endif //_WX_SMAPI_H_ |