equal
deleted
inserted
replaced
18 #ifndef UNIEDITORPLUGININTERFACE_H_ |
18 #ifndef UNIEDITORPLUGININTERFACE_H_ |
19 #define UNIEDITORPLUGININTERFACE_H_ |
19 #define UNIEDITORPLUGININTERFACE_H_ |
20 |
20 |
21 #include <QtPlugin> |
21 #include <QtPlugin> |
22 #include <msvstd.h> |
22 #include <msvstd.h> |
|
23 #include <gsmuelem.h> |
23 #include "convergedmessage.h" |
24 #include "convergedmessage.h" |
24 |
25 |
25 |
26 |
26 class UniEditorPluginInterface |
27 class UniEditorPluginInterface |
27 { |
28 { |
28 public: |
29 public: |
|
30 |
|
31 /** |
|
32 * Enum defining EditorOperation |
|
33 * @attention This enum can have values from 0 to 2 only. |
|
34 */ |
|
35 enum EditorOperation |
|
36 { |
|
37 Forward = 0, |
|
38 ReplyAll, |
|
39 Default |
|
40 }; |
29 |
41 |
30 /** |
42 /** |
31 * Destructor |
43 * Destructor |
32 */ |
44 */ |
33 virtual ~UniEditorPluginInterface() |
45 virtual ~UniEditorPluginInterface() |
39 * @return message type |
51 * @return message type |
40 */ |
52 */ |
41 virtual ConvergedMessage::MessageType messageType()=0; |
53 virtual ConvergedMessage::MessageType messageType()=0; |
42 |
54 |
43 /** |
55 /** |
44 * Converts message from message store into ConvergedMessage |
56 * Converts message from message store into ConvergedMessage |
|
57 * based on the operation |
45 * @param TMsvId id |
58 * @param TMsvId id |
|
59 * @param aOperation operation type |
46 * @return ConvergedMessage object is returned in successfull cases and |
60 * @return ConvergedMessage object is returned in successfull cases and |
47 * NULL is returned in failure cases. The ownership of the object |
61 * NULL is returned in failure cases. The ownership of the object |
48 * is transferred to the caller. |
62 * is transferred to the caller. |
49 */ |
63 */ |
50 virtual ConvergedMessage* convertFrom( TMsvId aId )=0; |
64 virtual ConvergedMessage* convertFrom( TMsvId aId, |
|
65 UniEditorPluginInterface::EditorOperation aOperation |
|
66 =UniEditorPluginInterface::Default)=0; |
51 |
67 |
52 /** |
68 /** |
53 * delete entry from drafts folder |
69 * delete entry from drafts folder |
54 * @param aId TMsvId of the message entry to be deleted |
70 * @param aId TMsvId of the message entry to be deleted |
55 */ |
71 */ |
79 * validate service settings |
95 * validate service settings |
80 * @param aEmailOverSms true if email over sms is supported, else false |
96 * @param aEmailOverSms true if email over sms is supported, else false |
81 * @return true/false |
97 * @return true/false |
82 */ |
98 */ |
83 virtual TBool validateService( TBool aEmailOverSms = EFalse ) = 0; |
99 virtual TBool validateService( TBool aEmailOverSms = EFalse ) = 0; |
|
100 |
|
101 /* |
|
102 * Turkish SMS(PREQ2265) specific... |
|
103 */ |
|
104 virtual void setEncodingSettings(TBool aUnicodeMode, |
|
105 TSmsEncoding aAlternativeEncodingType, TInt charSupportType)=0; |
|
106 |
|
107 /** |
|
108 * for deciding on reduced or full charset support |
|
109 */ |
|
110 virtual bool getNumPDUs(QString& aBuf, TInt& aNumOfRemainingChars, |
|
111 TInt& aNumOfPDUs, TBool& aUnicodeMode, |
|
112 TSmsEncoding& aAlternativeEncodingType)=0; |
84 |
113 |
85 }; |
114 }; |
86 |
115 |
87 Q_DECLARE_INTERFACE(UniEditorPluginInterface, |
116 Q_DECLARE_INTERFACE(UniEditorPluginInterface, |
88 "org.nokia.messaging.UniEditorPluginInterface/1.0") |
117 "org.nokia.messaging.UniEditorPluginInterface/1.0") |