]> git.saurik.com Git - wxWidgets.git/blob - contrib/include/wx/net/smapi.h
Applied patch [ 875663 ] Warning free mmedia contrib
[wxWidgets.git] / contrib / include / wx / net / smapi.h
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 #if defined(__GNUG__) && !defined(__APPLE__)
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 WXDLLIMPEXP_NETUTILS wxMapiData;
22
23 //The class which encapsulates the MAPI connection
24 class WXDLLIMPEXP_NETUTILS 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_