mmserv/tms/tmscallserver/inc/tmscsuplink.h
changeset 31 8dfd592727cb
parent 16 43d09473c595
child 53 eabc8c503852
equal deleted inserted replaced
22:128eb6a32b84 31:8dfd592727cb
    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             const gint retrytime);
    35 
    36 
    36     virtual ~TMSCSUplink();
    37     virtual ~TMSCSUplink();
    37 
    38 
    38     /**
    39     /**
    39      * Determines mic mute state.
    40      * Determines mic mute state.
    40      *
    41      *
    41      * @return ETrue - mic is muted, EFalse - mic is not muted.
    42      * @return ETrue - mic is muted, EFalse - mic is not muted.
    42      */
    43      */
    43     TBool IsMuted();
    44     gboolean IsMuted();
    44 
       
    45     /**
       
    46      * Set mic muted.
       
    47      */
       
    48     void SetMuted();
       
    49 
       
    50     /**
       
    51      * Set mic unmuted.
       
    52      */
       
    53     void SetUnmuted();
       
    54 
    45 
    55     /**
    46     /**
    56      * Set mic gain.
    47      * Set mic gain.
    57      */
    48      */
    58     void SetGain(gint aGain);
    49     void SetGain(gint gain);
    59 
    50 
    60     /**
    51     /**
    61      * Get mic muted.
    52      * Get mic muted.
    62      */
    53      */
    63     gint Gain();
    54     gint Gain();
    68     gint MaxGain();
    59     gint MaxGain();
    69 
    60 
    70     // from base class MDevSoundObserver
    61     // from base class MDevSoundObserver
    71 
    62 
    72     /**
    63     /**
    73      * From MDevSoundObserver
    64      * From MDevSoundObserver.
    74      * Notification from Devsound that stream (mic) is
    65      * Indication from the devsound that Uplink has been activated
    75      * activated successfully.
    66      * successfully.
    76      */
    67      */
    77     void BufferToBeEmptied(CMMFBuffer* aBuffer);
    68     void BufferToBeEmptied(CMMFBuffer* aBuffer);
    78 
    69 
    79     /**
    70     /**
    80      * From MDevSoundObserver
    71      * From MDevSoundObserver
    81      * Notification from devsound that downstream(mic) activation
    72      * Indication from devsound that Uplink activation has failed.
    82      * feiled.
       
    83      */
    73      */
    84     void RecordError(TInt aError);
    74     void RecordError(TInt aError);
    85 
    75 
    86 private:
    76 private:
    87 
    77 
    88     // from base class MCSPDevSound
       
    89 
       
    90     /**
    78     /**
    91      * From MCSPDevSound.
    79      * From TMSCSDevSound.
    92      * Tries to activate the mic stream.
    80      * Tries to activate the mic stream.
    93      */
    81      */
    94     void DoActivateL();
    82     void DoActivateL();
    95 
    83 
    96 protected:
    84 protected:
    97 
    85 
    98     TMSCSUplink(TMSCSPDevSoundObserver& aObserver);
    86     TMSCSUplink(TMSCSDevSoundObserver& aObserver);
    99     void ConstructL();
    87     void ConstructL(const gint retrytime);
   100     };
    88     };
   101 
    89 
   102 } //namespace TMS
    90 } //namespace TMS
   103 
    91 
   104 #endif // TMSCSUPLINK_H
    92 #endif // TMSCSUPLINK_H