mmsharing/mmshui/tsrc/ut_ui/inc/musuipropertyobserveradapter.h
branchRCL_3
changeset 33 bc78a40cd63c
parent 0 f0cf47e981f9
equal deleted inserted replaced
32:73a1feb507fb 33:bc78a40cd63c
       
     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:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __MUSUIPROPERTYOBSERVERADAPTER_H__
       
    19 #define __MUSUIPROPERTYOBSERVERADAPTER_H__
       
    20 
       
    21 #include "musuipropertyobserver.h"
       
    22 
       
    23 class CMusUiPropertyObserverAdapter : public CBase,
       
    24                                       public MMusUiPropertyObserver
       
    25 
       
    26     {
       
    27 
       
    28     public: // MMusUiPropertyObserver
       
    29 
       
    30         CMusUiPropertyObserverAdapter();
       
    31         ~CMusUiPropertyObserverAdapter();
       
    32 
       
    33         void ResourcePropertyChanged( const TUint aKey, const TInt aValue );
       
    34         void SessionPropertyChanged( const TUint aKey, const TInt aValue );
       
    35         void HandleError( const TInt aReason );
       
    36 
       
    37 
       
    38         enum TMusUiPropertyObserverFunction
       
    39             {
       
    40             ENone,                          // default value
       
    41             EResourcePropertyChanged,
       
    42             ESessionPropertyChanged,
       
    43             EHandleError
       
    44             };
       
    45 
       
    46 
       
    47         TMusUiPropertyObserverFunction iCalledObserver;
       
    48         TInt iErrorCode;
       
    49 
       
    50 
       
    51     };
       
    52 
       
    53 #endif