|
1 /* |
|
2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * Internal group property mutators for engine's internal use, not included |
|
16 * in the group client API for read-only properties. |
|
17 * |
|
18 * DO NOT DEFINE your own data members in these classes. Otherwise the cast |
|
19 * operation is not possible. |
|
20 * |
|
21 * |
|
22 */ |
|
23 |
|
24 |
|
25 #ifndef ImpsInternalProperties_H |
|
26 #define ImpsInternalProperties_H |
|
27 |
|
28 // INCLUDES |
|
29 #include "impsgroupprops.h" |
|
30 |
|
31 // CONSTANTS |
|
32 |
|
33 // size of mem::copy for CImpsGroupProps |
|
34 // 1 * 4 |
|
35 const TInt KImpsPackedProps = 4; |
|
36 |
|
37 // size of mem::copy for CImpsCommonGroupPropsInt |
|
38 // 5 * 4 |
|
39 const TInt KImpsPackedCommonProps = 20; |
|
40 // Nbr of fields that have streamed |
|
41 const TInt KImpsPackedCommonPropsNbr = 3; |
|
42 |
|
43 // size of mem::copy for CImpsPrivateGroupPropsInt |
|
44 // 2 * 4 |
|
45 const TInt KImpsPackedPrivateProps = 8; |
|
46 // Nbr of fields that have streamed |
|
47 const TInt KImpsPackedPrivatePropsNbr = 0; |
|
48 |
|
49 |
|
50 // CLASS DECLARATION |
|
51 |
|
52 //*********************************************************** |
|
53 // Internal common group property mutators. |
|
54 // *********************************************************** |
|
55 |
|
56 class CImpsCommonGroupPropsInt : public CImpsCommonGroupProps |
|
57 { |
|
58 public: // Constructors and destructor |
|
59 |
|
60 /** |
|
61 * Two-phased constructor. |
|
62 */ |
|
63 IMPORT_C static CImpsCommonGroupPropsInt* NewL(); |
|
64 |
|
65 /** |
|
66 * Destructor. |
|
67 */ |
|
68 virtual ~CImpsCommonGroupPropsInt(); |
|
69 |
|
70 /** |
|
71 * Reset |
|
72 */ |
|
73 IMPORT_C void Reset(); |
|
74 |
|
75 /** |
|
76 * Access type mutator |
|
77 * @param aType EImpsPropYes if public |
|
78 */ |
|
79 IMPORT_C void SetPublic( TImpsPropertyBool aType ); |
|
80 |
|
81 /** |
|
82 * Mutator for current number of users |
|
83 * @param aNbr number of users. -1 means undefined |
|
84 */ |
|
85 IMPORT_C void SetNbrOfUsers( TInt aNbr ); |
|
86 |
|
87 /** |
|
88 * Size accessor |
|
89 * @return size of this entity |
|
90 */ |
|
91 TInt Size() const; |
|
92 |
|
93 |
|
94 /** |
|
95 * Is there any real data |
|
96 * @return TBool if there is data |
|
97 */ |
|
98 TBool HasData() const; |
|
99 |
|
100 private: |
|
101 /** |
|
102 * By default Symbian OS constructor is private. |
|
103 */ |
|
104 CImpsCommonGroupPropsInt(); |
|
105 |
|
106 /** |
|
107 * By default Symbian OS constructor is private. |
|
108 */ |
|
109 void ConstructL(); |
|
110 |
|
111 public: // Friend classes |
|
112 friend class TImpsPackedEntity; |
|
113 friend class CImpsSession; |
|
114 protected: // Friend classes |
|
115 //?friend_class_declaration; |
|
116 private: // Friend classes |
|
117 |
|
118 }; |
|
119 |
|
120 //*********************************************************** |
|
121 // Internal private group property mutators. |
|
122 //*********************************************************** |
|
123 |
|
124 class CImpsPrivateGroupPropsInt : public CImpsPrivateGroupProps |
|
125 { |
|
126 public: // Constructors and destructor |
|
127 |
|
128 /** |
|
129 * Two-phased constructor. |
|
130 */ |
|
131 IMPORT_C static CImpsPrivateGroupPropsInt* NewL(); |
|
132 |
|
133 /** |
|
134 * Destructor. |
|
135 */ |
|
136 virtual ~CImpsPrivateGroupPropsInt(); |
|
137 |
|
138 /** |
|
139 * Reset |
|
140 */ |
|
141 IMPORT_C void Reset(); |
|
142 |
|
143 /** |
|
144 * Mutator for user membership |
|
145 * @param aValue EImpsPropYes if user is a member |
|
146 */ |
|
147 IMPORT_C void SetMember( TImpsPropertyBool aValue ); |
|
148 |
|
149 /** |
|
150 * Privilege mutator |
|
151 * @param aValue privileges (role) in the group |
|
152 */ |
|
153 IMPORT_C void SetPrivileges( TImpsGroupUsers aValue ); |
|
154 |
|
155 /** |
|
156 * Size accessor |
|
157 * @return size of this entity. |
|
158 */ |
|
159 TInt Size() const; |
|
160 |
|
161 /** |
|
162 * Is there any real data |
|
163 * @return TBool if there is data |
|
164 */ |
|
165 TBool HasData() const; |
|
166 |
|
167 private: |
|
168 /** |
|
169 * By default Symbian OS constructor is private. |
|
170 */ |
|
171 CImpsPrivateGroupPropsInt(); |
|
172 |
|
173 /** |
|
174 * By default Symbian OS constructor is private. |
|
175 */ |
|
176 void ConstructL(); |
|
177 |
|
178 public: // Friend classes |
|
179 friend class TImpsPackedEntity; |
|
180 |
|
181 }; |
|
182 |
|
183 #endif // ?INCLUDE_H |
|
184 |
|
185 // End of File |