forked from mcneel/rpc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRpcClient.h
42 lines (34 loc) · 1.16 KB
/
RpcClient.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
#pragma once
class CRpcClient : public RPCapi::Client
{
public:
CRpcClient(void);
~CRpcClient(void);
public:
bool Initialize(void);
bool Uninitialize(void);
public:
bool Valid(void) const;
RPCapi& RPC(void) const;
void OnRpcInstanceWillBeCreated(UINT idDoc, const CLBPString& sRpc);
public:
// RPCapi::Client overrides
virtual TStringArg RPCgetAboutString(void);
virtual RPCapi* RPCgetAPI(void);
virtual const RPCapi::License* RPCgetLicense(void);
virtual TStringArg* RPCgetPaths(bool start, int &numPaths);
virtual int RPCgetMode();
virtual TStringArg RPCiniPath(void);
virtual void RPClicenseChange(bool licensed, bool acm);
virtual void RPCpluginMetadata(int &num, const TStringArg*& keys, const RPCapi::Param**& values);
virtual void RPCcontentMetadata(int req, int &numsets, const int *&setsize, const TStringArg **&keys, const RPCapi::Param ***&values);
virtual TStringArg RPCpluginId(void);
virtual bool RPCuserMessage(int msgType, bool ret, const TString &title, const TString &msg);
void Flush(void);
private:
mutable RPCapi* m_pRpcApi;
HMODULE m_hRpcApiHandle;
RPCapi::TStringArg *m_metaKeys;
RPCapi::Param **m_metaValues;
int m_numMetaValues;
};