inc/convergedmessage.h
changeset 70 a15d9966050f
parent 34 84197e66a4bd
--- a/inc/convergedmessage.h	Thu Sep 02 20:23:03 2010 +0300
+++ b/inc/convergedmessage.h	Fri Sep 17 08:28:39 2010 +0300
@@ -102,7 +102,9 @@
     enum MessageProperty
         {
         Unread = 0x0001,
-        Attachment = 0x0002
+        Attachment = 0x0002,
+        /** TP-RP (Reply Path) Found in first octet of Submit and Deliver. */
+        ReplyPath = 0x0004
         };
 
     /**
@@ -411,6 +413,33 @@
      * @param stream data stream from which data is deserialized. 
      */
     void deserialize(QDataStream &stream);
+    
+    /**
+     * Sets the message property, if reply-path is present
+     * @param replypath, TP-RP (Reply Path) Found in first octet of
+     * Submit and Deliver PDU
+     */
+    void setReplyPath(bool replypath = true);
+    
+    /**
+     * Tells if the reply-path is set for this message
+     * @return bool, if the reply-path exists
+     */
+    bool replyPath();
+    
+    /**
+     * Set originating service center address. This is used for reply
+     * purposes, if the reply-via-same-smsc flag is ON
+     * @param scaddress, service center address
+     */
+    void setOriginatingSC(const QString& scaddress);
+    
+    /**
+     * Get originating service center address,
+     * if preserved for reply-via-same-smsc
+     * @return originating service center address
+     */
+    const QString& originatingSC() const;
 
 private:
     /**