bluetoothengine/bthid/manager/inc/session.h
changeset 0 f63038272f30
equal deleted inserted replaced
-1:000000000000 0:f63038272f30
       
     1 /*
       
     2 * Copyright (c) 2008 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:  Declares main application class.
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __SESSION_H
       
    20 #define __SESSION_H
       
    21 
       
    22 #include <e32std.h>
       
    23 #include <e32base.h>
       
    24 
       
    25 // ----------------------------------------------------------------------
       
    26 
       
    27 class CKeyboardDecoder;
       
    28 class CLayoutLibrary;
       
    29 class CLayoutServer;
       
    30 
       
    31 class CLayoutSession : public CSession2
       
    32 
       
    33     {
       
    34 public:
       
    35     static CLayoutSession* NewL();
       
    36     static CLayoutSession* NewLC();
       
    37 
       
    38     virtual ~CLayoutSession();
       
    39 
       
    40     // from CSession:
       
    41     virtual void ServiceL(const RMESSAGE& aMessage);
       
    42 
       
    43     void SetLayout(CLayoutLibrary* aLayoutLibrary);
       
    44 
       
    45 private:
       
    46     CLayoutSession();
       
    47     void ConstructL();
       
    48 
       
    49     void DispatchMessageL(const RMESSAGE& aMessage);
       
    50 
       
    51     // hides base class version (not virtual):
       
    52     CLayoutServer* Server();
       
    53 
       
    54 private:
       
    55     CKeyboardDecoder* iDecoder; // ownership
       
    56     CLayoutLibrary* iLayoutLibrary; // no ownership
       
    57     };
       
    58 
       
    59 // ----------------------------------------------------------------------
       
    60 
       
    61 #endif
       
    62