mmsharing/mmshengine/inc/musengsession.h
branchRCL_3
changeset 11 ff8a573c0e2e
parent 0 f0cf47e981f9
child 21 ce86b6d44a6d
equal deleted inserted replaced
10:04980be5c5fe 11:ff8a573c0e2e
    19 #ifndef MUSENGSESSION_H
    19 #ifndef MUSENGSESSION_H
    20 #define MUSENGSESSION_H
    20 #define MUSENGSESSION_H
    21 
    21 
    22 // USER INCLUDES
    22 // USER INCLUDES
    23 #include "musunittesting.h"
    23 #include "musunittesting.h"
       
    24 #include "musengvolumechangeobserver.h"
    24 
    25 
    25 //SYSTEM INCLUDES
    26 //SYSTEM INCLUDES
    26 #include <e32base.h>
    27 #include <e32base.h>
    27 
    28 
    28 
    29 
    29 // FORWARD DECLARATIONS
    30 // FORWARD DECLARATIONS
    30 class CMusEngTelephoneUtils;
    31 class CMusEngTelephoneUtils;
    31 class CMusSipProfileHandler;
    32 class CMusSipProfileHandler;
    32 class CRepository;
    33 class CRepository;
    33 class MMusEngAudioRoutingObserver;
    34 class MMusEngAudioRoutingObserver;
       
    35 class MMusEngVolumeChangeObserver;
    34 
    36 
    35 // CLASS DECLARATION
    37 // CLASS DECLARATION
    36 
    38 
    37 /**
    39 /**
    38 * Base class for Multimedia Sharing Engine sessions, inherited by
    40 * Base class for Multimedia Sharing Engine sessions, inherited by
    41 * CMusEngSession encapsulates all common activities example using
    43 * CMusEngSession encapsulates all common activities example using
    42 * resources.
    44 * resources.
    43 *
    45 *
    44 * @lib musengine.lib
    46 * @lib musengine.lib
    45 */
    47 */
    46 class CMusEngSession : public CBase
    48 class CMusEngSession : public CBase,
       
    49                        public MMusEngVolumeChangeObserver
    47     {
    50     {
    48     MUS_UNITTEST( UT_CMusEngSession )
    51     MUS_UNITTEST( UT_CMusEngSession )
    49     
    52     
    50     public:
    53     public:
    51 
    54 
   114         * ending of observing changes in audio routing.
   117         * ending of observing changes in audio routing.
   115         */
   118         */
   116         IMPORT_C void SetAudioRoutingObserver( 
   119         IMPORT_C void SetAudioRoutingObserver( 
   117                                     MMusEngAudioRoutingObserver* aObserver );
   120                                     MMusEngAudioRoutingObserver* aObserver );
   118         
   121         
       
   122         /**
       
   123         * Sets volume level change observer. Can be set to NULL in order to indicate
       
   124         * ending of observing changes in volume level.
       
   125         */
       
   126         IMPORT_C void SetVolumeChangeObserver( 
       
   127                                     MMusEngVolumeChangeObserver* aObserver );
   119 
   128 
   120     public:  // VIRTUAL API FUNCTIONS
   129     public:  // VIRTUAL API FUNCTIONS
   121         
   130         
   122         /**
   131         /**
   123         * Increases volume level by one.
   132         * Increases volume level by one.
   157 	protected: // INTERNAL 
   166 	protected: // INTERNAL 
   158 
   167 
   159         virtual void RectChangedL() = 0;
   168         virtual void RectChangedL() = 0;
   160 
   169 
   161 
   170 
       
   171         //from MMusEngVolumeChangeObserver
       
   172         virtual void VolumeChanged( TInt aVolume, TBool aAudioRouteChanged );
       
   173         
   162     protected:
   174     protected:
   163 
   175 
   164         /**
   176         /**
   165         * Constructor, private cannot be instantiate
   177         * Constructor, private cannot be instantiate
   166         *
   178         *
   187 
   199 
   188         /**
   200         /**
   189         * Telephone utilities.
   201         * Telephone utilities.
   190         */
   202         */
   191         CMusEngTelephoneUtils* iTelephoneUtils;
   203         CMusEngTelephoneUtils* iTelephoneUtils;
       
   204         
       
   205         /**
       
   206         * Volume change observer
       
   207         */
       
   208         MMusEngVolumeChangeObserver* iVolumeObserver;
   192 
   209 
   193     };
   210     };
   194 
   211 
   195 #endif //MUSENGSESSION_H
   212 #endif //MUSENGSESSION_H