File: ProtocolObject.h

package info (click to toggle)
boxbackup 0.11.1~r2837-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 10,476 kB
  • sloc: xml: 70,723; cpp: 47,154; perl: 4,430; sh: 3,536; python: 311; makefile: 192
file content (41 lines) | stat: -rw-r--r-- 1,147 bytes parent folder | download | duplicates (2)
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
// --------------------------------------------------------------------------
//
// File
//		Name:    ProtocolObject.h
//		Purpose: Protocol object base class
//		Created: 2003/08/19
//
// --------------------------------------------------------------------------

#ifndef PROTOCOLOBJECT__H
#define PROTOCOLOBJECT__H

class Protocol;

// --------------------------------------------------------------------------
//
// Class
//		Name:    ProtocolObject
//		Purpose: Basic object representation of objects to pass through a Protocol session
//		Created: 2003/08/19
//
// --------------------------------------------------------------------------
class ProtocolObject
{
public:
	ProtocolObject();
	virtual ~ProtocolObject();
	ProtocolObject(const ProtocolObject &rToCopy);

	// Info about this object
	virtual int GetType() const;
	virtual bool IsError(int &rTypeOut, int &rSubTypeOut) const;
	virtual bool IsConversationEnd() const;

	// reading and writing with Protocol objects
	virtual void SetPropertiesFromStreamData(Protocol &rProtocol);
	virtual void WritePropertiesToStreamData(Protocol &rProtocol) const;	
};

#endif // PROTOCOLOBJECT__H