uifw/inc/akncompaif.h
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 /*
       
     2 * Copyright (c) 2007 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:  Compa-mode interface (client) declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __AKNCOMPAIF_H__
       
    20 #define __AKNCOMPAIF_H__
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <coemop.h>
       
    24 
       
    25 class CCoeEnv;
       
    26 class CAknAppUiBase;
       
    27 class CAknCompaKb;
       
    28 class CRepository;
       
    29 
       
    30 /**
       
    31  * Compa-mode ECOM interface
       
    32  *
       
    33  * The component is used by CAknAppUiBase to set screen mode
       
    34  * and create compa keyboard
       
    35  *
       
    36  * @lib compamode.lib
       
    37  * @since S60 v5.0
       
    38  */
       
    39 class CAknCompaIf : public CBase
       
    40     {
       
    41 public: // constants
       
    42     DECLARE_TYPE_ID(0x20010125) // AKNCOMPAIF_ECOM_IF_UID
       
    43 
       
    44 public: // constructors and destructor
       
    45 
       
    46     static CAknCompaIf* NewL();
       
    47 
       
    48     ~CAknCompaIf();
       
    49 
       
    50 public: // functions
       
    51 
       
    52     static TBool IsNeeded(TInt aAppUiFlags, CRepository* aRepository);
       
    53 
       
    54     virtual TInt SetCompaAppScreenModeL(TBool& aScrModeChanged,
       
    55         TBool& aIsConsoleApp, TInt aAppUiFlags, CAknAppUiBase& aAppUi,
       
    56         const CCoeEnv& aCoeEnv, CRepository& aRepository) = 0 ;
       
    57 
       
    58     virtual void CreateKbL(TInt aCompaScreenMode, TBool aMakeVisible) = 0;
       
    59 
       
    60     virtual TBool IsForeground() = 0;
       
    61 
       
    62     virtual TInt FindCompaScreenMode() = 0;
       
    63 
       
    64     virtual void DisableTransEffects(TBool aDisable) = 0;
       
    65 
       
    66 private: // data
       
    67     TUid iEcomDtorId;
       
    68     };
       
    69 
       
    70 #include "akncompaif.inl"
       
    71 
       
    72 #endif // __AKNCOMPAIF_H__