devsoundextensions/globalaudiosettings/inc/GlobalAudioSettingsImpl.h
changeset 46 ed4308a6c628
parent 43 98aa3ecc14d2
equal deleted inserted replaced
45:5accba95f577 46:ed4308a6c628
    40 class CRingingTypeObserverAO;
    40 class CRingingTypeObserverAO;
    41 class CVideoCallToneObserverAO;
    41 class CVideoCallToneObserverAO;
    42 class CRingingTone1ObserverAO;
    42 class CRingingTone1ObserverAO;
    43 class CRingingTone2ObserverAO;
    43 class CRingingTone2ObserverAO;
    44 class CKeypadToneObserverAO;
    44 class CKeypadToneObserverAO;
    45 
    45 class CSilenceModeObserverAO;
    46 /**
    46 /**
    47 *  Defines functions that client uses to set phone profile settings.
    47 *  Defines functions that client uses to set phone profile settings.
    48 *
    48 *
    49 *  @lib GlobalAudioSettings.lib
    49 *  @lib GlobalAudioSettings.lib
    50 *  @since Series 60 3.2
    50 *  @since Series 60 3.2
   249         * 
   249         * 
   250         * @return TGASKeypadVolume aKeypadToneVolume.returns EGASKeypadVolumeOff sound is off,else selected volume level 
   250         * @return TGASKeypadVolume aKeypadToneVolume.returns EGASKeypadVolumeOff sound is off,else selected volume level 
   251         * is returned
   251         * is returned
   252         */
   252         */
   253          CGlobalAudioSettings::TGASKeypadVolume KeyPadToneVolume();
   253          CGlobalAudioSettings::TGASKeypadVolume KeyPadToneVolume();
   254 
   254          /**
       
   255          * Returns silent mode status.
       
   256          *
       
   257          * 
       
   258          * @return TBool aEnable. ETrue if the silent mode is enabled else EFalse.
       
   259          */
       
   260          TBool IsSilenceModeEnabled();
   255         /**
   261         /**
   256         * Registers audio clients list observer.
   262         * Registers audio clients list observer.
   257         *
   263         *
   258         * When registered successfully, the observer will start receiveing
   264         * When registered successfully, the observer will start receiveing
   259         * callback defined in MAudioClientsListObserver when audio clients list
   265         * callback defined in MAudioClientsListObserver when audio clients list
   335         CRingingTypeObserverAO* iRingingTypeObserverAO;
   341         CRingingTypeObserverAO* iRingingTypeObserverAO;
   336         CVideoCallToneObserverAO* iVideoCallObserverAO;
   342         CVideoCallToneObserverAO* iVideoCallObserverAO;
   337         CRingingTone1ObserverAO* iRingingTone1ObserverAO;
   343         CRingingTone1ObserverAO* iRingingTone1ObserverAO;
   338         CRingingTone2ObserverAO* iRingingTone2ObserverAO;
   344         CRingingTone2ObserverAO* iRingingTone2ObserverAO;
   339         CKeypadToneObserverAO* iKeypadToneObserverAO;
   345         CKeypadToneObserverAO* iKeypadToneObserverAO;
       
   346         CSilenceModeObserverAO* iSilenceModeObserverAO;
   340     };
   347     };
   341 
   348 
   342 
   349 
   343 NONSHARABLE_CLASS(CWarningTonesObserverAO) : public CActive
   350 NONSHARABLE_CLASS(CWarningTonesObserverAO) : public CActive
   344 	{
   351 	{
   646     CGlobalAudioSettings& iGlobalAudioSettings;
   653     CGlobalAudioSettings& iGlobalAudioSettings;
   647     MAudioSettingsObserver&   iAudioSettingsObserver;
   654     MAudioSettingsObserver&   iAudioSettingsObserver;
   648     RProperty iKeypadToneVolumeProperty;
   655     RProperty iKeypadToneVolumeProperty;
   649     TGlobalAudioSettings& iGlobalAudioSettingsData;
   656     TGlobalAudioSettings& iGlobalAudioSettingsData;
   650     };
   657     };
       
   658 
       
   659 NONSHARABLE_CLASS(CSilenceModeObserverAO) : public CActive
       
   660     {
       
   661 public:
       
   662     // Ist Phase constr and Destr
       
   663     static CSilenceModeObserverAO* NewL(CGlobalAudioSettings &aGlobalAudioSettings,
       
   664                                          MAudioSettingsObserver& aAudioSettingsObserver,
       
   665                                          TGlobalAudioSettings& aGlobalAudioSettingsData);
       
   666     ~CSilenceModeObserverAO();
       
   667     void Subscribe();
       
   668 
       
   669 protected:
       
   670     // From CActive
       
   671     void RunL();
       
   672     void DoCancel();
       
   673     TInt RunError(TInt aError);
       
   674 
       
   675 private:
       
   676     // Constr and IInd phase constr
       
   677     CSilenceModeObserverAO(CGlobalAudioSettings &aGlobalAudioSettings,
       
   678                                                  MAudioSettingsObserver& aAudioSettingsObserver,
       
   679                                                  TGlobalAudioSettings& aGlobalAudioSettingsData);
       
   680     void ConstructL();
       
   681     CGlobalAudioSettings& iGlobalAudioSettings;
       
   682     MAudioSettingsObserver&   iAudioSettingsObserver;
       
   683     RProperty iSilenceModeProperty;
       
   684     TGlobalAudioSettings& iGlobalAudioSettingsData;
       
   685     };
   651 #endif // GLOBALAUDIOSETTINGSIMPL_H
   686 #endif // GLOBALAUDIOSETTINGSIMPL_H
   652 
   687 
   653 // End of file
   688 // End of file