calendarui/server/CalenSvrClient/inc/CalSvrInitializer.h
branchRCL_3
changeset 30 bd7edf625bdd
parent 0 f979ecb2b13e
equal deleted inserted replaced
29:12af337248b1 30:bd7edf625bdd
       
     1 /*
       
     2 * Copyright (c) 2002-2004 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:   Implements server initiallizer class provides asynchronous service handler in client-side.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CALSVRINITIALIZER_H
       
    21 #define CALSVRINITIALIZER_H
       
    22 
       
    23 #include "CalSvrClient.h"
       
    24 #include <e32base.h>
       
    25 
       
    26 
       
    27 ///////////////////////////////
       
    28 // This is asynchronous service handler in client-side
       
    29 // It hides active object from interface user. Interface
       
    30 // user just provides callback (MCalSvrAgendaUpdateListener)
       
    31 ///////////////////////////////
       
    32 
       
    33 NONSHARABLE_CLASS( CCalSvrInitializer ) : public CActive
       
    34     {
       
    35 public:
       
    36 
       
    37 		CCalSvrInitializer(RCalSvrSession& aSession);
       
    38 		virtual ~CCalSvrInitializer();
       
    39 		void Initialize(MCalSvrAgendaUpdateListener* aHandler);	
       
    40 
       
    41 private:
       
    42 		void RunL();
       
    43 		void DoCancel();
       
    44 		
       
    45 private:
       
    46     RCalSvrSession& iSession;
       
    47     MCalSvrAgendaUpdateListener* iHandler;
       
    48 
       
    49     };
       
    50 
       
    51 #endif // CALSVRINITIALIZER_H
       
    52 // End of File