|
1 /* |
|
2 * Copyright (c) 2005 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: This file contains utility methods related to usage of |
|
15 * Calendar Interim API. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 // ---------------------------------------------------------------------------- |
|
22 // INCLUDE FILES |
|
23 // ---------------------------------------------------------------------------- |
|
24 // |
|
25 #include <CalenInterimUtils2.h> |
|
26 #include "CalenInterimUtils2Impl.h" |
|
27 |
|
28 //debug |
|
29 #include "calendarengines_debug.h" |
|
30 |
|
31 // ----------------------------------------------------------------------------- |
|
32 // CCalenInterimUtils22::NewL() |
|
33 // Creates and returns a new CCalenInterimUtils2 object. |
|
34 // (other items were commented in a header). |
|
35 // ----------------------------------------------------------------------------- |
|
36 // |
|
37 EXPORT_C CCalenInterimUtils2* CCalenInterimUtils2::NewL() |
|
38 { |
|
39 TRACE_ENTRY_POINT; |
|
40 |
|
41 CCalenInterimUtils2* self = new(ELeave) CCalenInterimUtils2(); |
|
42 CleanupStack::PushL(self); |
|
43 self->ConstructL(); |
|
44 CleanupStack::Pop(self); |
|
45 |
|
46 TRACE_EXIT_POINT; |
|
47 return self; |
|
48 } |
|
49 |
|
50 CCalenInterimUtils2::CCalenInterimUtils2() |
|
51 { |
|
52 TRACE_ENTRY_POINT; |
|
53 TRACE_EXIT_POINT; |
|
54 } |
|
55 |
|
56 // ----------------------------------------------------------------------------- |
|
57 // CCalenInterimUtils2::ConstructL() |
|
58 // ----------------------------------------------------------------------------- |
|
59 // |
|
60 void CCalenInterimUtils2::ConstructL() |
|
61 { |
|
62 TRACE_ENTRY_POINT; |
|
63 |
|
64 iImpl = CCalenInterimUtils2Impl::NewL(); |
|
65 |
|
66 TRACE_EXIT_POINT; |
|
67 } |
|
68 |
|
69 // ----------------------------------------------------------------------------- |
|
70 // CCalenInterimUtils2::~CCalenInterimUtils2() |
|
71 // ----------------------------------------------------------------------------- |
|
72 // |
|
73 EXPORT_C CCalenInterimUtils2::~CCalenInterimUtils2() |
|
74 { |
|
75 TRACE_ENTRY_POINT; |
|
76 TRACE_EXIT_POINT; |
|
77 delete iImpl; |
|
78 } |
|
79 |
|
80 // ---------------------------------------------------------------------------- |
|
81 // CCalenInterimUtils2::PopulateChildFromParentL |
|
82 // ---------------------------------------------------------------------------- |
|
83 // |
|
84 EXPORT_C void CCalenInterimUtils2::PopulateChildFromParentL( |
|
85 CCalEntry& aChild, |
|
86 const CCalEntry& aParent ) |
|
87 { |
|
88 TRACE_ENTRY_POINT; |
|
89 |
|
90 CCalenInterimUtils2Impl::PopulateChildFromParentL(aChild, aParent); |
|
91 |
|
92 TRACE_EXIT_POINT; |
|
93 } |
|
94 |
|
95 // ---------------------------------------------------------------------------- |
|
96 // CCalenInterimUtils2::GlobalUidL |
|
97 // ---------------------------------------------------------------------------- |
|
98 // |
|
99 EXPORT_C HBufC8* CCalenInterimUtils2::GlobalUidL() |
|
100 { |
|
101 TRACE_ENTRY_POINT; |
|
102 TRACE_EXIT_POINT; |
|
103 return iImpl->GlobalUidL(); |
|
104 } |
|
105 |
|
106 // ----------------------------------------------------------------------------- |
|
107 // CCalenInterimUtils2::MRViewersEnabledL() |
|
108 // Checks to see if Meeting Request Viewer functionality |
|
109 // is enabled and an implementation is available to use |
|
110 // (other items were commented in a header). |
|
111 // ----------------------------------------------------------------------------- |
|
112 // |
|
113 EXPORT_C TBool CCalenInterimUtils2::MRViewersEnabledL(TBool aForceCheck) |
|
114 { |
|
115 TRACE_ENTRY_POINT; |
|
116 TRACE_EXIT_POINT; |
|
117 return iImpl->MRViewersEnabledL(aForceCheck); |
|
118 } |
|
119 |
|
120 // ----------------------------------------------------------------------------- |
|
121 // CCalenInterimUtils2::StoreL() |
|
122 // Public exported function. Checks to see if the given entry should be entered |
|
123 // using StoreL() or UpdateL(). |
|
124 // (other items were commented in a header). |
|
125 // ----------------------------------------------------------------------------- |
|
126 // |
|
127 EXPORT_C void CCalenInterimUtils2::StoreL( CCalEntryView& aEntryView, |
|
128 CCalEntry& aEntry, |
|
129 TBool aCopyToChildren ) |
|
130 { |
|
131 TRACE_ENTRY_POINT; |
|
132 |
|
133 CCalenInterimUtils2Impl::StoreL(aEntryView, aEntry, aCopyToChildren); |
|
134 |
|
135 TRACE_EXIT_POINT; |
|
136 } |
|
137 |
|
138 // ----------------------------------------------------------------------------- |
|
139 // CCalenInterimUtils2::IsMeetingRequestL() |
|
140 // Check to see if the given entry is a meeting request. |
|
141 // (other items were commented in a header). |
|
142 // ----------------------------------------------------------------------------- |
|
143 // |
|
144 EXPORT_C TBool CCalenInterimUtils2::IsMeetingRequestL( CCalEntry& aEntry ) |
|
145 { |
|
146 TRACE_ENTRY_POINT; |
|
147 TRACE_EXIT_POINT; |
|
148 return CCalenInterimUtils2Impl::IsMeetingRequestL(aEntry); |
|
149 } |
|
150 |
|
151 // End of file |