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

void KNateon::slotAddConfirm ( const QStringList &  slCommand  )  [private, slot]

ADDB 0 RL 106955142 xxx@nate.com 안녕하세요.홍길동입니다.

Definition at line 2990 of file knateon.cpp.

References BuddyList::addBuddy(), Group::addBuddy(), BuddyList::getBuddyByID(), CurrentAccount::getBuddyList(), GroupList::getGroupByID(), CurrentAccount::getGroupList(), BuddyBase::setAL(), AllowAddFriend::setCMN(), BuddyBase::setCyworld_CMN(), BuddyBase::setFL(), BuddyBase::setHandle(), BuddyBase::setHome2CMN(), BuddyBase::setHompyType(), AllowAddFriend::setMessage(), BuddyBase::setRL(), BuddyBase::setStatus(), AllowAddFriend::setUID(), and BuddyBase::setUID().

Referenced by initializeNateonDPConnection().

{
      /*! ADDB 0 RL 106955142 xxx@nate.com 안녕하세요.홍길동입니다. */
      if ( !m_pAllowAddFriend )
      {
            m_pAllowAddFriend = new AllowAddFriend();
            connect(m_pAllowAddFriend, SIGNAL(accept( QString&, QString& ) ), m_pDPcon, SLOT(slotAddAccept( QString& , QString& ) ) );
            connect(m_pAllowAddFriend, SIGNAL(reject( QString&, QString& ) ), m_pDPcon, SLOT(slotAddReject( QString& , QString& ) ) );
      }
      m_pBuddyList = m_pCurrentAccount->getBuddyList();
      Buddy *pBuddy = m_pBuddyList->getBuddyByID( slCommand[4] );
      if ( pBuddy )
      {
            pBuddy->setHandle( slCommand[3] );
            pBuddy->setRL( TRUE );
            pBuddy->setFL( TRUE );
            pBuddy->setAL( TRUE );
            pBuddy->setStatus("F");
            Group *pGroup = m_pCurrentAccount->getGroupList()->getGroupByID( "0" );
            if ( pGroup )
            pGroup->addBuddy( pBuddy );
      }
      else
      {
            pBuddy = new Buddy();
            pBuddy->setStatus("F");
            pBuddy->setHandle( slCommand[3] );
            pBuddy->setUID( slCommand[4] );
            pBuddy->setRL( TRUE );
            pBuddy->setFL( TRUE );
            pBuddy->setAL( TRUE );
            pBuddy->setCyworld_CMN( "%00" );
            pBuddy->setHome2CMN( "%00" );
            pBuddy->setHompyType( Buddy::Cyworld );
            m_pBuddyList->addBuddy( pBuddy );
            Group *pGroup = m_pCurrentAccount->getGroupList()->getGroupByID( "0" );
            if ( pGroup )
            pGroup->addBuddy( pBuddy );
      }
      
      m_pAllowAddFriend->setCMN( slCommand[3] );
      m_pAllowAddFriend->setUID( slCommand[4] );
      m_pAllowAddFriend->setMessage( slCommand[5] );
      m_pAllowAddFriend->exec();
}


Generated by  Doxygen 1.6.0   Back to index