IMPSengine/client/inc/impsgrouphandler.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 engine group API notification handler.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef ImpsGroupHandler_H
       
    21 #define ImpsGroupHandler_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 #include "impshandler.h"
       
    26 
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class RImpsGroupClient2;
       
    30 class MImpsGroupHandler2;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 class CImpsGroupHandler2 :public CImpsHandler2
       
    35     {
       
    36     public:  // Constructors and destructor
       
    37        
       
    38         /**
       
    39         * Two-phase constructor.
       
    40         * @param aClient a client session
       
    41         * @param aPriority Handler priority
       
    42         */
       
    43         static CImpsGroupHandler2* NewL( 
       
    44             RImpsGroupClient2& aClient,
       
    45             TInt aPriority = EPriorityStandard );
       
    46        
       
    47         /**
       
    48         * Destructor.
       
    49         */
       
    50         virtual ~CImpsGroupHandler2();
       
    51 
       
    52     private:
       
    53 
       
    54         /**
       
    55         * Call appropriate observer
       
    56         * @param aErrorFields used if error case. NULL or ImpsFields structure
       
    57         */
       
    58         void HandleEventL( CImpsFields* aErrorFields );
       
    59 
       
    60         /**
       
    61         * Handle the Group events
       
    62         */
       
    63         void HandleGroupEventL( );
       
    64 
       
    65         /**
       
    66         * C++ default constructor.
       
    67         * @param aClient a client session
       
    68         * @param aPriority Handler priority
       
    69         */
       
    70         CImpsGroupHandler2( TInt aPriority, RImpsGroupClient2& aClient );
       
    71 
       
    72         // By default, prohibit copy constructor
       
    73         CImpsGroupHandler2( const CImpsGroupHandler2& );
       
    74         // Prohibit assigment operator
       
    75         CImpsGroupHandler2& operator= ( const CImpsGroupHandler2& );
       
    76 
       
    77 
       
    78     private:    // Data
       
    79 
       
    80         MImpsGroupHandler2*      iHandlerCallBack;
       
    81 
       
    82     };
       
    83 
       
    84 #endif      // ImpsGroupHandler_H
       
    85             
       
    86 // End of File