20 #ifndef VMBXQTUIHANDLER_H |
20 #ifndef VMBXQTUIHANDLER_H |
21 #define VMBXQTUIHANDLER_H |
21 #define VMBXQTUIHANDLER_H |
22 |
22 |
23 // INCLUDES |
23 // INCLUDES |
24 #include <QObject> |
24 #include <QObject> |
|
25 #include <QTranslator> |
25 #include <voicemailboxdefs.h> |
26 #include <voicemailboxdefs.h> |
26 |
27 |
|
28 #include "voicemailboxdefsinternal.h" |
|
29 |
27 // FORWARD DECLARATION |
30 // FORWARD DECLARATION |
|
31 class CVoiceMailboxEntry; |
|
32 class TVoiceMailboxParams; |
|
33 class HbInputDialog; |
28 |
34 |
29 |
|
30 // CLASS DECLARATION |
35 // CLASS DECLARATION |
31 |
36 |
32 /** |
37 /** |
33 * Dialog manager |
38 * Dialog manager |
34 * |
39 * |
35 * @lib vmbxengine.lib |
40 * @lib vmbxengine.lib |
36 * @since S60 v5.2 |
|
37 */ |
41 */ |
38 NONSHARABLE_CLASS( VmbxQtUiHandler ): public QObject |
42 class VmbxQtUiHandler : public QObject |
39 { |
43 { |
40 |
44 Q_OBJECT |
|
45 |
41 public: // Constructors and destructor |
46 public: // Constructors and destructor |
42 |
47 |
43 /** |
48 /** |
44 * C++ default constructor. |
49 * C++ default constructor. |
45 * |
50 * |
46 * @since S60 v5.2 |
|
47 */ |
51 */ |
48 VmbxQtUiHandler(QObject* parent = 0 ); |
52 VmbxQtUiHandler(QObject* parent = 0 ); |
49 |
53 |
50 /** |
54 /** |
51 * Destructor. |
55 * Destructor. |
52 */ |
56 */ |
53 ~VmbxQtUiHandler(); |
57 virtual ~VmbxQtUiHandler(); |
|
58 |
|
59 /** |
|
60 * Initialize, load qt translator. |
|
61 */ |
|
62 void init(); |
54 |
63 |
55 /** |
64 /** |
56 * Show mailbox query dialog |
65 * Show mailbox query dialog |
57 * |
66 * |
58 * @since S60 v5.2 |
|
59 * @param aType in TVmbxType type |
67 * @param aType in TVmbxType type |
60 * @param aMode Tin VmbxQueryMode mode |
|
61 * @param aNumber the voice mailbox number |
68 * @param aNumber the voice mailbox number |
62 * @param aResult out the result of dialog |
69 * @param aResult out the result of dialog |
63 */ |
70 */ |
64 void showVmbxQueryDialog(const TVmbxType& aType, |
71 void showVmbxQueryDialog(const TVmbxType& aType, |
65 const TVmbxQueryMode& aMode, |
72 QString& aNumber, int& aResult); |
66 QString& aNumber, int& aResult); |
|
67 |
73 |
68 /** |
74 /** |
69 * Show define number in selection dialog |
75 * Show define number in selection dialog |
70 * Leaves if user cancel selected. |
76 * Leaves if user cancel selected. |
71 * |
77 * |
72 * @since S60 v5.2 |
|
73 * @param in aType vmbx type |
78 * @param in aType vmbx type |
74 * @param out aResult the result of dialog |
79 * @param out aResult the result of dialog |
75 */ |
80 */ |
76 void showDefineSelectionDialog(TVmbxType& aType, int& aResult); |
81 void showDefineSelectionDialog(TVmbxType& aType, int& aResult); |
77 |
82 |
78 /** |
83 /** |
|
84 * Show call number in selection dialog |
|
85 * |
|
86 * @param in entryList array of the defined voice mailbox entry |
|
87 * @param out params the type TVoiceMailboxParams which should include |
|
88 * the service id and the type of seclected TVmbxType |
|
89 * @param out result the result user seclected |
|
90 */ |
|
91 void showCallSelectionDialog( |
|
92 const QList<CVoiceMailboxEntry *> entryList, |
|
93 TVoiceMailboxParams ¶ms, int &result ); |
|
94 |
|
95 /** |
79 * Show voice mailbox information number |
96 * Show voice mailbox information number |
80 * |
97 * |
81 * @since S60 v5.2 |
|
82 * @param aNoteType in TVmbxType type |
98 * @param aNoteType in TVmbxType type |
83 */ |
99 */ |
84 void showInformationNote(int aNoteType); |
100 void showInformationNote(const TVmbxNoteType aType); |
|
101 |
|
102 private slots: |
|
103 /** |
|
104 * update Ok button status according to user input string |
|
105 * |
|
106 * @param aInput User input string |
|
107 */ |
|
108 void updatePrimaryAction(const QString &aInput); |
|
109 |
|
110 private: |
85 |
111 |
86 /** |
112 /** |
87 * Show save empty number note |
113 * Translator vmbx localization |
88 * |
|
89 * @since S60 v5.2 |
|
90 * @param aType in TVmbxType type |
|
91 */ |
114 */ |
92 void showSaveEmptyNote(const TVmbxType& aType); |
115 QTranslator iTranslator; |
|
116 |
|
117 /** |
|
118 * Translator common localization |
|
119 */ |
|
120 QTranslator iCommonTranslator; |
|
121 |
|
122 /** |
|
123 * Query and Define mailbox dialog. Own |
|
124 */ |
|
125 HbInputDialog *iQueryDialog; |
|
126 |
93 }; |
127 }; |
94 |
128 |
95 #endif // VMBXQTUIHANDLER_H |
129 #endif // VMBXQTUIHANDLER_H |