]> git.saurik.com Git - wxWidgets.git/blame - contrib/include/wx/net/smapi.h
[ 1176516 ] argv datatype has changed (char in docs but really wxChar)
[wxWidgets.git] / contrib / include / wx / net / smapi.h
CommitLineData
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
ab7ce33c 12#if defined(__GNUG__) && !defined(__APPLE__)
decb3a6a
JS
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
15e8daec 21class WXDLLIMPEXP_NETUTILS wxMapiData;
decb3a6a
JS
22
23//The class which encapsulates the MAPI connection
15e8daec 24class WXDLLIMPEXP_NETUTILS wxMapiSession
decb3a6a
JS
25{
26public:
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
45protected:
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
ab7ce33c 56#endif //_WX_SMAPI_H_