mmserv/tms/tmscallserver/inc/tmscsuplink.h
branchRCL_3
changeset 17 60e492b28869
parent 11 3570217d8c21
child 19 095bea5f582e
equal deleted inserted replaced
15:ab526b8cacfb 17:60e492b28869
    22 #include "tmscsdevsound.h"
    22 #include "tmscsdevsound.h"
    23 
    23 
    24 namespace TMS {
    24 namespace TMS {
    25 
    25 
    26 /**
    26 /**
    27  *  Provides uplink functionality.
    27  *  Provides Uplink stream functionality.
    28  *
    28  *
    29  */
    29  */
    30 NONSHARABLE_CLASS(TMSCSUplink) : public TMSCSPDevSound
    30 NONSHARABLE_CLASS(TMSCSUplink) : public TMSCSDevSound
    31     {
    31     {
    32 public:
    32 public:
    33 
    33 
    34     static TMSCSUplink* NewL(TMSCSPDevSoundObserver& aObserver);
    34     static TMSCSUplink* NewL(TMSCSDevSoundObserver& observer);
    35 
    35 
    36     virtual ~TMSCSUplink();
    36     virtual ~TMSCSUplink();
    37 
    37 
    38     /**
    38     /**
    39      * Determines mic mute state.
    39      * Determines mic mute state.
    40      *
    40      *
    41      * @return ETrue - mic is muted, EFalse - mic is not muted.
    41      * @return ETrue - mic is muted, EFalse - mic is not muted.
    42      */
    42      */
    43     TBool IsMuted();
    43     gboolean IsMuted();
    44 
       
    45     /**
       
    46      * Set mic muted.
       
    47      */
       
    48     void SetMuted();
       
    49 
       
    50     /**
       
    51      * Set mic unmuted.
       
    52      */
       
    53     void SetUnmuted();
       
    54 
    44 
    55     /**
    45     /**
    56      * Set mic gain.
    46      * Set mic gain.
    57      */
    47      */
    58     void SetGain(gint aGain);
    48     void SetGain(gint gain);
    59 
    49 
    60     /**
    50     /**
    61      * Get mic muted.
    51      * Get mic muted.
    62      */
    52      */
    63     gint Gain();
    53     gint Gain();
    68     gint MaxGain();
    58     gint MaxGain();
    69 
    59 
    70     // from base class MDevSoundObserver
    60     // from base class MDevSoundObserver
    71 
    61 
    72     /**
    62     /**
    73      * From MDevSoundObserver
    63      * From MDevSoundObserver.
    74      * Notification from Devsound that stream (mic) is
    64      * Indication from the devsound that Uplink has been activated
    75      * activated successfully.
    65      * successfully.
    76      */
    66      */
    77     void BufferToBeEmptied(CMMFBuffer* aBuffer);
    67     void BufferToBeEmptied(CMMFBuffer* aBuffer);
    78 
    68 
    79     /**
    69     /**
    80      * From MDevSoundObserver
    70      * From MDevSoundObserver
    81      * Notification from devsound that downstream(mic) activation
    71      * Indication from devsound that Uplink activation has failed.
    82      * feiled.
       
    83      */
    72      */
    84     void RecordError(TInt aError);
    73     void RecordError(TInt aError);
    85 
    74 
    86 private:
    75 private:
    87 
    76 
    88     // from base class MCSPDevSound
       
    89 
       
    90     /**
    77     /**
    91      * From MCSPDevSound.
    78      * From TMSCSDevSound.
    92      * Tries to activate the mic stream.
    79      * Tries to activate the mic stream.
    93      */
    80      */
    94     void DoActivateL();
    81     void DoActivateL();
    95 
    82 
    96 protected:
    83 protected:
    97 
    84 
    98     TMSCSUplink(TMSCSPDevSoundObserver& aObserver);
    85     TMSCSUplink(TMSCSDevSoundObserver& aObserver);
    99     void ConstructL();
    86     void ConstructL();
   100     };
    87     };
   101 
    88 
   102 } //namespace TMS
    89 } //namespace TMS
   103 
    90