--- a/Msrp/MsrpServer/inc/MMSRPIncomingMessage.h Sat Jun 12 14:30:11 2010 +0530
+++ b/Msrp/MsrpServer/inc/MMSRPIncomingMessage.h Thu Nov 25 13:59:42 2010 +0200
@@ -24,6 +24,7 @@
class MMSRPMessageObserver;
class CMSRPMessage;
class CMSRPResponse;
+class CMSRPReport;
class MMSRPConnection;
@@ -46,16 +47,38 @@
virtual TMSRPMessageType MessageType( ) = 0;
- virtual CMSRPMessage* GetIncomingMessage( ) = 0;
+ /**
+ * Returns the message instance belogning to this class
+ * @return MSRP message owned by this class, ownership is not transferred!
+ */
+ virtual CMSRPMessage* GetIncomingMessage( ) const = 0;
- virtual TBool SendResponseL( MMSRPMessageObserver* aMessageObserver,
+ virtual void SendResponseL( MMSRPMessageObserver* aMessageObserver,
MMSRPConnection& aConnection, TUint aResponseCode )=0;
-
+ /**
+ * Sends a report request to client
+ * @param aMessageObserver incoming message observer entity
+ * @param aConnection connection instance
+ * @param aStatusCode status code for the response
+ * @return true if report was sent
+ */
+ virtual TBool SendReportL( MMSRPMessageObserver* aMessageObserver,
+ MMSRPConnection& aConnection, TUint aStatusCode ) = 0;
+
virtual TDesC8& TransactionId( ) = 0;
- virtual CMSRPResponse* GetIncomingResponse( ) = 0;
-
+ /**
+ * Returns the response instance belogning to this class
+ * @return MSRP response owned by this class, ownership is not transferred!
+ */
+ virtual CMSRPResponse* GetIncomingResponse( ) const = 0;
+
+ /**
+ * Returns the report instance belogning to this class
+ * @return MSRP response owned by this class, ownership is not transferred!
+ */
+ virtual CMSRPReport* GetIncomingReport( ) const = 0;
};
#endif /* MMSRPINCOMINGMESSAGE_H_ */