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