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

void AddressBookService::retrieveAddressBook ( const QString &  fromTimestamp = QString()  ) 

Retrieve the address book.

I've read about a possible small alternative to the current "ABFindAll". It is: GET email@domain.com/LiveContacts/?Filter=LiveContacts(Contact(ID,IMAddress)) HTTP/1.1 Host: livecontacts.live.com Cookie: MSPAuth=.. It goes on with the headers as usual. Must be tested, I don't know if it works, or if the response is identical to that of the current AbFindAll.

Parameters:
fromTimestamp A timestamp to retrieve only AB changes after a certain moment.

Definition at line 426 of file addressbookservice.cpp.

References createCommonHeader(), and PassportLoginService::sendSecureRequest().

Referenced by MsnNotificationConnection::slotGotMembershipLists().

{
  QString body( "<ABFindAll xmlns=\"http://www.msn.com/webservices/AddressBook\">\n"
                "  <abId>00000000-0000-0000-0000-000000000000</abId>\n"
                "  <abView>Full</abView>\n" );
  if( fromTimestamp.isEmpty() )
  {
    body +=     "  <deltasOnly>false</deltasOnly>\n"
                "  <lastChange>0001-01-01T00:00:00.0000000-08:00</lastChange>\n";
  }
  else
  {
    body +=     "  <deltasOnly>true</deltasOnly>\n"
                "  <lastChange>" + fromTimestamp + "</lastChange>\n";
  }

  body +=       "</ABFindAll>";

  sendSecureRequest( new SoapMessage( SERVICE_URL_ADDRESSBOOK,
                                      "http://www.msn.com/webservices/AddressBook/ABFindAll",
                                      createCommonHeader(),
                                      body ),
                     "Contacts" );
}


Generated by  Doxygen 1.6.0   Back to index