Line data Source code
1 : /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2 : *
3 : * This Source Code Form is subject to the terms of the Mozilla Public
4 : * License, v. 2.0. If a copy of the MPL was not distributed with this
5 : * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 :
7 : /* local header for xpconnect tests components */
8 :
9 : #ifndef xpctest_private_h___
10 : #define xpctest_private_h___
11 :
12 : #include "nsISupports.h"
13 : #include "nsMemory.h"
14 : #include "nsStringGlue.h"
15 : #include "xpctest_attributes.h"
16 : #include "xpctest_params.h"
17 : #include "xpctest_returncode.h"
18 : #include "mozilla/Attributes.h"
19 : #include "mozilla/ModuleUtils.h"
20 :
21 : extern const mozilla::Module kXPCTestModule;
22 :
23 : class xpcTestObjectReadOnly final : public nsIXPCTestObjectReadOnly {
24 : public:
25 : NS_DECL_ISUPPORTS
26 : NS_DECL_NSIXPCTESTOBJECTREADONLY
27 : xpcTestObjectReadOnly();
28 :
29 : private:
30 0 : ~xpcTestObjectReadOnly() {}
31 :
32 : bool boolProperty;
33 : int16_t shortProperty;
34 : int32_t longProperty;
35 : float floatProperty;
36 : char charProperty;
37 : PRTime timeProperty;
38 : };
39 :
40 : class xpcTestObjectReadWrite final : public nsIXPCTestObjectReadWrite {
41 : public:
42 : NS_DECL_ISUPPORTS
43 : NS_DECL_NSIXPCTESTOBJECTREADWRITE
44 :
45 : xpcTestObjectReadWrite();
46 :
47 : private:
48 : ~xpcTestObjectReadWrite();
49 :
50 : bool boolProperty;
51 : int16_t shortProperty;
52 : int32_t longProperty;
53 : float floatProperty;
54 : char charProperty;
55 : char* stringProperty;
56 : PRTime timeProperty;
57 : };
58 :
59 : class nsXPCTestParams final : public nsIXPCTestParams
60 : {
61 : public:
62 : NS_DECL_ISUPPORTS
63 : NS_DECL_NSIXPCTESTPARAMS
64 :
65 : nsXPCTestParams();
66 :
67 : private:
68 : ~nsXPCTestParams();
69 : };
70 :
71 : class nsXPCTestReturnCodeParent final : public nsIXPCTestReturnCodeParent
72 : {
73 : public:
74 : NS_DECL_ISUPPORTS
75 : NS_DECL_NSIXPCTESTRETURNCODEPARENT
76 :
77 : nsXPCTestReturnCodeParent();
78 :
79 : private:
80 : ~nsXPCTestReturnCodeParent();
81 : };
82 :
83 : #endif /* xpctest_private_h___ */
|