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

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 123 of file offlineimservice.cpp.

References passportCookieHeader_, and PassportLoginService::sendSecureRequest().

{
#ifdef KMESSDEBUG_OFFLINE_IM_GENERAL
  kDebug() << "requesting deletion of messages:" << messageIds;
#endif
#ifdef KMESSTEST
  KMESS_ASSERT( ! messageIds.isEmpty() );
#endif

  QString body( "    <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>" );

  sendSecureRequest( new SoapMessage( SERVICE_URL_INCOMING_OFFLINE_IM_SERVICE,
                                      "http://www.hotmail.msn.com/ws/2004/09/oim/rsi/DeleteMessages",
                                      passportCookieHeader_,
                                      body ) );
}


Generated by  Doxygen 1.6.0   Back to index