PECengine/StorageManager2/ClientInc/MPEngSIDChangeObserver.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2002 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:  Intended to be implemented by the observer
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __MPENGSIDCHANGEOBSERVER_H__
       
    21 #define __MPENGSIDCHANGEOBSERVER_H__
       
    22 
       
    23 //  INCLUDES
       
    24 
       
    25 #include <e32def.h>
       
    26 #include <badesca.h>
       
    27 
       
    28 /**
       
    29  *  Storage Id change observer abstract call back interface
       
    30  *	This class is intended to be implemented by the storage id change
       
    31  *	observer.
       
    32  *	Changed of the storage Ids are notified through it.
       
    33  *
       
    34  *  @lib PEngStoreMan2.dll
       
    35  *  @since 3.0
       
    36  */
       
    37 
       
    38 // CLASS DECLARATION
       
    39 class MPEngSIDChangeObserver
       
    40     {
       
    41     public: // New functions
       
    42 
       
    43         /**
       
    44          *	Handle change of the Storage IDs
       
    45          *	Changed storage IDs are passed in the array,
       
    46          *	client can modify passed array as he wishes
       
    47          *
       
    48          *	@since 3.0
       
    49          *	@param aChangedSIDs array of the changed SIDs
       
    50          *				array can be modified by the client
       
    51          */
       
    52         virtual void HandleSIDsChangeL( CPtrCArray& aChangedSIDs ) = 0 ;
       
    53 
       
    54         /**
       
    55          *	Called when SIDs notifier fails
       
    56          *
       
    57          *	@since 3.0
       
    58          *	@param aError is the error code.
       
    59          */
       
    60         virtual void HandleSIDNotifyError( TInt aError ) = 0;
       
    61 
       
    62     protected:  //Destructor
       
    63 
       
    64         /**
       
    65          * Protected destructor.
       
    66          * Storage Id change observer can't be destroyed via this interface.
       
    67          */
       
    68         virtual ~MPEngSIDChangeObserver() {}
       
    69 
       
    70     };
       
    71 
       
    72 #endif      // __MPENGSIDCHANGEOBSERVER_H__
       
    73 
       
    74 // End of File