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

void KNateon::slotFileAcceptOk ( SendFileInfo pSendFileInfo  )  [private, slot]

파일 전송창 보이기.

Definition at line 2733 of file knateon.cpp.

References FileTransfer::addListView(), BuddyList::getBuddyByID(), CurrentAccount::getBuddyList(), SendFileInfo::getFileName(), SendFileInfo::getFileSize(), BuddyBase::getName(), BuddyBase::getNick(), SendFileInfo::getSSCookie(), SendFileInfo::getYourID(), m_pFileTransfer, m_pP2PServer, and P2PConnection::sendAccept().

{
      if ( bCancelFileTransfer )
      {
            bCancelFileTransfer = FALSE;
      }
      else
      {
            /// 파일 전송창 보이기.
            showFileTransferDialog(pSendFileInfo);

            QString csFile = pSendFileInfo->getFileName();
            QString sFileName( csFile.right( csFile.length() - csFile.findRev("/") - 1 ) );
            
            m_pBuddyList = m_pCurrentAccount->getBuddyList();
            Buddy* pBuddy = m_pBuddyList->getBuddyByID( pSendFileInfo->getYourID() );
            
            QString sSender;
            if ( pBuddy )
            {
                  sSender = pBuddy->getName();
                  sSender += "(";
                  sSender += pBuddy->getNick();
                  sSender += ")";
            }
            else
            {
                  sSender = pSendFileInfo->getYourID();
            }
            m_pFileTransfer->addListView(pSendFileInfo->getSSCookie(), sSender, sFileName,  pSendFileInfo->getFileSize(), false );
            m_pP2PServer->sendAccept(pSendFileInfo);
      }
}


Generated by  Doxygen 1.6.0   Back to index