]>
Commit | Line | Data |
---|---|---|
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 | ||
12 | #ifdef __GNUG__ | |
13 | #pragma interface "smapi.h" | |
14 | #endif | |
15 | ||
16 | #ifndef _WX_SMAPI_H_ | |
17 | #define _WX_SMAPI_H_ | |
18 | ||
19 | #include "wx/net/msg.h" | |
20 | ||
21 | class wxMapiData; | |
22 | ||
23 | //The class which encapsulates the MAPI connection | |
24 | class wxMapiSession | |
25 | { | |
26 | public: | |
27 | //Constructors / Destructors | |
28 | wxMapiSession(); | |
29 | ~wxMapiSession(); | |
30 | ||
31 | //Logon / Logoff Methods | |
32 | bool Logon(const wxString& sProfileName, const wxString& sPassword = wxEmptyString, wxWindow* pParentWnd = NULL); | |
33 | bool LoggedOn() const; | |
34 | bool Logoff(); | |
35 | ||
36 | //Send a message | |
37 | bool Send(wxMailMessage& message); | |
38 | ||
39 | //General MAPI support | |
40 | bool MapiInstalled() const; | |
41 | ||
42 | //Error Handling | |
43 | long GetLastError() const; | |
44 | ||
45 | protected: | |
46 | //Methods | |
47 | void Initialise(); | |
48 | void Deinitialise(); | |
49 | bool Resolve(const wxString& sName, void* lppRecip1); | |
50 | ||
51 | wxMapiData* m_data; | |
52 | ||
53 | }; | |
54 | ||
55 | ||
56 | #endif //_WX_SMAPI_H_ |