OpenCPN Partial API docs
Loading...
Searching...
No Matches
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// Copyright: (c) PJ Naughter
8// Licence: wxWindows licence
10
11#ifndef WX_SMAPI_H_
12#define WX_SMAPI_H_
13
14#include "msg.h"
15
16#include <wx/string.h>
17#include <wx/window.h>
18
19class WXDLLIMPEXP_NETUTILS wxMapiData;
20
21// The class which encapsulates the MAPI connection
22class WXDLLIMPEXP_NETUTILS wxMapiSession {
23public:
24 // Constructors / Destructors
27
28 // Logon / Logoff Methods
29 bool Logon(const wxString& sProfileName,
30 const wxString& sPassword = wxEmptyString,
31 wxWindow* pParentWnd = nullptr);
32 bool LoggedOn() const;
33 bool Logoff();
34
35 // Send a message
36 bool Send(wxMailMessage& message);
37
38 // General MAPI support
39 bool MapiInstalled() const;
40
41 // Error Handling
42 long GetLastError() const;
43
44protected:
45 // Methods
46 void Initialise();
47 void Deinitialise();
48 bool Resolve(const wxString& sName, void* lppRecip1);
49
50 wxMapiData* m_data;
51};
52
53#endif // WX_SMAPI_H_
Email Message Encapsulation.