calendarui/inc/calsvrclient.h
branchRCL_3
changeset 65 12af337248b1
equal deleted inserted replaced
60:96907930389d 65:12af337248b1
       
     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 client session part for calendar server.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CALSVRCLIENT_H
       
    21 #define CALSVRCLIENT_H
       
    22 
       
    23 #include <e32std.h>
       
    24 
       
    25 class CCalSvrInitializer;
       
    26 
       
    27 
       
    28 NONSHARABLE_CLASS( MCalSvrAgendaUpdateListener )
       
    29     {
       
    30 public:
       
    31     virtual void CalendarServerInitialized() = 0;
       
    32     };
       
    33 
       
    34 NONSHARABLE_CLASS( RCalSvrSession ) : public RSessionBase
       
    35     {
       
    36 public:
       
    37     // construct
       
    38     IMPORT_C RCalSvrSession();
       
    39 
       
    40     // open/close
       
    41     IMPORT_C void ConnectL();
       
    42     IMPORT_C void Close();
       
    43 
       
    44     // protocol for Notifier 
       
    45 
       
    46     // protocol for Listeners
       
    47 
       
    48     IMPORT_C void Initialize(MCalSvrAgendaUpdateListener& aListener);
       
    49     IMPORT_C void StopInitialization();
       
    50     IMPORT_C void Uninitialize();
       
    51 
       
    52 private:
       
    53     void Receive(TRequestStatus& aStatus);
       
    54     void CancelReceive();
       
    55 
       
    56     void Initialize(TRequestStatus& aStatus);
       
    57     void CancelInitialize();
       
    58 
       
    59 private:
       
    60     MCalSvrAgendaUpdateListener* iListenerCallback;
       
    61 
       
    62     friend class CCalSvrInitializer;
       
    63     CCalSvrInitializer* iInitializer;
       
    64 
       
    65     };
       
    66 
       
    67 
       
    68 #endif // CALSVRCLIENT_H
       
    69 
       
    70 
       
    71 // End of File