equal
deleted
inserted
replaced
|
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 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 //debug |
|
21 #include "calendarui_debug.h" |
|
22 |
|
23 #include "CalSvrInitializer.h" |
|
24 |
|
25 |
|
26 CCalSvrInitializer::CCalSvrInitializer(RCalSvrSession& aSession) |
|
27 :CActive( 0 ), iSession( aSession ) |
|
28 { |
|
29 CActiveScheduler::Add( this ); |
|
30 } |
|
31 |
|
32 CCalSvrInitializer::~CCalSvrInitializer() |
|
33 { |
|
34 Cancel(); |
|
35 } |
|
36 |
|
37 void CCalSvrInitializer::Initialize(MCalSvrAgendaUpdateListener* aHandler) |
|
38 { |
|
39 __ASSERT_ALWAYS(!IsActive(), User::Panic(_L("CCalSvrInitializer::Initialize"), 1)); |
|
40 iHandler = aHandler; |
|
41 iSession.Initialize(iStatus); |
|
42 SetActive(); |
|
43 } |
|
44 |
|
45 void CCalSvrInitializer::RunL() |
|
46 { |
|
47 if(iStatus != KErrCancel) |
|
48 { |
|
49 iHandler->CalendarServerInitialized(); |
|
50 } |
|
51 } |
|
52 |
|
53 void CCalSvrInitializer::DoCancel() |
|
54 { |
|
55 iSession.CancelInitialize(); |
|
56 } |
|
57 |
|
58 // EOF |