phoneapp/phoneuiview/inc/cphoneaudiocontroller.h
branchRCL_3
changeset 58 40a3f856b14d
parent 0 5f000ab63145
equal deleted inserted replaced
57:94dc1107e8b2 58:40a3f856b14d
    71         /**
    71         /**
    72         * Update control using the specified data
    72         * Update control using the specified data
    73         * @param aCommandParam command parameter
    73         * @param aCommandParam command parameter
    74         */
    74         */
    75         void HandleIhfChange( TPhoneCommandParam* aCommandParam );
    75         void HandleIhfChange( TPhoneCommandParam* aCommandParam );
    76         
    76    
    77         /**
       
    78         * Update control using the specified data
       
    79         * @param aCommandParam command parameter
       
    80         */
       
    81         void HandleMuteChange( TPhoneCommandParam* aCommandParam );
       
    82         
       
    83         /**
    77         /**
    84         * Gets volume level from navi pane control.
    78         * Gets volume level from navi pane control.
    85         * @return Volume level.
    79         * @return Volume level.
    86         */
    80         */
    87         TInt VolumeLevelFromControl();  
    81         TInt VolumeLevelFromControl();  
   131         * @param aNew new to replace the old one.
   125         * @param aNew new to replace the old one.
   132         */
   126         */
   133         void PushL(CAknNavigationDecorator& aNew);
   127         void PushL(CAknNavigationDecorator& aNew);
   134 
   128 
   135         /**
   129         /**
   136         * Callback function. Called when navi pane should be updated 
       
   137         * back to default.
       
   138         * @param aAny pointer to instance of this class.
       
   139         * @return KErrNone always.
       
   140         */
       
   141         static TInt DoUpdateNaviPaneToDefault( TAny* aAny );
       
   142 
       
   143         /**
       
   144         * Get current volume decorator (Ihf or Ear) 
   130         * Get current volume decorator (Ihf or Ear) 
   145         * @return Current volume decorator
   131         * @return Current volume decorator
   146         */
   132         */
   147         CAknNavigationDecorator& VolumeDecorator();
   133         CAknNavigationDecorator& VolumeDecorator();
   148         
   134         
   155         /**
   141         /**
   156         * Get current volume level (Ihf or Ear)  
   142         * Get current volume level (Ihf or Ear)  
   157         * @return Current Ihf or Ear volume level         
   143         * @return Current Ihf or Ear volume level         
   158         */        
   144         */        
   159         TInt VolumeLevel(); 
   145         TInt VolumeLevel(); 
   160         
       
   161         /**
       
   162         * Select decorator based on current audio status
       
   163         * @return Selected decorator (Ihf, Ear or Muted).         
       
   164         */
       
   165         CAknNavigationDecorator& SelectDecoratorL();         
       
   166 
   146 
   167         /**
   147         /**
   168         * Set volume level for given volume control
   148         * Set volume level for given volume control
   169         * @param aVolumeControl Volume control
   149         * @param aVolumeControl Volume control
   170         * @param aVolumeLevel New volume level
   150         * @param aVolumeLevel New volume level
   187         // IHF volume, from 1 to 10
   167         // IHF volume, from 1 to 10
   188         TInt iIhfVolume;
   168         TInt iIhfVolume;
   189         
   169         
   190         // ETrue IHF is active
   170         // ETrue IHF is active
   191         TBool iIhfMode;
   171         TBool iIhfMode;
   192 
       
   193         // ETrue if transfer to or from IHF pending
       
   194         TBool iIhfTransferPending; 
       
   195         
   172         
   196         // Owned non-IHF volume control.
   173         // Owned non-IHF volume control.
   197         CAknNavigationDecorator* iEarVolumeControl;
   174         CAknNavigationDecorator* iEarVolumeControl;
   198         
   175         
   199         // Non-IHF volume, from 1 to 10
   176         // Non-IHF volume, from 1 to 10
   200         TInt iEarVolume; 
   177         TInt iEarVolume; 
   201 
   178 
   202         // Owned muted indicator
       
   203         CAknNavigationDecorator* iMutedControl;
       
   204         
       
   205         // ETrue phone is muted
       
   206         TBool iMuted;
       
   207 
       
   208         // ETrue if timed control transfer to muted is pending
       
   209         TBool iTimedMuteTransferPending; 
       
   210 
       
   211         // Pointer the current control that is in navi pane
   179         // Pointer the current control that is in navi pane
   212         CAknNavigationDecorator* iOldControl;
   180         CAknNavigationDecorator* iOldControl;
   213         
   181  
   214         // Owned timer to update navi pane
       
   215         CPhoneTimer* iNaviPaneUpdateTimer;
       
   216         
   182         
   217         /**
   183         /**
   218          * ETrue if Telephony is the foreground application,
   184          * ETrue if Telephony is the foreground application,
   219          * otherwise EFalse.
   185          * otherwise EFalse.
   220          */
   186          */