equal
deleted
inserted
replaced
16 */ |
16 */ |
17 |
17 |
18 #ifndef MMS_CONFORMANCE_CHECK_OPERATION_H |
18 #ifndef MMS_CONFORMANCE_CHECK_OPERATION_H |
19 #define MMS_CONFORMANCE_CHECK_OPERATION_H |
19 #define MMS_CONFORMANCE_CHECK_OPERATION_H |
20 |
20 |
|
21 #include <QObject> |
|
22 |
21 #include <msgmediainfo.h> |
23 #include <msgmediainfo.h> |
22 #include <qstring.h> |
24 #include <qstring.h> |
23 |
25 |
24 #ifdef BUILD_MSGUI_UTILS_DLL |
26 #ifdef BUILD_MSGUI_UTILS_DLL |
25 #define MSGUI_UTILS_DLL_EXPORT Q_DECL_EXPORT |
27 #define MSGUI_UTILS_DLL_EXPORT Q_DECL_EXPORT |
28 #endif |
30 #endif |
29 |
31 |
30 class CMmsConformance; |
32 class CMmsConformance; |
31 class CMsgMediaResolver; |
33 class CMsgMediaResolver; |
32 class CDRMHelper; |
34 class CDRMHelper; |
33 |
35 class HbAction; |
34 |
36 |
35 enum MmsConformanceCheckErrors |
37 enum MmsConformanceCheckErrors |
36 { |
38 { |
37 EInsertSuccess = 0, EInsertQueryAbort, EInsertNotSupported |
39 EInsertSuccess = 0, EInsertQueryAbort, EInsertNotSupported |
38 }; |
40 }; |
42 * insertion into editor and also validates if the mms message |
44 * insertion into editor and also validates if the mms message |
43 * can be forwarded. |
45 * can be forwarded. |
44 * |
46 * |
45 */ |
47 */ |
46 |
48 |
47 class MSGUI_UTILS_DLL_EXPORT MmsConformanceCheck |
49 class MSGUI_UTILS_DLL_EXPORT MmsConformanceCheck : public QObject |
48 { |
50 { |
|
51 Q_OBJECT |
|
52 |
49 public: |
53 public: |
50 |
54 |
51 /** |
55 /** |
52 * Constructor |
56 * Constructor |
53 */ |
57 */ |
77 bool validateMsgForForward(int messageId); |
81 bool validateMsgForForward(int messageId); |
78 |
82 |
79 private: |
83 private: |
80 |
84 |
81 /* |
85 /* |
82 * Launch query dialog |
|
83 */ |
|
84 bool launchEditorQuery(); |
|
85 |
|
86 /* |
|
87 * Launch notification dialog |
86 * Launch notification dialog |
88 */ |
87 */ |
89 void showPopup(const QString& text); |
88 void showPopup(const QString& text); |
90 |
89 |
|
90 private slots: |
|
91 |
|
92 /** |
|
93 * This slot is called when insert media dialog is launched. |
|
94 * @param action selected action (yes or no). |
|
95 */ |
|
96 void onDialogInsertMedia(HbAction* action); |
91 private: |
97 private: |
92 |
98 |
93 /* |
99 /* |
94 * Mms creation mode |
100 * Mms creation mode |
95 */ |
101 */ |
97 |
103 |
98 /** |
104 /** |
99 * Max MMS composition size |
105 * Max MMS composition size |
100 */ |
106 */ |
101 int iMaxMmsSize; |
107 int iMaxMmsSize; |
|
108 |
|
109 /** |
|
110 * Conformance status |
|
111 */ |
|
112 TUint32 iConfStatus; |
102 |
113 |
103 }; |
114 }; |
104 #endif //MMS_CONFORMANCE_CHECK_OPERATION_H |
115 #endif //MMS_CONFORMANCE_CHECK_OPERATION_H |