calendarui/server/CalenSvr/inc/CalSvrSession.h
changeset 0 f979ecb2b13e
child 5 42814f902fe6
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     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:   This class represents as calendar session for a client thread on the server-side. 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CALSVRSESSION_H
       
    21 #define CALSVRSESSION_H
       
    22 
       
    23 // INCLUDES
       
    24 #include "CalenSvrDBManager.h"
       
    25 
       
    26 #include <e32base.h>
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class CCalenServer;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 NONSHARABLE_CLASS( CCalSvrSession ) : public CSession2, 
       
    33                                       public CCalenSvrDBManager::MCalenDBUser
       
    34     {
       
    35 public:
       
    36     // construct/destruct
       
    37     CCalSvrSession();
       
    38     void ConstructL(CCalenServer& aServer);
       
    39     ~CCalSvrSession();
       
    40 
       
    41     // service dispatcher - from CSession
       
    42     void ServiceL(const RMessage2& aMessage);
       
    43 
       
    44 public: // From MCalenEngineOpenCallback
       
    45     void DatabaseOpened();
       
    46     void DatabaseTemporarilyClosed();
       
    47 
       
    48 private:
       
    49     CCalenServer* Server() const;
       
    50 
       
    51     void InitializeL(const RMessage2& aMessage);
       
    52     void CancelInitializeL();
       
    53     void UninitializeL();
       
    54     void HandleInitReady();
       
    55     void DoDestructL();
       
    56 
       
    57 private:
       
    58 
       
    59     RMessage2 iInitMessage;
       
    60     TBool iInitActive;
       
    61 
       
    62     TBool iRegistered;
       
    63 
       
    64     };
       
    65 
       
    66 #endif // CALSVRSESSION_H
       
    67 
       
    68 
       
    69 // End of File