summaryrefslogtreecommitdiff
path: root/orkbasecxx/messages/InitMsg.h
blob: f594829a8e6b7d06c58e4d6045ea65a375b42302 (plain)
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
/*
 * RfbRecorder -- A Simple RFB recording program
 *
 * Copyright (C) 2007, orecx LLC
 *
 * http://www.orecx.com/
 *
 */
#ifndef __INITMSG_H__
#define __INITMSG_H__ 1

#include "messages/SyncMessage.h"
#include "messages/AsyncMessage.h"

#define INIT_MESSAGE_NAME "init"
#define NAME_PARAM "name"
#define HOSTNAME_PARAM "hostname"
#define TYPE_PARAM "servicetype"
#define TCP_PORT_PARAM "tcpport"
#define PROTOCOL_PARAM "protocol"
#define FILE_SERVE_PORT_PARAM "fileserveport"
#define CONTEXT_PATH_PARAM "contextpath"
#define SERVE_PATH_PARAM "servepath"
#define ABSOLUTE_PATH_PARAM "absolutepath"
#define STREAMING_PORT_PARAM "streamingport"
#define USERNAME_PARAM "username"
#define PASSWORD_PARAM "password"
#define SSH_PORT_PARAM "sshport"

class DLL_IMPORT_EXPORT_ORKBASE InitMsg : public SyncMessage
{
public:
	InitMsg();

	void Define(Serializer* s);
	void Validate();

	CStdString GetClassName();
	ObjectRef NewInstance();
	ObjectRef Process();

	CStdString m_name;
	CStdString m_hostname;
	CStdString m_type;
	int m_tcpPort;
	CStdString m_protocol;
	int m_fileServePort;
	CStdString m_contextPath;
	CStdString m_servePath;
	CStdString m_absolutePath;
	int m_streamingPort;
	CStdString m_username;
	CStdString m_password;
	int m_sshPort;
};
typedef boost::shared_ptr<InitMsg> InitMsgRef;

#endif