IMPSengine/client/inc/impsimhandler.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2002-2005 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: 
       
    15 *     WV interface observer handler.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CImpsImHandler_H
       
    21 #define CImpsImHandler_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 #include "impshandler.h"
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class RImpsImClient2;
       
    29 class MImpsImHandler2;
       
    30 class CImpsDataAccessor;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 class CImpsImHandler2 :public CImpsHandler2
       
    35     {
       
    36     public:  // Constructors and destructor
       
    37 
       
    38       
       
    39         /**
       
    40         * Two-phase constructor.
       
    41         * @param aClient a client session
       
    42         * @param aPriority active object priority
       
    43         */
       
    44         static CImpsImHandler2* NewL( 
       
    45             RImpsImClient2& aClient,
       
    46             TInt aPriority );
       
    47        
       
    48         /**
       
    49         * Destructor.
       
    50         */
       
    51         virtual ~CImpsImHandler2();
       
    52 
       
    53     protected:
       
    54         /**
       
    55         * By default constructor is private.
       
    56         */
       
    57         void ConstructL();
       
    58 
       
    59     private:
       
    60 
       
    61         /**
       
    62         * C++ default constructor. 
       
    63         * @param aPriority active object priority
       
    64         * @param aClient Im Client
       
    65         */
       
    66         CImpsImHandler2( TInt aPriority, RImpsImClient2& aClient );
       
    67 
       
    68         /**
       
    69         * Call appropriate observer
       
    70         * @param aErrorFields used if error case. NULL or ImpsFields structure
       
    71         */
       
    72         void HandleEventL( CImpsFields* aErrorFields );
       
    73 
       
    74         /**
       
    75         * Handle the Im events
       
    76         */
       
    77         void HandleImEventL( );
       
    78 
       
    79         // By default, prohibit copy constructor
       
    80         CImpsImHandler2( const CImpsImHandler2& );
       
    81         // Prohibit assigment operator
       
    82         CImpsImHandler2& operator= ( const CImpsImHandler2& );
       
    83 
       
    84     private:    // Data
       
    85 
       
    86         MImpsImHandler2*     iHandlerCallBack;
       
    87 
       
    88     };
       
    89 
       
    90 #endif      // CImpsImHandler_H  
       
    91 
       
    92             
       
    93 // End of File