Changeset 6294

Show
Ignore:
Timestamp:
06/14/08 06:24:08 (4 months ago)
Author:
flynd
Message:

Changed some calls to daemon to not use uin version of functions.

Location:
trunk/qt4-gui/src
Files:
7 modified

Legend:

Unmodified
Added
Removed
  • trunk/qt4-gui/src/core/signalmanager.cpp

    r6228 r6294  
    8282    case SIGNAL_ADDxSERVERxLIST: 
    8383      //TODO 
    84       gLicqDaemon->icqRenameUser(sig->Uin()); 
     84      gLicqDaemon->icqRenameUser(sig->Id()); 
    8585      break; 
    8686 
  • trunk/qt4-gui/src/dialogs/keyrequestdlg.cpp

    r5837 r6294  
    148148void KeyRequestDlg::openConnection() 
    149149{ 
    150   //TODO fix this in daemon 
    151   bool ok; 
    152   unsigned long uin = myId.toULong(&ok); 
    153   if (ok && myPpid == LICQ_PPID) 
    154     myIcqEventTag = gLicqDaemon->icqOpenSecureChannel(uin); 
     150  if (myPpid == LICQ_PPID) 
     151    myIcqEventTag = gLicqDaemon->icqOpenSecureChannel(myId.toLatin1().data()); 
    155152} 
    156153 
    157154void KeyRequestDlg::closeConnection() 
    158155{ 
    159   //TODO fix this in daemon 
    160   bool ok; 
    161   unsigned long uin = myId.toULong(&ok); 
    162   if (ok && myPpid == LICQ_PPID) 
    163     myIcqEventTag = gLicqDaemon->icqCloseSecureChannel(uin); 
     156  if (myPpid == LICQ_PPID) 
     157    myIcqEventTag = gLicqDaemon->icqCloseSecureChannel(myId.toLatin1().data()); 
    164158} 
    165159 
  • trunk/qt4-gui/src/dialogs/userinfodlg.cpp

    r6181 r6294  
    717717  { 
    718718    QString url; 
    719     url.sprintf("(http://%lu.homepage.icq.com/)", u->Uin()); 
     719    url.sprintf("(http://%s.homepage.icq.com/)", u->IdString()); 
    720720    lblICQHomepage->setText(tr("User has an ICQ Homepage ") + url); 
    721721  } 
  • trunk/qt4-gui/src/dialogs/userselectdlg.cpp

    r5837 r6294  
    9595    return; 
    9696  } 
    97   cmbUser->addItem(QString("%1 (%2)").arg(o->GetAlias()).arg(o->Uin())); 
     97  cmbUser->addItem(QString("%1 (%2)").arg(o->GetAlias()).arg(o->IdString())); 
    9898  edtPassword->setText(o->Password()); 
    9999  gUserManager.DropOwner(); 
  • trunk/qt4-gui/src/userevents/usersendcommon.cpp

    r6293 r6294  
    885885 
    886886      //TODO in the daemon 
    887       icqEventTag = gLicqDaemon->icqFileTransfer(strtoul(myUsers.front().c_str(), NULL, 10), 
     887      icqEventTag = gLicqDaemon->icqFileTransfer(myUsers.front().c_str(), 
    888888          ue->Filename(), ue->FileDescription(), filelist, level, !online); 
    889889 
  • trunk/qt4-gui/src/userevents/usersendfileevent.cpp

    r6180 r6294  
    224224  //TODO in daemon 
    225225  icqEventTag = gLicqDaemon->icqFileTransfer( 
    226       strtoul(myUsers.front().c_str(), NULL, 10), 
     226      myUsers.front().c_str(), 
    227227      myCodec->fromUnicode(myFileEdit->text()), 
    228228      myCodec->fromUnicode(myMessageEdit->toPlainText()), 
  • trunk/qt4-gui/src/userevents/userviewevent.cpp

    r6185 r6294  
    461461        // FIXME: must have been done in CICQDaemon 
    462462        gLicqDaemon->icqFileTransferAccept( 
    463             strtoul(myUsers.front().c_str(), NULL, 10), 
     463            myUsers.front().c_str(), 
    464464            fileDlg->LocalPort(), f->Sequence(), f->MessageID(), f->IsDirect(), 
    465465            f->FileDescription(), f->Filename(), f->FileSize()); 
     
    525525        // FIXME: must have been done in CICQDaemon 
    526526        gLicqDaemon->icqFileTransferRefuse( 
    527             strtoul(myUsers.front().c_str(), NULL, 10), 
     527            myUsers.front().c_str(), 
    528528            myCodec->fromUnicode(r->RefuseMessage()), myCurrentEvent->Sequence(), 
    529529            f->MessageID(), f->IsDirect());