47 // CPIMEventListAdapter::ConstructL |
47 // CPIMEventListAdapter::ConstructL |
48 // Symbian 2nd phase constructor can leave. |
48 // Symbian 2nd phase constructor can leave. |
49 // ----------------------------------------------------------------------------- |
49 // ----------------------------------------------------------------------------- |
50 // |
50 // |
51 void CPIMEventListAdapter::ConstructL(CCalEntry::TType aEntryType, |
51 void CPIMEventListAdapter::ConstructL(CCalEntry::TType aEntryType, |
52 CPIMAgnEventAdapter* aEventAdapter) |
52 |
53 { |
53 CPIMAgnEventAdapter* aEventAdapter, |
54 JELOG2(EPim); |
54 TInt aCalSessionInt) |
55 CPIMAgnListAdapter::ConstructL(MCalChangeCallBack::EChangeEntryEvent); |
55 { |
|
56 JELOG2(EPim); |
|
57 CCalSession* calSession = reinterpret_cast <CCalSession*>(aCalSessionInt); |
|
58 CPIMAgnListAdapter::ConstructL(MCalChangeCallBack::EChangeEntryEvent, calSession); |
56 iEntryType = aEntryType; |
59 iEntryType = aEntryType; |
57 iAgnAdapter = aEventAdapter; |
60 iAgnAdapter = aEventAdapter; |
58 } |
61 } |
59 |
62 |
60 // ----------------------------------------------------------------------------- |
63 // ----------------------------------------------------------------------------- |
61 // CPIMEventListAdapter::NewL |
64 // CPIMEventListAdapter::NewL |
62 // Two-phased constructor. |
65 // Two-phased constructor. |
63 // ----------------------------------------------------------------------------- |
66 // ----------------------------------------------------------------------------- |
64 // |
67 // |
65 CPIMEventListAdapter* CPIMEventListAdapter::NewL(CCalEntry::TType aEntryType, |
68 CPIMEventListAdapter* CPIMEventListAdapter::NewL(CCalEntry::TType aEntryType, |
66 CPIMAgnEventAdapter* aEventAdapter, java::util::FunctionServer* aFuncServer) |
69 CPIMAgnEventAdapter* aEventAdapter, |
|
70 java::util::FunctionServer* aFuncServer, CCalSession *aCalSession |
|
71 ) |
67 { |
72 { |
68 JELOG2(EPim); |
73 JELOG2(EPim); |
69 CPIMEventListAdapter* self = new(ELeave) CPIMEventListAdapter(aFuncServer); |
74 CPIMEventListAdapter* self = new(ELeave) CPIMEventListAdapter(aFuncServer); |
70 CleanupStack::PushL(self); |
75 CleanupStack::PushL(self); |
|
76 TInt calSessionInt = reinterpret_cast <TInt>(aCalSession); |
71 CallMethodL(self, &CPIMEventListAdapter::ConstructL, aEntryType, |
77 CallMethodL(self, &CPIMEventListAdapter::ConstructL, aEntryType, |
72 aEventAdapter, self->iFuncServer); |
78 aEventAdapter, calSessionInt,self->iFuncServer); |
|
79 |
73 CleanupStack::Pop(self); |
80 CleanupStack::Pop(self); |
74 return self; |
81 return self; |
75 } |
82 } |
76 |
83 |
77 // Destructor |
84 // Destructor |