Пример #1
0
 private void voipclient_OnHotKeyToggle(int nHotKeyID, bool bActive)
 {
     //a registered hotkey is active
     if (nHotKeyID == PUSH_TO_TALK_ID)
     {
         if (bActive)
         {
             voipclient.StartTransmitting();
             UpdateUserIcon(voipclient.GetMyUserID(), true);
         }
         else
         {
             voipclient.StopTransmitting();
             UpdateUserIcon(voipclient.GetMyUserID(), false);
         }
     }
 }
Пример #2
0
 private void voipclient_OnHotKeyToggle(int nHotKeyID, bool bActive)
 {
     logDebugOnly(String.Format("Conaito OnHotKeyToggle event received\n"));
     if (nHotKeyID == kiPUSH_TO_TALK_ID)
     {
         if (bActive)
         {
             sendDDDPushToTalkEvent();
             m_voipclient.StartTransmitting();
             UpdateUserIcon(m_voipclient.GetMyUserID(), true);
         }
         else
         {
             sendDDDStoppedTalkingEvent();
             m_voipclient.StopTransmitting();
             UpdateUserIcon(m_voipclient.GetMyUserID(), false);
         }
     }
 }
Пример #3
0
        private bool login()
        {
            bool bStatus = true;

            if (!m_bLoggedIn)
            {
                if (m_voipclient.DoLogin(_strDM, _strConaitoServerPasswd))
                {
                    //richTextBoxLog.AppendText(String.Format("Login for {0} succeeded\n", _strDM));
                    m_iUserId   = m_voipclient.GetMyUserID();
                    m_bLoggedIn = true;
                    // Get the root channel
                    //AddChannel(0);
                }
                else
                {
                    bStatus = false;
                }
            }
            //updateButtonStates();
            return(bStatus);
        }