presetserver/serverinc/pspresetobserver.h
changeset 0 09774dfdd46b
equal deleted inserted replaced
-1:000000000000 0:09774dfdd46b
       
     1 /*
       
     2 * Copyright (c) 2006-2006 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:  Observer interface to notify of preset changes
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef M_MPSPRESETOBSERVER_H
       
    20 #define M_MPSPRESETOBSERVER_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 /**
       
    25  * Observer interface to notify of preset changes.
       
    26  */
       
    27 class MPSPresetObserver
       
    28     {
       
    29 
       
    30 public:
       
    31 
       
    32     /**
       
    33      * Possible reasons indicating why the preset was changed.
       
    34      */
       
    35     enum TPSReason
       
    36         {
       
    37 
       
    38         /**
       
    39          * The preset was created.
       
    40          */
       
    41         EPSCreated,
       
    42 
       
    43         /**
       
    44          * The preset was deleted.
       
    45          */
       
    46         EPSDeleted,
       
    47 
       
    48         /**
       
    49          * The preset was modified.
       
    50          */
       
    51         EPSModified
       
    52 
       
    53         };
       
    54 
       
    55 public:
       
    56 
       
    57     /**
       
    58      * Invoked when a preset has been changed.
       
    59      *
       
    60      * @param   aId             Id of the preset that was changed.
       
    61      * @param   aDataHandler    Data handler of the preset that was changed.
       
    62      * @param   aType           Reason for the change.
       
    63      */
       
    64     virtual void HandlePresetChangedL( TInt aId, TUid aDataHandler, MPSPresetObserver::TPSReason aType ) = 0;
       
    65 
       
    66     };
       
    67 
       
    68 #endif // M_MPSPRESETOBSERVER_H
       
    69