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

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

주계정 정보 가져오기

본인의 싸이아이디가 버디리스트에 등록이 되있는 경우 CyCMN이 2개 나옴.

Definition at line 5952 of file knateon.cpp.

References CurrentAccount::getBuddyList(), BuddyBase::getCyworld_CMN(), CurrentAccount::getMyCMN(), CurrentAccount::getMyTicket(), and slotMajorHompy().

Referenced by connected().

{
      if ( !pMajorHompyCGI )
      {
            pMajorHompyCGI = new PostCGI();
            connect(pMajorHompyCGI, SIGNAL( gotResult( const QString& ) ), SLOT( slotMajorHompy( const QString& ) ) );
      }
      QString sURL("http://www.cyworld.com/pims/nateon/nateon_get_mainid_ticket.asp");
      QString sParam;
      sParam = "param=";
      QString sMyCMN( m_pCurrentAccount->getMyCMN() );

      if ( sMyCMN.length() > 0)
      {
            if ( sMyCMN.data()[0] != '%' )
            {
                  sParam += sMyCMN;
            }
            else
            {
                  sParam += "";
            }
      }
      else
      {
            sParam += "";
      }

      sParam += "&ticket=";
      sParam += m_pCurrentAccount->getMyTicket();
      sParam += "&buddy_list=";
      BuddyList* pBuddyList = m_pCurrentAccount->getBuddyList();
      QPtrListIterator<Buddy> iterator( *pBuddyList );
      QString sCMN;
      QString sCMNList;
      while(iterator.current() != 0)
      {
            Buddy *pBuddy = iterator.current();
            sCMN = pBuddy->getCyworld_CMN();
            if ( sCMN.length() > 0 )
            {
            /*!
             * 본인의 싸이아이디가 버디리스트에 등록이 되있는 경우
             * CyCMN이 2개 나옴.
             */
                  if ( sCMN.data()[0] != '%' )
                  {
                        if ( sCMNList.length() > 0 )
                        {
                              sCMNList += "%3b";
                              sCMNList += sCMN;
                        }
                        else
                        {
                              sCMNList = sCMN;
                        }
                  }
            }
            ++iterator;
      }
      sParam += sCMNList;
#ifdef NETDEBUG
      kdDebug() << "POST, URL :[" << sURL << "], Param : [" << sParam << "]" << endl;
#endif
      pMajorHompyCGI->start( sURL, sParam );
}


Generated by  Doxygen 1.6.0   Back to index