inc/unieditorplugininterface.h
changeset 25 84d9eb65b26f
parent 23 238255e8b033
child 41 25fe1fe642e3
child 47 5b14749788d7
--- a/inc/unieditorplugininterface.h	Fri Apr 16 14:56:15 2010 +0300
+++ b/inc/unieditorplugininterface.h	Mon May 03 12:29:07 2010 +0300
@@ -20,12 +20,24 @@
 
 #include <QtPlugin>
 #include <msvstd.h>
+#include <gsmuelem.h>
 #include "convergedmessage.h"
 
 
 class UniEditorPluginInterface
 {
 public:
+    
+    /**
+     * Enum defining EditorOperation 
+     * @attention This enum can have values from 0 to 2 only.
+     */
+    enum EditorOperation
+    {
+        Forward = 0, 
+        ReplyAll, 
+        Default 
+    };
 
     /**
      * Destructor
@@ -41,13 +53,17 @@
 	virtual ConvergedMessage::MessageType messageType()=0;
 
     /**
-     * Converts message from message store into ConvergedMessage
+     * Converts message from message store into ConvergedMessage 
+     * based on the operation
      * @param TMsvId id
+     * @param aOperation operation type
      * @return ConvergedMessage object is returned in successfull cases and 
      *         NULL is returned in failure cases. The ownership of the object
      *         is transferred to the caller. 
      */
-    virtual ConvergedMessage* convertFrom( TMsvId aId )=0;
+    virtual ConvergedMessage* convertFrom( TMsvId aId,
+        UniEditorPluginInterface::EditorOperation aOperation
+        =UniEditorPluginInterface::Default)=0;
 
     /**
      * delete entry from drafts folder
@@ -81,6 +97,19 @@
      * @return true/false
      */
     virtual TBool validateService( TBool aEmailOverSms = EFalse ) = 0;
+    
+    /*
+     * Turkish SMS(PREQ2265) specific...
+     */
+    virtual void setEncodingSettings(TBool aUnicodeMode,
+        TSmsEncoding aAlternativeEncodingType, TInt charSupportType)=0;
+
+    /**
+     * for deciding on reduced or full charset support
+     */
+    virtual bool getNumPDUs(QString& aBuf, TInt& aNumOfRemainingChars,
+        TInt& aNumOfPDUs, TBool& aUnicodeMode,
+        TSmsEncoding& aAlternativeEncodingType)=0;
 
 };