|
1 /* |
|
2 * Copyright (c) 2009 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: ESMR field storage for viewer fields owned by fieldcontainer |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CESMRVIEWERFIELDSTORAGE_H |
|
19 #define CESMRVIEWERFIELDSTORAGE_H |
|
20 |
|
21 #include "cesmrfieldstorage.h" |
|
22 #include "tesmrentryfield.h" |
|
23 |
|
24 class CESMRPolicy; |
|
25 class CESMRTimeWrapper; |
|
26 class MESMRCalEntry; |
|
27 class MESMRResponseObserver; |
|
28 |
|
29 /** |
|
30 * This class storages the fields needed in viewer mode. |
|
31 */ |
|
32 NONSHARABLE_CLASS( CESMRViewerFieldStorage ) : public CESMRFieldStorage |
|
33 { |
|
34 |
|
35 public: |
|
36 /** |
|
37 * Constructor for the viewer field storage. |
|
38 * |
|
39 * @param aPolicy - pointer to policy information |
|
40 * @param aResponseObserver - Observer to be called when response |
|
41 * action is needed |
|
42 * @param aResponseReady - Currently not in use |
|
43 * @return New viewer field storage object |
|
44 */ |
|
45 static CESMRViewerFieldStorage* NewL( |
|
46 const CESMRPolicy& aPolicy, |
|
47 MESMRResponseObserver* aResponseObserver, |
|
48 TBool aResponseReady, |
|
49 MESMRFieldEventObserver& aEventObserver, |
|
50 TInt aReqAttendee = 0, |
|
51 TInt aOptAttendee = 0); |
|
52 |
|
53 // Destructor |
|
54 ~CESMRViewerFieldStorage(); |
|
55 |
|
56 public: |
|
57 // overwritten because the time wrapper needs to be |
|
58 // externalized also. |
|
59 void ExternalizeL( MESMRCalEntry& aEntry ); |
|
60 |
|
61 private: // Implementation |
|
62 CESMRViewerFieldStorage( |
|
63 MESMRFieldEventObserver& aEventObserver ); |
|
64 |
|
65 void ConstructL( const CESMRPolicy& aPolicy, |
|
66 MESMRResponseObserver* aResponseObserver, |
|
67 TBool aResponseReady, |
|
68 const TInt &aReqAttendee , |
|
69 const TInt &aOptAttendee ); |
|
70 |
|
71 void CreatePolicyFieldsL( const CESMRPolicy& aPolicy, |
|
72 MESMRResponseObserver* aResponseObserver, |
|
73 TBool aResponseReady); |
|
74 |
|
75 void CreateTrackingFieldsL( const CESMRPolicy& aPolicy, |
|
76 MESMRResponseObserver* aResponseObserver, |
|
77 TBool aResponseReady, |
|
78 const TInt &aReqAttendeee, const TInt &aOptAttendee); |
|
79 }; |
|
80 |
|
81 #endif //CESMRVIEWERFIELDSTORAGE_H |