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

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

로그인 접속 소리

버디 리스트를 정렬해서 보여줌. 옵션은 OnlyOnline은 true

단일 사용자와 체팅 시작시...

여러 사용자와 채팅 시작시...

그룹 채팅 시작시...

그룹 차단

그룹 차단 해제

그룹정보가 변경되면, 메뉴와 오른쪽 클릭 메뉴의 그굽 리스트를 갱신한다.

그룹 추가.

사용자 추가.

통합메세지함 보이기

상태값 변경

친구 복사

친구 이동

친구 이동, Drag & Drop

친구 삭제

Queue 된 Command를 실행한다. 예> Offline일때 다른사용자가 나를 등록하고, Online이 되면서 등록 수락여부를 묻는 창.

"CMN UID"

오른쪽 마우스 메뉴에서 파일 보내기

버디 리스트 보기 방식

버디 리스트 정렬관련 <<<<<<<

다른사용자가 로그인해서 끊김. KILL을 받았을때...

버디 리스트 네이밍 / 소팅 관련 메뉴 초기화

싸이월드여도 Nate에서 쪽지 가지고 옴.

친구에게만 쪽지받기 허용된 버디에게만 대화요청 받기 등의 설정 정보를 웹서버로 부터 가지고 온다.

싸이월드여도 Nate에서 쪽지 가지고 옴.

GLST에 없는 Buddy Handle URL 호출로 Fix

환경설정파일에 저장

$HOME/.kde/apps/knateon/{ID}/ 디렉토리 생성 <주의> 뒤에 "/"를 꼭 붙여야 디렉토리 생성이 됨.

메뉴를 사용할 수 있도록 enable() 시킴

항상위 체크 후 항상 위

버디 리스트 저장

싸이월드 정보 저장

네이트닷컴 정보 저장

환경설정창 초기화

싸이 메인 클릭하면,

내 미니홈피를 클릭하면,

설정창 보이기

닉 바꾸기

본인의 프로필 보기

본인의 프로필 수정

버디 리스트를 정렬해서 보여줌. 옵션은 OnlyOnline은 true

system tray 메뉴

타이머 설정

오프라인으로 접속 설정

온라인으로 접속 설정

C1, C2 주계정 정보 가지고 오기.

접속되고 5초 후에 쪽지개수 갱신 후 새쪽지를 팝업으로 띄워줍니다.

Definition at line 641 of file knateon.cpp.

References nmconfig::alwaystop, nmconfig::autologin, nmconfig::awaytime, bConnect, CommandQueue::Body(), bOnline, nmconfig::checkawaytime, CommandQueue::Code(), config, SQLiteDB::createChatDB(), SQLiteDB::createMemoDB(), SQLiteDB::createP2PDB(), SQLiteDB::createUserDB(), nmconfig::cycmn, nmconfig::cyid, BuddyList::getBuddyByID(), CurrentAccount::getBuddyList(), NateonDPConnection::getFixHandle(), MyListItem::getGName(), CurrentAccount::getGroupList(), BuddyBase::getHandle(), CurrentAccount::getMyCMN(), CurrentAccount::getMyCyworldCMN(), CurrentAccount::getMyCyworldID(), CurrentAccount::getMyNateCMN(), CurrentAccount::getMyNateID(), CurrentAccount::getMyNickName(), CurrentAccount::getMyTicket(), nmconfig::hidestart, nmconfig::logintype, nmconfig::myloginsoundpath, nmconfig::natecmn, nmconfig::nateid, nmconfig::p2pdbfilepath, KNateonMainview::pBlockbuddyAction, KNateonMainview::pChangenickAction, KNateonMainview::pCopybuddyAction, KNateonMainview::pDeletebuddyAction, KNateonMainview::pEditprofileAction, KNateonMainview::pMovebuddyAction, KNateonMainview::pSendfileAction, pSQLiteDB, LogoutView::pushButton1, KNateonMainview::pViewAllAction, KNateonMainview::pViewmessageboxAction, KNateonMainview::pViewNameAction, KNateonMainview::pViewNameIDAction, KNateonMainview::pViewNameNickAction, KNateonMainview::pViewNickAction, KNateonMainview::pViewOnlineAction, KNateonMainview::pViewOnOffAction, KNateonMainview::pViewprofileAction, saveUserDB(), AllowAddFriend::setCMN(), LogoutView::setID(), Account::setIdleTime(), AllowAddFriend::setMessage(), AllowAddFriend::setUID(), Account::setUseIdleTimer(), slotAddGroup(), slotBlockBuddy(), slotBuddyOnlyName(), slotBuddySort(), slotC1C2(), slotChangeStatusNumber(), slotCopyBuddy(), slotCPRF(), slotDeleteBuddy(), slotDeleteGroup(), slotDisconnected(), slotEditProfile(), KNateonMainview::slotEmoticonList(), slotGetProfile(), slotGoCyMain(), slotGoMyMinihompy(), slotGotINFY(), slotKill(), slotLockGroup(), slotMemoCount(), slotMenuAlwaysTop(), slotMenuSendFile(), slotMoveBuddy(), slotNamingSelect(), slotOpenTransfer(), slotOtherLogin(), slotRelogin(), slotRenameGroup(), KNateonMainview::slotSetGroupList(), slotSetup(), slotShowChangeNick(), slotShowMemoPopup(), slotShowProfile(), slotStartChat(), slotUnlockGroup(), slotViewAMemoPopup(), slotViewChatBox(), slotViewMemoBox(), slotViewMemoPopup(), startChat(), LogoutView::textLabel2, nmconfig::typeofbuddylist, nmconfig::typeofbuddysort, nmconfig::usecyworld, nmconfig::usemyloginsound, nmconfig::usenatedotcom, nmconfig::usesound, and nmconfig::viewemoticonlist.

Referenced by initializeNateonDPConnection().

{
      slotUpdateStatusText( UTF8("접속 됨") );
      
      /*!
       * 로그인 접속 소리
       */
      if ( stConfig.usesound && stConfig.usemyloginsound )
            Sound::play( stConfig.myloginsoundpath );
      
      bOnline = TRUE;
      bConnect = TRUE;
      stConfig.autologin = m_pLoginView->isAutoLogin();
      
      if ( m_pLoginView ) m_pLoginView->hide();
      if (!m_pLogoutView)
      {
            m_pLogoutView = new LogoutView(this, "logoutview");
            connect( m_pLogoutView->pushButton1, SIGNAL( clicked() ), SLOT( slotRelogin() ) );
            connect( m_pLogoutView->textLabel2, SIGNAL( clicked() ), SLOT( slotOtherLogin() ) );
            connect( m_pLoginView, SIGNAL( changeLoginID( const QString & ) ), m_pLogoutView, SLOT( slotChangeLoginID( const QString & ) ) );
            if ( stConfig.logintype == 'C' )
                  m_pLogoutView->setID( m_pCurrentAccount->getMyCyworldID() );
            else
                  m_pLogoutView->setID( m_pCurrentAccount->getMyNateID() );
      }
      
      if ( !m_pMainView ) return;
      setCentralWidget(m_pMainView);
      m_pMainView->show();

      /*!
        버디 리스트를 정렬해서 보여줌.
        옵션은 OnlyOnline은 true
      */
      if ( !bIsConnected )
      {
            connect( m_pMainView, SIGNAL( sendToDP( const QString& ) ), m_pDPcon, SLOT( messageSent( const QString&) ) );
            connect( m_pMainView, SIGNAL( receFromDP( const QString& ) ), m_pDPcon, SLOT( messageReceived( const QString&) ) );
            /*! 단일 사용자와 체팅 시작시... */
            connect( m_pMainView, SIGNAL( startChat( Buddy* ) ), SLOT( startChat( Buddy* ) ) );
            /*! 여러 사용자와 채팅 시작시...*/
            connect( m_pMainView, SIGNAL( startChat( QPtrList<Buddy>& ) ), SLOT( startChat( QPtrList<Buddy>& ) ) );
            /*! 그룹 채팅 시작시... */ 
            connect( m_pMainView, SIGNAL( startGroupChat( const ContactRoot * ) ), SLOT( slotStartChat(  const ContactRoot * ) ) );
            /*! 그룹 차단 */
            connect( m_pMainView, SIGNAL( blockGroup( const QString & ) ), SLOT( slotLockGroup( const QString & ) ) );
            /*! 그룹 차단 해제 */
            connect( m_pMainView, SIGNAL( unblockGroup( const QString & ) ), SLOT( slotUnlockGroup( const QString & ) ) );
    
            connect( m_pDPcon, SIGNAL( receivedINFY( const QStringList& ) ), this, SLOT( slotGotINFY(const QStringList& ) ) );
            connect( pOpendownboxAction, SIGNAL( activated() ), SLOT( slotOpenTransfer() ) );
      }
  
      QStringList mGList;
      const GroupList* pGroupList;
      pGroupList = m_pCurrentAccount->getGroupList();
      QPtrListIterator<Group> iterator( *pGroupList );
      Group * pGroup;
      while(iterator.current() != 0)
      {
            pGroup = iterator.current();
            mGList.append( pGroup->getGName() );
            ++iterator;
      }
      m_pMainView->slotSetGroupList( mGList );
      slotSetGroupList( mGList );
      if ( !bIsConnected )
      {
            /// 그룹정보가 변경되면, 메뉴와 오른쪽 클릭 메뉴의 그굽 리스트를 갱신한다.
            connect( this, SIGNAL( ChangeGroupList(QStringList &) ), SLOT( slotSetGroupList(QStringList &) ) );
            connect( this, SIGNAL( ChangeGroupList(QStringList &) ), m_pMainView, SLOT( slotSetGroupList(QStringList &) ));
            connect( this, SIGNAL( ChangeNickName(QString ) ), m_pMainView, SLOT( slotChangeNickName(QString) ) );
            connect( this, SIGNAL( addNewGroup(Group *) ), m_pMainView, SLOT( slotGroupAdded(Group *) ) );

            connect(m_pDPcon, SIGNAL( receivedMemoCTOC( const MimeMessage& ) ), SLOT( slotViewMemoPopup( const MimeMessage& ) ) );
            connect(m_pDPcon, SIGNAL( receivedCTOCAMSG( const MimeMessage& ) ), SLOT( slotViewAMemoPopup( const MimeMessage& ) ) );
            connect(m_pMainView, SIGNAL( addGroup() ), this, SLOT( slotAddGroup() ) );
            connect(m_pMainView, SIGNAL( renameGroup() ), this, SLOT( slotRenameGroup() ) );
            connect(m_pMainView, SIGNAL( deleteGroup() ), this, SLOT( slotDeleteGroup() ) );

            /// 그룹 추가.
            connect(pAddgroupAction, SIGNAL( activated() ), this, SLOT( slotAddGroup() ) );
            connect(m_pMainView->PB_AddGroup, SIGNAL( clicked() ), this, SLOT( slotAddGroup() ) );
            connect(pRenamegroupAction, SIGNAL( activated() ), this, SLOT( slotRenameGroup() ) );
            connect(pDeletegroupAction, SIGNAL( activated() ), this, SLOT( slotDeleteGroup() ) );

            /// 사용자 추가.
            connect(pAddfriendAction, SIGNAL( activated() ), this, SLOT( slotAddFriend() ) );
            connect(m_pMainView->PB_AddBuddy, SIGNAL( clicked() ), this, SLOT( slotAddFriend() ) );
            connect(m_pDPcon, SIGNAL( receivedREQST(const QStringList& ) ), m_pMainView, SLOT( slotAddFriend(const QStringList &) ) );
            connect(m_pDPcon, SIGNAL( receivedADDG(const QStringList&) ), this, SLOT( slotGotAddGroup(const QStringList&) ) );
            connect(pLogoutAction, SIGNAL( activated() ), this, SLOT( slotDisconnected() ) );

            /*! 통합메세지함 보이기 */
            connect(pOpenchatboxAction, SIGNAL( activated() ), SLOT( slotViewChatBox() ) );
            connect(m_pMainView, SIGNAL( viewMemoBox() ), SLOT( slotViewMemoBox() ) );
            connect(m_pMainView->pViewmessageboxAction, SIGNAL( activated() ), SLOT( slotViewChatBox() ) );

            /// 상태값 변경
            connect( m_pMainView, SIGNAL( changeStatusNumber( int ) ), SLOT( slotChangeStatusNumber( int ) ) );
            
            connect( m_pDPcon, SIGNAL( allowAccept ( QListViewItem* , Buddy* ) ), m_pMainView, SLOT( slotAddBuddy( QListViewItem*, Buddy* ) ) );

            /*! 친구 복사 */
            connect( m_pMainView->pCopybuddyAction, SIGNAL( activated (const QString &) ), SLOT(slotCopyBuddy( const QString & ) ) );
            connect( pCopyfriendSelectAction, SIGNAL( activated (const QString &) ), SLOT(slotCopyBuddy( const QString & ) ) );

            /*! 친구 이동 */
            connect( m_pMainView->pMovebuddyAction, SIGNAL( activated (const QString &) ), SLOT( slotMoveBuddy( const QString & ) ) );
            connect( pMovefriendSelectAction, SIGNAL( activated ( const QString & ) ), SLOT( slotMoveBuddy( const QString & ) ) );
            /*! 친구 이동, Drag & Drop */
            connect( m_pMainView->listView3, SIGNAL( moveBuddies( const QString & ) ), SLOT( slotMoveBuddy( const QString & ) ) );

            /*! 친구 삭제 */
            connect( m_pMainView->pDeletebuddyAction, SIGNAL( activated () ), SLOT(slotDeleteBuddy() ) );
            connect( pDeletefriendAction, SIGNAL( activated () ), SLOT(slotDeleteBuddy() ) );
      }
      emit ChangeNickName( m_pCurrentAccount->getMyNickName() );
  
      /// Queue 된 Command를 실행한다.
      /// 예> Offline일때 다른사용자가 나를 등록하고, Online이 되면서 등록 수락여부를 묻는 창.
      if ( !m_CommandQueue.isEmpty() )
      {
            CommandQueue *pCommandQueue;
            for ( pCommandQueue = m_CommandQueue.first(); pCommandQueue; pCommandQueue = m_CommandQueue.next() )
            {
                  if (pCommandQueue->Code() == "ADSB")
                  {
                        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& ) ) );
                        }
                        QStringList myList;
                        /// "CMN UID"
                        myList = QStringList::split(QString(" "), pCommandQueue->Body());
                        m_pAllowAddFriend->setUID( myList[1] );
                        m_pBuddyList = m_pCurrentAccount->getBuddyList();
                        Buddy* pBuddy = m_pBuddyList->getBuddyByID( myList[1] );
                        m_pAllowAddFriend->setCMN( pBuddy->getHandle() );
                        m_pAllowAddFriend->setMessage( mapInvite[ pBuddy->getHandle() ] );
                        m_pAllowAddFriend->exec();
                  }
            }
      }

      if ( !bIsConnected )
      {
            connect( m_pMainView->pBlockbuddyAction, SIGNAL( activated() ), SLOT( slotBlockBuddy() ) );
            /*! 오른쪽 마우스 메뉴에서 파일 보내기 */
            connect(m_pMainView->pSendfileAction, SIGNAL( activated() ), SLOT( slotMenuSendFile() ) );
            connect(pSendfileAction, SIGNAL( activated() ), SLOT( slotMenuSendFile() ) );

            connect( pChatAction, SIGNAL( activated() ), m_pMainView, SLOT( slotGoChat() ) );
            connect( pSendmemoAction, SIGNAL( activated() ), m_pMainView, SLOT( slotViewMemo() ) );
            connect( pAlwaystopAction, SIGNAL( toggled (bool) ), SLOT( slotMenuAlwaysTop(bool) ) );

            /*! 버디 리스트 보기 방식 */
            connect( pBuddynamingSelectAction, SIGNAL( activated ( int ) ), SLOT( slotNamingSelect( int ) ) );
            connect( m_pMainView->pViewNameAction, SIGNAL( activated() ), SLOT( slotBuddyOnlyName() ) );
            connect( m_pMainView->pViewNickAction, SIGNAL( activated() ), SLOT( slotBuddyOnlyNick() ) );
            connect( m_pMainView->pViewNameIDAction, SIGNAL( activated() ), SLOT( slotBuddyNameID() ) );
            connect( m_pMainView->pViewNameNickAction, SIGNAL( activated() ), SLOT( slotBuddyNameNick() ) );

            /*! 버디 리스트 정렬관련 <<<<<<< */
            connect( pSortlistSelectAction, SIGNAL( activated( int ) ), SLOT( slotBuddySort( int ) ) );
            connect( m_pMainView->pViewAllAction, SIGNAL( activated() ), SLOT( slotBuddyListAll() ) );
            connect( m_pMainView->pViewOnlineAction, SIGNAL( activated() ), SLOT( slotBuddyListOnline() ) );
            connect( m_pMainView->pViewOnOffAction, SIGNAL( activated() ), SLOT( slotBuddyListOnOff() ) );
    
            /*! 다른사용자가 로그인해서 끊김. KILL을 받았을때... */
            connect( m_pDPcon, SIGNAL( kill() ), SLOT( slotKill() ) ); 
      }
      /*! 버디 리스트 네이밍 / 소팅 관련 메뉴 초기화 */
      pBuddynamingSelectAction->setCurrentItem( stConfig.typeofbuddylist );
      pSortlistSelectAction->setCurrentItem( stConfig.typeofbuddysort );

      if ( !pMemoCountCGI )
      {
            pMemoCountCGI = new WebCGI();
            connect(pMemoCountCGI, SIGNAL( gotResult( QStringList& ) ), this, SLOT( slotMemoCount( QStringList& ) ) );
      }
      /*!
       * 싸이월드여도 Nate에서 쪽지 가지고 옴.
       */
#if 0
      if ( stConfig.logintype == 'C' )
      {
            QString sURL("http://203.226.253.126/exipml35/memoCnt.jsp?cmn=");
            sURL += m_pCurrentAccount->getMyCyworldCMN();
            sURL += "&ticket=";
            sURL += m_pCurrentAccount->getMyTicket();
            sURL += "&id=";
            sURL += m_pCurrentAccount->getMyCyworldID();
            pMemoCountCGI->start( sURL );
      }
      else
#endif
      {
            QString sURL("http://203.226.253.126/exipml35/memoCnt.jsp?cmn=");
            sURL += m_pCurrentAccount->getMyCMN();
            sURL += "&ticket=";
            sURL += m_pCurrentAccount->getMyTicket();
            sURL += "&id=";
            sURL += m_pCurrentAccount->getMyNateID();
            pMemoCountCGI->start( sURL );
      }

      /*!
       * 친구에게만 쪽지받기
       * 허용된 버디에게만 대화요청 받기
       * 등의 설정 정보를 웹서버로 부터 가지고 온다.
       */
      if ( !pProfileGetCGI )
      {
            pProfileGetCGI = new WebCGI();
            connect( pProfileGetCGI, SIGNAL( gotResult( QStringList& ) ), this, SLOT( slotGetProfile( QStringList& ) ) );
      }
  
      /*!
       * 싸이월드여도 Nate에서 쪽지 가지고 옴.
       */
#if 0
      if ( stConfig.logintype == 'C' )
      {
            QString sURL("http://203.226.253.126/exipml35/get_profile.jsp?type=service&cmn=");
            sURL += m_pCurrentAccount->getMyCyworldCMN();
            sURL += "&ticket=";
            sURL += m_pCurrentAccount->getMyTicket();
            pMemoCountCGI->start( sURL );
      }
      else
#endif
      {
            QString sURL("http://203.226.253.126/exipml35/get_profile.jsp?type=service&cmn=");
            sURL += m_pCurrentAccount->getMyCMN();
            sURL += "&ticket=";
            sURL += m_pCurrentAccount->getMyTicket();
            pProfileGetCGI->start( sURL );
      }

      /*!
       * GLST에 없는 Buddy Handle
       * URL 호출로 Fix
       */
      QStringList slFixHandle;
      slFixHandle = m_pDPcon->getFixHandle();
      if ( slFixHandle.count() > 0 )
      {
            QString sURL("http://203.226.253.126/exipml35/buddy_error_fix.jsp");
            sURL += "?cmn=";
            sURL += m_pCurrentAccount->getMyCMN();
            sURL += "&ticket=";
            sURL += m_pCurrentAccount->getMyTicket();
            
            for ( QStringList::Iterator it = slFixHandle.begin(); it != slFixHandle.end(); ++it )
            {
                  sURL += "&buddycmn=";
                  sURL += *it;
                  sURL += "&gid=0";
            }
            if ( !pFixBuddyCGI)
            {
                  pFixBuddyCGI= new WebCGI();
            }
#ifdef NETDEBUG
            kdDebug() << "URL : " << sURL << endl;
#endif
            pFixBuddyCGI->start( sURL );
      }
  
      /*! 환경설정파일에 저장 */
      QString sProfile("Profile_");
      if ( stConfig.logintype == 'C' )
            sProfile += m_pCurrentAccount->getMyCyworldID();
      else
            sProfile += m_pCurrentAccount->getMyNateID();
      config->setGroup( sProfile );
      /*!
        $HOME/.kde/apps/knateon/{ID}/ 디렉토리 생성
        <주의> 뒤에 "/"를 꼭 붙여야 디렉토리 생성이 됨.
      */
      if ( stConfig.logintype == 'C' )
      {
            sMemoDataPath = locateLocal( "appdata", m_pCurrentAccount->getMyCyworldID() + "/memodata/", true );
            config->writeEntry("MemoPath", sMemoDataPath );
            sChatDataPath = locateLocal( "appdata", m_pCurrentAccount->getMyCyworldID() + "/chatdata/", true );
            config->writeEntry("ChatPath", sChatDataPath );
            sDataPath = locateLocal( "appdata", m_pCurrentAccount->getMyCyworldID() + "/", true );
      }
      else
      {
            sMemoDataPath = locateLocal( "appdata", m_pCurrentAccount->getMyNateID() + "/memodata/", true );
            config->writeEntry("MemoPath", sMemoDataPath );
            sChatDataPath = locateLocal( "appdata", m_pCurrentAccount->getMyNateID() + "/chatdata/", true );
            config->writeEntry("ChatPath", sChatDataPath );
            sDataPath = locateLocal( "appdata", m_pCurrentAccount->getMyNateID() + "/", true );
      }
      config->sync();
      
      if ( pSQLiteDB )
      {
            pSQLiteDB->createMemoDB( sMemoDataPath );
            pSQLiteDB->createChatDB( sChatDataPath );
            pSQLiteDB->createUserDB( sDataPath );
            pSQLiteDB->createP2PDB( sDataPath );
        stConfig.p2pdbfilepath = sDataPath + "p2p.db";
      }

      /*! 메뉴를 사용할 수 있도록 enable() 시킴 */
      OnlineEnableMenu();

      config->setGroup( "Config_General" );
      
      /*! 항상위 체크 후 항상 위 */
      stConfig.alwaystop = config->readBoolEntry( "Always_Top", false );
      slotMenuAlwaysTop( stConfig.alwaystop );
      pAlwaystopAction->setChecked ( stConfig.alwaystop );

      /*! 버디 리스트 저장 */
      saveUserDB();

      /*! 싸이월드 정보 저장 */
      stConfig.cyid = m_pCurrentAccount->getMyCyworldID();
      stConfig.cycmn = m_pCurrentAccount->getMyCyworldCMN();
      if ( ( m_pCurrentAccount->getMyCyworldCMN() == "%00" ) ||
             ( m_pCurrentAccount->getMyCyworldCMN() == "" ) )
      {
            stConfig.usecyworld = false;
      }
      else
      {
            stConfig.usecyworld = true;
      }

      /*! 네이트닷컴 정보 저장 */
      stConfig.nateid = m_pCurrentAccount->getMyNateID();
      stConfig.natecmn = m_pCurrentAccount->getMyNateCMN();
      if ( ( m_pCurrentAccount->getMyNateID() == "%00" ) ||
             ( m_pCurrentAccount->getMyNateID() == "" ) )
      {
            stConfig.usenatedotcom = false;
      }
      else
      {
            stConfig.usenatedotcom = true;
      }
  
      /*! 환경설정창 초기화 */
      m_pPreferenceView->initialize();

      if ( !bIsConnected )
      {
            connect( m_pDPcon, SIGNAL( receivedCPRF( const QStringList & ) ), SLOT( slotCPRF( const QStringList & ) ) );
            /*! 싸이 메인 클릭하면, */
            connect( m_pMainView->PB_Cyworld, SIGNAL( clicked() ), SLOT( slotGoCyMain() ) );
            /*! 내 미니홈피를 클릭하면, */
            connect( m_pMainView->PB_Hompy, SIGNAL( clicked() ), SLOT( slotGoMyMinihompy() ) );
            /*! 설정창 보이기 */
            connect( pSetupAction, SIGNAL( activated() ), SLOT( slotSetup() ) );

            /*! 닉 바꾸기 */
            connect( pChangenickAction, SIGNAL( activated() ), SLOT( slotShowChangeNick() ) );
            connect( m_pMainView->pChangenickAction, SIGNAL( activated() ), SLOT( slotShowChangeNick() ) );

            /*! 본인의 프로필 보기 */
            connect( m_pMainView->pViewprofileAction, SIGNAL( activated() ), SLOT( slotShowProfile() ) );

            /*! 본인의 프로필 수정 */
            connect( m_pMainView->pEditprofileAction, SIGNAL( activated() ), SLOT( slotEditProfile() ) );
      }
  
      bIsConnected = true;
      if ( stConfig.hidestart )
      {
            hide();
      }
  
      /*!
        버디 리스트를 정렬해서 보여줌.
        옵션은 OnlyOnline은 true
      */
      m_pMainView->slotEmoticonList( stConfig.viewemoticonlist );

      /*! system tray 메뉴 */
      pLoginAction->setEnabled( false );

    /*! 타이머 설정 */
      m_pCurrentAccount->setUseIdleTimer( stConfig.checkawaytime );
      m_pCurrentAccount->setIdleTime( stConfig.awaytime );

      /*! 오프라인으로 접속 설정 */
      if ( m_pLoginView->hideLoginCheckBox->isChecked() )
      {
            slotChangeStatusNumber( 5 );
      }
      else /*! 온라인으로 접속 설정 */
      {
            slotChangeStatusNumber( 0 );
      }

      /*! C1, C2 주계정 정보 가지고 오기. */
      if ( !m_pC1C2Timer )
      {
            m_pC1C2Timer = new QTimer( this );
            connect( m_pC1C2Timer, SIGNAL( timeout() ), SLOT( slotC1C2() ) );
      }
      m_pC1C2Timer->start( 2000, TRUE );
      
      /*!
       * 접속되고 5초 후에
       * 쪽지개수 갱신 후
       * 새쪽지를 팝업으로 띄워줍니다.
       */
      if ( !m_pMemoPopupTimer )
      {
            m_pMemoPopupTimer = new QTimer( this );
            connect( m_pMemoPopupTimer, SIGNAL( timeout() ), SLOT( slotShowMemoPopup() ) );
      }
      m_pMemoPopupTimer->start( 10000, TRUE );
}


Generated by  Doxygen 1.6.0   Back to index