uiservicetab/vimpstcmdprocess/inc/cvimpstcmdhandler.h
branchRCL_3
changeset 22 3104fc151679
parent 21 2b7283837edb
child 23 9a48e301e94b
equal deleted inserted replaced
21:2b7283837edb 22:3104fc151679
     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:  IM command handler
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CVIMPSTCMDHANDLER_H
       
    20 #define CVIMPSTCMDHANDLER_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 #include "mvimpstcmdhandler.h"
       
    25 
       
    26 // FORWARDS
       
    27 class MVIMPSTCmdFactory;
       
    28 class MVIMPSTEngine;
       
    29 
       
    30 //  CLASS DECLARATION
       
    31 
       
    32 /**
       
    33  * IM command handler.
       
    34  * Responsible for handling all IM commands 
       
    35  *  @lib vimpstcmdprocess.dll
       
    36  *  @since 5.0
       
    37  */
       
    38 class CVIMPSTCmdHandler : public CBase,
       
    39                             public MVIMPSTCmdHandler
       
    40     {
       
    41     public: // Construction and destruction
       
    42 
       
    43         /**
       
    44          * Creates a new instance of this class.
       
    45          * @param aEngine, reference to engine.
       
    46          * @return  A new instance of this class.
       
    47          */
       
    48         IMPORT_C static CVIMPSTCmdHandler* NewL(MVIMPSTEngine& aEngine);
       
    49 
       
    50         /**
       
    51          * Destructor.
       
    52          */
       
    53         ~CVIMPSTCmdHandler();
       
    54 
       
    55     public: // From MVIMPSTCmdHandler
       
    56         
       
    57         /**
       
    58          * see MVIMPSTCmdHandler
       
    59          */
       
    60         TBool HandleCommandL(
       
    61                 const TImCommandId aCommandId, MVIMPSTCmdObserver* aObserver,
       
    62                 TAny* aData );
       
    63         
       
    64         /**
       
    65          * see MVIMPSTCmdHandler
       
    66          */
       
    67         void RegisterEventObserverL( MVIMPSTCmdObserver* aObserver ) ;
       
    68         
       
    69         /**
       
    70          * see MVIMPSTCmdHandler
       
    71          */
       
    72         void UnRegisterEventObserver( MVIMPSTCmdObserver* aObserver ) ;
       
    73         
       
    74         /**
       
    75          * see MVIMPSTCmdHandler
       
    76          */
       
    77         MVIMPSTProcessArray& GetProcessInterface() ;
       
    78         
       
    79     private: // Implementation
       
    80        /**
       
    81         * symbian default constructor
       
    82         */
       
    83         CVIMPSTCmdHandler();
       
    84        /**
       
    85         * second phase constructor
       
    86         */
       
    87         void ConstructL(MVIMPSTEngine& aEngine);
       
    88         
       
    89 
       
    90     private: // Data
       
    91         /// Own: Command factory
       
    92         MVIMPSTCmdFactory* iCommandFactory;        
       
    93     };
       
    94 
       
    95 #endif // CVIMPSTCMDHANDLER_H
       
    96 
       
    97 // End of File