mmserv/tms/tmscallserver/src/tmscsuplink.cpp
changeset 53 eabc8c503852
parent 33 5e8b14bae8c3
equal deleted inserted replaced
48:a493a607b5bf 53:eabc8c503852
    58 // Destructor
    58 // Destructor
    59 // -----------------------------------------------------------------------------
    59 // -----------------------------------------------------------------------------
    60 //
    60 //
    61 TMSCSUplink::~TMSCSUplink()
    61 TMSCSUplink::~TMSCSUplink()
    62     {
    62     {
    63     }
       
    64 
       
    65 // -----------------------------------------------------------------------------
       
    66 // Gives mic mute state
       
    67 // -----------------------------------------------------------------------------
       
    68 //
       
    69 gboolean TMSCSUplink::IsMuted()
       
    70     {
       
    71     gint gain(0);
       
    72 
       
    73     if (iDevSound)
       
    74         {
       
    75         gain = iDevSound->Gain();
       
    76         }
       
    77     return ((!gain)? TRUE : FALSE);
       
    78     }
    63     }
    79 
    64 
    80 // -----------------------------------------------------------------------------
    65 // -----------------------------------------------------------------------------
    81 // Sets mic gain
    66 // Sets mic gain
    82 // -----------------------------------------------------------------------------
    67 // -----------------------------------------------------------------------------
   146 
   131 
   147     // We dont react to devsound messages unless we are activating.
   132     // We dont react to devsound messages unless we are activating.
   148     if (iActivationOngoing && (aError == KErrAccessDenied ||
   133     if (iActivationOngoing && (aError == KErrAccessDenied ||
   149             aError == KErrInUse))
   134             aError == KErrInUse))
   150         {
   135         {
       
   136 #ifndef __WINSCW__
   151         if (iStartRetryTime != 0)
   137         if (iStartRetryTime != 0)
   152             {
   138             {
   153             StartTimer();
   139             StartTimer();
   154             }
   140             }
   155         else
   141         else
   156             {
   142             {
   157             CancelTimer();
   143             CancelTimer();
   158             iActivationOngoing = EFalse;
   144             iActivationOngoing = EFalse;
   159             iObserver.UplinkActivationCompleted(aError);
   145             iObserver.UplinkActivationCompleted(aError);
   160             }
   146             }
       
   147 #else  //__WINSCW__
       
   148         iObserver.UplinkActivationCompleted(TMS_RESULT_SUCCESS);
       
   149 #endif //__WINSCW__
   161         }
   150         }
   162     }
   151     }
   163 
   152 
   164 // -----------------------------------------------------------------------------
   153 // -----------------------------------------------------------------------------
   165 // From class TMSCSDevSound
   154 // From class TMSCSDevSound