Logo Search packages:      
Sourcecode: kmess version File versions

void OfflineImService::deleteMessages ( const QStringList &  messageIds  ) 

SOAP call to delete messages from the remote storage.

Parameters:
messageIds List of messages to delete.

Definition at line 79 of file offlineimservice.cpp.

References passportCookieHeader_, and HttpSoapConnection::sendRequest().

{
#ifdef KMESSDEBUG_OFFLINE_IM_GENERAL
  kdDebug() << "OfflineImService: requesting deletion of messages: '" << messageIds.join("', '") << "'" << endl;
#endif
#ifdef KMESSTEST
  ASSERT( ! messageIds.isEmpty() );
#endif

  // Initialize request
  QString soapAction = "http://www.hotmail.msn.com/ws/2004/09/oim/rsi/DeleteMessages";
  QString soapBody =
      "    <DeleteMessages xmlns=\"http://www.hotmail.msn.com/ws/2004/09/oim/rsi\">\n"
      "      <messageIds>\n"
      "        <messageId>" + messageIds.join("</messageId>\n        <messageId>") + "</messageId>\n"
      "      </messageIds>\n"
      "    </DeleteMessages>";
  sendRequest( soapAction, soapBody, passportCookieHeader_ );
}


Generated by  Doxygen 1.6.0   Back to index