Logo Search packages:      
Sourcecode: nateon version File versions  Download package

void KNateon::slotChangeStatusNumber ( int  nID  )  [private, slot]

Away Timer는 환경설정에서 Away Timer 사용이 체크되있고, 온라인 일때만 사용.

채팅에 상태값 업데이트

메인메뉴, 트레이

메인창 BI 업데이트

Definition at line 6155 of file knateon.cpp.

References KNateonMainview::changeStatusUI(), nmconfig::checkawaytime, CurrentAccount::setStatus(), NateonDPConnection::slotChangeStatusAway(), NateonDPConnection::slotChangeStatusBusy(), NateonDPConnection::slotChangeStatusMeeting(), NateonDPConnection::slotChangeStatusOffline(), NateonDPConnection::slotChangeStatusOnline(), and NateonDPConnection::slotChangeStatusPhone().

Referenced by connected(), createChat(), and disconnected().

{
      /*!
       * Away Timer는
       * 환경설정에서 Away Timer 사용이 체크되있고,
       * 온라인 일때만 사용.
       */
      if ( ( stConfig.checkawaytime ) && ( nID == 0 ) )
      {
            bIdle = FALSE;
#ifdef NETDEBUG
            kdDebug() << "Idle Timer On!" << endl;
#endif
      }
      else
      {
            bIdle = TRUE;
#ifdef NETDEBUG
            kdDebug() << "Idle Timer Off!" << endl;
#endif
      }
      
      emit changeStatus( nID ); /*! 채팅에 상태값 업데이트 */
      if ( pChangestatusSelectAction->currentItem () != nID )
            pChangestatusSelectAction->setCurrentItem( nID ); /*! 메인메뉴, 트레이 */
      m_pMainView->changeStatusUI( nID ); /*! 메인창 BI 업데이트 */
      switch( nID )
      {
      case 0 :
            m_pDPcon->slotChangeStatusOnline();
            m_pCurrentAccount->setStatus('O');
            break;
      case 1 :
            m_pDPcon->slotChangeStatusAway();
            m_pCurrentAccount->setStatus('A');
            break;
      case 2 :
            m_pDPcon->slotChangeStatusBusy();
            m_pCurrentAccount->setStatus('B');
            break;
      case 3 :
            m_pDPcon->slotChangeStatusPhone();
            m_pCurrentAccount->setStatus('P');
            break;
      case 4:
            m_pDPcon->slotChangeStatusMeeting();
            m_pCurrentAccount->setStatus('M');
            break;
      case 5:
            m_pDPcon->slotChangeStatusOffline();
            m_pCurrentAccount->setStatus('F');
            break;
      }
}


Generated by  Doxygen 1.6.0   Back to index