accessoryservices/pluggeddisplay/pluggeddisplayengine/inc/centralrepositoryobserver.h
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 /*
       
     2 * Copyright (c) 2009 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: Callback interface for observer of CCentralRepositoryWatch object.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef M_CENTRALREPOSITORYOBSERVER_H
       
    22 #define M_CENTRALREPOSITORYOBSERVER_H
       
    23 
       
    24 
       
    25 #include <e32def.h>
       
    26 #include <e32cmn.h>
       
    27 
       
    28 
       
    29 /**
       
    30  *  Callback interface for observer of CCentralRepositoryWatch object. 
       
    31  *  This callback interface has to be implemented by observer class.
       
    32  *
       
    33  *  @code
       
    34  *   ?good_class_usage_example(s)
       
    35  *  @endcode
       
    36  *
       
    37  *  @lib none.
       
    38  *  @since TB 9.2
       
    39  */
       
    40 NONSHARABLE_CLASS( MCentralRepositoryObserver )
       
    41     {
       
    42 
       
    43 public:
       
    44  
       
    45     /**
       
    46      * Function is called by watcher every time when key value has changed
       
    47      * in CR.
       
    48      *
       
    49      *  @since TB 9.2
       
    50      * @param aRepositoryId Changed repository. 
       
    51      * @param aRepositoryId Changed key. 
       
    52      * @return none
       
    53      */
       
    54     virtual void CentRepKeyChanged(
       
    55             TUid    aRepositoryId,
       
    56             TUint32 aId ) = 0;
       
    57 
       
    58     /**
       
    59      * Function is called by property watcher when reading the integer property's
       
    60      * current value fails.
       
    61      *
       
    62      *  @since TB 9.2
       
    63      * @param aRepositoryId Changed repository. 
       
    64      * @param aRepositoryId Changed key. 
       
    65      * @param aError Error code:
       
    66      *      KErrAbort if in a transaction that has previously failed, 
       
    67      *      KErrPermissionDenied if caller fails capability check, 
       
    68      *      KErrNotFound if the setting does not exist, 
       
    69      *      KErrArgument if the setting exists but is not an integer, plus other system-wide error codes. 
       
    70      * . 
       
    71      * @return none
       
    72      */
       
    73     virtual void CentRepGetKeyValueFailed( 
       
    74             TUid    aRepositoryId,
       
    75             TUint32 aId,
       
    76             TInt aError ) = 0;
       
    77 
       
    78     };
       
    79 
       
    80 
       
    81 #endif // M_CENTRALREPOSITORYOBSERVER_H
       
    82