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

void KNateon::disconnected (  )  [private, slot]

system tray 메뉴

Definition at line 2237 of file knateon.cpp.

References bConnect, bLogout, bOnline, ChatList::clear(), KNateonMainview::clearList(), CurrentAccount::getBuddyList(), ChatList::getChatList(), CurrentAccount::getGroupList(), m_pChatList, saveProperties(), and slotChangeStatusNumber().

Referenced by initializeNateonDPConnection(), and initializeNateonDPLConnection().

{
      /*
      if ( ( stConfig.dplconnectionfail == TRUE ) && ( stConfig.dpconnectionfail == TRUE ) ) {
            
      }
      */
      slotUpdateStatusText( UTF8("접속 끊김") );
      bOnline = FALSE;
      saveProperties( kapp->config() );
      m_pMainView->clearList();

      if ( bLogout )
      {
            bConnect = FALSE;
            if (0 != m_pMainView)
                  m_pMainView->hide();
            
            if (0 != m_pLogoutView)
            {
                  setCentralWidget( m_pLogoutView );
                  m_pLogoutView->show();
            }
      }
      else
      {
            if ( m_pLoginView->isShown() )
                  m_pLoginView->kPasswordEdit1->setFocus();
      }
      
      GroupList *pGroupList = m_pCurrentAccount->getGroupList();
      pGroupList->clear();
  
      /* BuddyList */
      m_pBuddyList = m_pCurrentAccount->getBuddyList();
      m_pBuddyList->clear();
  
      if ( m_pLoginView->isShown() )
            m_pLoginView->setCancel( FALSE ); // m_pLoginView->setEnable( true );
      
      OfflineEnableMenu();
  
      /*! system tray 메뉴 */
      pLoginAction->setEnabled( true );
      slotChangeStatusNumber( 5 );
      
      if ( m_pChatList )
      {
            QPtrList<ChatView> m_ChatObjs = m_pChatList->getChatList();
            QPtrListIterator<ChatView> iterator(m_ChatObjs);
            while(iterator.current() != 0)
            {
                  ChatView* pChatView = iterator.current();
                  if ( pChatView->isShown() )
                        pChatView->close();
                  ++iterator;
            }
            m_pChatList->clear();
      }
      
      if ( m_pMemoPopupTimer )
            m_pMemoPopupTimer->stop();
      
      if ( m_pC1C2Timer )
            m_pC1C2Timer->stop();
}


Generated by  Doxygen 1.6.0   Back to index