bluetoothengine/bthid/manager/inc/library.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 __LAYOUTLIBRARY_H
       
    20 #define __LAYOUTLIBRARY_H
       
    21 
       
    22 #include <e32std.h>
       
    23 
       
    24 // ----------------------------------------------------------------------
       
    25 
       
    26 class CKeyboardLayout;
       
    27 
       
    28 class CLayoutLibrary : public CBase
       
    29     {
       
    30 public:
       
    31     static CLayoutLibrary* NewL();
       
    32 
       
    33     virtual ~CLayoutLibrary();
       
    34 
       
    35     TInt SetLayout(TInt aLayoutId);
       
    36 
       
    37     inline TInt Id() const;
       
    38     inline TBool Loaded() const;
       
    39     inline CKeyboardLayout* Layout();
       
    40 
       
    41     void Close();
       
    42 
       
    43 private:
       
    44     CLayoutLibrary();
       
    45 
       
    46 private:
       
    47     // data
       
    48 
       
    49     static const TUid KLayoutUid2;
       
    50     TInt iId;
       
    51     TBool iLoaded;
       
    52     CKeyboardLayout* iLayout;
       
    53 
       
    54     };
       
    55 
       
    56 // ----------------------------------------------------------------------
       
    57 
       
    58 inline TInt CLayoutLibrary::Id() const
       
    59     {
       
    60     return iId;
       
    61     }
       
    62 
       
    63 inline TInt CLayoutLibrary::Loaded() const
       
    64     {
       
    65     return iLoaded;
       
    66     }
       
    67 
       
    68 inline CKeyboardLayout* CLayoutLibrary::Layout()
       
    69     {
       
    70     return iLayout;
       
    71     }
       
    72 
       
    73 // ----------------------------------------------------------------------
       
    74 
       
    75 #endif
       
    76 
       
    77 // End of file
       
    78 
       
    79