tacticonserver/server/inc/tacticonsession.h
changeset 0 d54f32e146dd
equal deleted inserted replaced
-1:000000000000 0:d54f32e146dd
       
     1 /*
       
     2 * Copyright (c) 2009 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: Tacticon server session implementation.
       
    15 * Part of    : Tacticon Server
       
    16 */
       
    17 
       
    18 #ifndef C_TACTICONSESSION_H
       
    19 #define C_TACTICONSESSION_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <e32base.h>
       
    23 
       
    24 //  FORWARD DECLARATIONS
       
    25 class CTacticonServer;
       
    26 
       
    27 /**
       
    28 *  A session class of Tacticon server.
       
    29 *
       
    30 *  @since S60 5.2
       
    31 */
       
    32 
       
    33 class CTacticonSession : public CSession2
       
    34     {
       
    35 public:
       
    36     /**
       
    37     * C++ constructor.
       
    38     */
       
    39     CTacticonSession();
       
    40     
       
    41     /**
       
    42      * Passes the request forward to DispatchMessageL. 
       
    43      * @param aMessage, a message from client.
       
    44      */
       
    45     void ServiceL( const RMessage2& aMessage );
       
    46     
       
    47     /**
       
    48      * Handles the request from client. 
       
    49      * @param aMessage, a message from client.
       
    50      */
       
    51     void DispatchMessageL( const RMessage2& aMessage );
       
    52     
       
    53     /**
       
    54      * Adds session to server's counter. 
       
    55      */
       
    56     void CreateL(); 
       
    57 
       
    58 private:
       
    59     /**
       
    60      * Sets tacticons enabled/disabled.
       
    61      */    
       
    62     void EnableTacticonsL( const RMessage2& aMessage );
       
    63         
       
    64     /**
       
    65      * Returns boolean value whether tacticons are enabled or disabled.
       
    66      */           
       
    67     void TacticonsEnabledL( const RMessage2& aMessage );
       
    68 
       
    69 private:
       
    70 
       
    71     /**
       
    72     * C++ destructor.
       
    73     */
       
    74     virtual ~CTacticonSession(); 
       
    75 
       
    76     /*
       
    77     * Reference to Tacticon Server. Ownership is not transferred.
       
    78     */
       
    79     CTacticonServer& Server();      
       
    80 
       
    81     };
       
    82 
       
    83 #endif // C_TACTICONSESSION_H
       
    84