|
1 /* |
|
2 * Copyright (c) 2006 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: Contains CNcdClientSubscribableContent class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef NCD_CLIENT_SUBSCRIBABLE_CONTENT_H |
|
20 #define NCD_CLIENT_SUBSCRIBABLE_CONTENT_H |
|
21 |
|
22 |
|
23 #include <e32base.h> |
|
24 // For streams |
|
25 #include <s32mem.h> |
|
26 |
|
27 #include "ncdsubscription.h" |
|
28 |
|
29 /** |
|
30 * This server side class contains the subscribableContent info |
|
31 * of a node. |
|
32 * |
|
33 * |
|
34 * @lib ?library |
|
35 * @since S60 ?S60_version *** for example, S60 v3.0 |
|
36 */ |
|
37 class CNcdClientSubscribableContent : public CBase |
|
38 { |
|
39 |
|
40 public: |
|
41 /** |
|
42 * NewL |
|
43 * |
|
44 * @return CNcdClientSubscribableContent* Pointer to the created object |
|
45 * of this class. |
|
46 */ |
|
47 static CNcdClientSubscribableContent* NewL(); |
|
48 |
|
49 /** |
|
50 * NewLC |
|
51 * |
|
52 * @return CNcdClientSubscribableContent* Pointer to the created object |
|
53 * of this class. |
|
54 */ |
|
55 static CNcdClientSubscribableContent* NewLC(); |
|
56 |
|
57 /** |
|
58 * Destructor |
|
59 * |
|
60 */ |
|
61 virtual ~CNcdClientSubscribableContent(); |
|
62 |
|
63 |
|
64 |
|
65 public: |
|
66 |
|
67 |
|
68 /** |
|
69 * Internalizer |
|
70 */ |
|
71 virtual void InternalizeL( RReadStream& aStream ); |
|
72 |
|
73 TTime ValidUntil() const; |
|
74 TBool ValidUntilSet() const; |
|
75 TBool ChildSeparatelyPurchasable() const; |
|
76 |
|
77 protected: |
|
78 |
|
79 /** |
|
80 * Constructor |
|
81 * Is set in the NewLC function |
|
82 */ |
|
83 CNcdClientSubscribableContent(); |
|
84 |
|
85 /** |
|
86 * ConstructL |
|
87 */ |
|
88 virtual void ConstructL(); |
|
89 |
|
90 |
|
91 private: |
|
92 |
|
93 // Prevent these two if they are not implemented |
|
94 CNcdClientSubscribableContent( |
|
95 const CNcdClientSubscribableContent& aObject ); |
|
96 CNcdClientSubscribableContent& operator=( |
|
97 const CNcdClientSubscribableContent& aObject ); |
|
98 |
|
99 /** |
|
100 * Function to reset member variables. |
|
101 */ |
|
102 void ResetMemberVariables(); |
|
103 |
|
104 private: // data |
|
105 |
|
106 TTime iValidUntil; |
|
107 TBool iValidUntilSet; |
|
108 MNcdSubscription::TType iSubscriptionType; |
|
109 TBool iChildSeparatelyPurchasable; |
|
110 |
|
111 }; |
|
112 |
|
113 #endif // NCD_CLIENT_SUBSCRIBABLE_CONTENT_H |