xref: /haiku/src/tests/kits/support/barchivable/remoteobjectdef/RemoteTestObject.h (revision 1d9d47fc72028bb71b5f232a877231e59cfe2438)
1 //------------------------------------------------------------------------------
2 //	RemoteTestObject.h
3 //
4 //------------------------------------------------------------------------------
5 
6 #ifndef REMOTETESTOBJECT_H
7 #define REMOTETESTOBJECT_H
8 
9 // Standard Includes -----------------------------------------------------------
10 
11 // System Includes -------------------------------------------------------------
12 #include <Archivable.h>
13 
14 // Project Includes ------------------------------------------------------------
15 
16 // Local Includes --------------------------------------------------------------
17 
18 // Local Defines ---------------------------------------------------------------
19 
20 // Globals ---------------------------------------------------------------------
21 
22 class BMessage;
23 
24 class TRemoteTestObject : public BArchivable
25 {
26 	public:
27 		TRemoteTestObject(int32 i);
28 		int32 GetData() { return data; }
29 
30 		// All the archiving-related stuff
31 		TRemoteTestObject(BMessage* archive);
32 		status_t Archive(BMessage* archive, bool deep = true);
33 		static TRemoteTestObject* Instantiate(BMessage* archive);
34 
35 	private:
36 		int32 data;
37 };
38 
39 #endif	//REMOTETESTOBJECT_H
40 
41 /*
42  * $Log $
43  *
44  * $Id  $
45  *
46  */
47 
48