meetingrequest/mrgui/mrfieldbuilderpluginextension/inc/cesmrinputmodeobserver.h
changeset 0 8466d47a6819
child 16 4ce476e64c59
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c) 2002-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:  Input mode observer class definition
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CESMRINPUTMODEOBSERVER_H
       
    20 #define CESMRINPUTMODEOBSERVER_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>                // CTimer
       
    24 #include <cenrepnotifyhandler.h>    // MCenRepNotifyHandlerCallback
       
    25 
       
    26 // FORWARD DECLARATION
       
    27 class CESMRClsListsHandler;
       
    28 class CRepository;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33  * This class handles observing FEP events.
       
    34  */
       
    35 NONSHARABLE_CLASS( CESMRInputModeObserver ) : public CBase, public MCenRepNotifyHandlerCallback
       
    36     {
       
    37 public:
       
    38     /**
       
    39     * Destructor
       
    40     */
       
    41     virtual ~CESMRInputModeObserver();
       
    42 
       
    43     /**
       
    44     * CESMRInputModeObserver two phase construction
       
    45     * @param aCr reference to aknfepcenrep session
       
    46     * @param aListHandler reference to cls list handler
       
    47     * @return A pointer to the created object
       
    48     */
       
    49     static CESMRInputModeObserver* NewL( CRepository& aCr,
       
    50                                                 CESMRClsListsHandler& aListHandler );
       
    51 
       
    52 private://Implementation
       
    53     void HandleNotifyInt( TUint32 aId, TInt aNewValue );
       
    54     void HandleNotifyReal( TUint32 aId, TReal aNewValue );
       
    55     void HandleNotifyString( TUint32 aId, const TDesC16& aNewValue );
       
    56 
       
    57     void HandleNotifyBinary( TUint32 aId, const TDesC8& aNewValue );
       
    58     void HandleNotifyGeneric( TUint32 aId );
       
    59     void HandleNotifyError( TUint32 aId, TInt aError, CCenRepNotifyHandler* aHandler );
       
    60 
       
    61     /**
       
    62     * Constructor
       
    63     * @param aCr reference to aknfepcenrep session
       
    64     * @param aListHandler reference to cls list handler
       
    65     */
       
    66     CESMRInputModeObserver( CRepository& aCr, CESMRClsListsHandler& aListHandler );
       
    67 
       
    68     /**
       
    69     * Symbian 2nd phase constructor
       
    70     */
       
    71     void ConstructL();
       
    72 
       
    73 private://data
       
    74     // Handle to parrot server client side
       
    75     CRepository&                iAkvkFepCenRep;
       
    76     CCenRepNotifyHandler*       iCenRepNotifyWrapper;
       
    77 
       
    78     CESMRClsListsHandler&  iClsListHandler;
       
    79     };
       
    80 
       
    81 #endif // CESMRINPUTMODEOBSERVER_H
       
    82 
       
    83 // End of file
       
    84