-
Notifications
You must be signed in to change notification settings - Fork 75
/
CoCormanLispClient.h
76 lines (63 loc) · 2.12 KB
/
CoCormanLispClient.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
// -------------------------------
// Copyright (c) Corman Technologies Inc.
// See LICENSE.txt for license information.
// -------------------------------
//
// File: CoCormanLispClient.h
// Contents: CoCormanLispClient class definition for Corman Lisp.
// History: 8/11/97 RGC Created.
//
#ifndef COCORMANLISPCLIENT_H
#define COCORMANLISPCLIENT_H
#include "ICormanLisp.h"
class CoCormanLispClient
: public ICormanLispStatusMessage
{
public:
CoCormanLispClient();
~CoCormanLispClient();
// IUnknown methods
STDMETHODIMP QueryInterface(REFIID riid, void** ppv);
STDMETHODIMP_(ULONG) AddRef();
STDMETHODIMP_(ULONG) Release();
// ICormanLisp methods
STDMETHODIMP OutputText(char* text, long numChars);
STDMETHODIMP SetMessage(char* text);
STDMETHODIMP GetMessage(char* text, long maxMessageLength);
STDMETHODIMP SetDefaultMessage();
STDMETHODIMP GetAppInstance(HINSTANCE* appInstance);
STDMETHODIMP GetAppMainWindow(HWND* appMainWindow);
STDMETHODIMP OpenEditWindow(char* file, HWND* wnd);
STDMETHODIMP OpenURL(char* file, HWND* wnd);
STDMETHODIMP AddMenu(char* menuName);
STDMETHODIMP AddMenuItem(char* menuName, char* menuItem);
STDMETHODIMP ReplaceSelection(char* text, long numChars);
// Helper functions
STDMETHODIMP Connect(IConnectionPoint* pConnectionPoint);
STDMETHODIMP Disconnect(IConnectionPoint* pConnectionPoint);
private:
long m_cRef;
DWORD m_dwCookie;
DWORD m_eventLoopThreadID;
};
class CoCormanLispShutdownClient
: public ICormanLispShutdown
{
public:
CoCormanLispShutdownClient();
~CoCormanLispShutdownClient();
// IUnknown methods
STDMETHODIMP QueryInterface(REFIID riid, void** ppv);
STDMETHODIMP_(ULONG) AddRef();
STDMETHODIMP_(ULONG) Release();
// ICormanLispShutdown methods
STDMETHODIMP LispShutdown(char* text, long numChars);
// Helper functions
STDMETHODIMP Connect(IConnectionPoint* pConnectionPoint);
STDMETHODIMP Disconnect(IConnectionPoint* pConnectionPoint);
private:
long m_cRef;
DWORD m_dwCookie;
DWORD m_eventLoopThreadID;
};
#endif // COCORMANLISPCLIENT_H