keepalive/flextimer/test/testflextimer/flextimerservermonitor/inc/flextimerservermonitorsession.h
branchRCL_3
changeset 58 83ca720e2b9a
parent 57 05bc53fe583b
child 62 bb1f80fb7db2
equal deleted inserted replaced
57:05bc53fe583b 58:83ca720e2b9a
     1 /*
       
     2  * Copyright (c) 2010 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  *      Session implementation for FlexTimerServerMonitor server
       
    16  */
       
    17 /*
       
    18  * %version: 1 %
       
    19  */
       
    20 // Protection against nested includes
       
    21 #ifndef FLEXTIMERSERVERMONITORSESSION_H
       
    22 #define FLEXTIMERSERVERMONITORSESSION_H
       
    23 
       
    24 // System includes
       
    25 #include <e32base.h>
       
    26 
       
    27 // Forward declarations
       
    28 class RFlexTimer;
       
    29 
       
    30 // Class declaration
       
    31 /**
       
    32  * Session for FlexTimerServerMonitor server.
       
    33  * Just receives requests from client and calls server's interface.
       
    34  */
       
    35 class CFlexTimerServerMonitorSession : public CSession2
       
    36     {
       
    37 
       
    38 public:
       
    39 
       
    40     /**
       
    41      * Two phase constructor
       
    42      */
       
    43     static CFlexTimerServerMonitorSession* NewL();
       
    44 
       
    45     /**
       
    46      * Destructor
       
    47      */
       
    48     virtual ~CFlexTimerServerMonitorSession();
       
    49 
       
    50     /**
       
    51      * From CSession2
       
    52      * Message handler servicing client requests. Interprets message type and
       
    53      * passes it to correct function for processing.
       
    54      * 
       
    55      * @param aMessage Message from client
       
    56      */
       
    57     void ServiceL( const RMessage2& aMessage );
       
    58 
       
    59 private:
       
    60 
       
    61     /**
       
    62      * Constructor
       
    63      */
       
    64     CFlexTimerServerMonitorSession();
       
    65 
       
    66     /**
       
    67      * 2nd phase constructor
       
    68      */
       
    69     void ConstructL();
       
    70 
       
    71 private: // Data
       
    72 
       
    73     };
       
    74 
       
    75 #endif /* FLEXTIMERSERVERMONITORSESSION_H */