equal
deleted
inserted
replaced
15 */ |
15 */ |
16 |
16 |
17 #ifndef UNIFIED_EDITOR_SUBJECT_H |
17 #ifndef UNIFIED_EDITOR_SUBJECT_H |
18 #define UNIFIED_EDITOR_SUBJECT_H |
18 #define UNIFIED_EDITOR_SUBJECT_H |
19 |
19 |
20 #include <hbwidget.h> |
20 #include <msgunifiededitorbasewidget.h> |
21 |
21 |
22 #include "convergedmessage.h" |
22 #include "convergedmessage.h" |
23 |
23 |
24 class HbIconItem; |
24 class HbIconItem; |
25 class UniEditorGenUtils; |
25 class UniEditorGenUtils; |
26 class MsgUnifiedEditorLineEdit; |
26 class MsgUnifiedEditorLineEdit; |
27 |
27 |
28 class MsgUnifiedEditorSubject : public HbWidget |
28 class MsgUnifiedEditorSubject : public MsgUnifiedEditorBaseWidget |
29 { |
29 { |
30 Q_OBJECT |
30 Q_OBJECT |
31 |
31 |
32 public: |
32 public: |
33 |
33 |
34 /** |
34 /** |
35 * Constructor |
35 * Constructor |
36 */ |
36 */ |
37 MsgUnifiedEditorSubject(const QString& pluginPath, QGraphicsItem *parent = 0); |
37 MsgUnifiedEditorSubject(QGraphicsItem *parent = 0); |
38 |
38 |
39 /** |
39 /** |
40 * Destructor |
40 * Destructor |
41 */ |
41 */ |
42 ~MsgUnifiedEditorSubject(); |
42 ~MsgUnifiedEditorSubject(); |
65 /** |
65 /** |
66 * set the text on the subject field |
66 * set the text on the subject field |
67 * @param text |
67 * @param text |
68 */ |
68 */ |
69 void setText(const QString& text); |
69 void setText(const QString& text); |
|
70 |
|
71 /** |
|
72 * To set focus on editable field. |
|
73 */ |
|
74 void setFocus(); |
70 |
75 |
71 signals: |
76 signals: |
72 /** |
77 /** |
73 * Emitted when subject/priority content is added or removed |
78 * Emitted when subject/priority content is added or removed |
74 */ |
79 */ |
76 |
81 |
77 private slots: |
82 private slots: |
78 /** |
83 /** |
79 * called when contentsChanged signal is emitted by the line edit |
84 * called when contentsChanged signal is emitted by the line edit |
80 */ |
85 */ |
81 void onContentsAdded(const QString&); |
86 void onContentsChanged(const QString&); |
82 |
|
83 /** |
|
84 * Called when contentsChanged signal is emitted by the line edit |
|
85 * Checks for empty text content |
|
86 */ |
|
87 void onContentsRemoved(const QString& text); |
|
88 |
87 |
89 private: |
88 private: |
90 /** |
89 /** |
91 * Check if email over sms is supported. If yes, subject is a valid sms field |
90 * Check if email over sms is supported. If yes, subject is a valid sms field |
92 * @return true, if email over sms is supported. |
91 * @return true, if email over sms is supported. |
93 */ |
92 */ |
94 bool subjectOkInSms(); |
93 bool subjectOkInSms(); |
95 |
94 |
96 private: |
95 private: |
97 |
|
98 /** |
|
99 * plug in path. |
|
100 */ |
|
101 QString mPluginPath; |
|
102 |
96 |
103 /** |
97 /** |
104 * line edit to input subject. |
98 * line edit to input subject. |
105 */ |
99 */ |
106 MsgUnifiedEditorLineEdit* mSubjectEdit; |
100 MsgUnifiedEditorLineEdit* mSubjectEdit; |
117 |
111 |
118 /** |
112 /** |
119 * general utilities |
113 * general utilities |
120 */ |
114 */ |
121 UniEditorGenUtils* mGenUtils; |
115 UniEditorGenUtils* mGenUtils; |
|
116 |
|
117 /** |
|
118 * Holds the previous buffer inside subject field |
|
119 */ |
|
120 QString mPrevBuffer; |
122 }; |
121 }; |
123 |
122 |
124 #endif //UNIFIED_EDITOR_SUBJECT_H |
123 #endif //UNIFIED_EDITOR_SUBJECT_H |