author | hgs |
Fri, 15 Oct 2010 12:58:46 +0300 | |
changeset 78 | baacf668fe89 |
parent 76 | cfea66083b62 |
permissions | -rw-r--r-- |
37 | 1 |
/*! |
2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 |
* All rights reserved. |
|
4 |
* This component and the accompanying materials are made available |
|
5 |
* under the terms of "Eclipse Public License v1.0" |
|
6 |
* which accompanies this distribution, and is available |
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 |
* |
|
9 |
* Initial Contributors: |
|
10 |
* Nokia Corporation - initial contribution. |
|
11 |
* |
|
12 |
* Contributors: |
|
13 |
* |
|
14 |
* Description: Handles phone notes. |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
#ifndef PHONENOTECONTROLLER_H |
|
19 |
#define PHONENOTECONTROLLER_H |
|
20 |
||
21 |
#include <QObject> |
|
22 |
#include <QString> |
|
23 |
#include "tphonecmdparamnote.h" |
|
24 |
||
25 |
// FORWARD DECLARATION |
|
26 |
class TPhoneCommandParam; |
|
27 |
class TPhoneCmdParamQuery; |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
28 |
class TPhoneCmdParamGlobalNote; |
37 | 29 |
class HbProgressDialog; |
30 |
class HbMessageBox; |
|
31 |
class HbAction; |
|
32 |
class QSignalMapper; |
|
33 |
class QTimer; |
|
65 | 34 |
class PhoneGlobalNotes; |
35 |
class HbDialog; |
|
78 | 36 |
class XQSystemToneService; |
37 | 37 |
|
38 |
class PhoneNoteController : public QObject |
|
39 |
{ |
|
40 |
Q_OBJECT |
|
41 |
||
42 |
public: |
|
43 |
||
44 |
/*! |
|
78 | 45 |
\fn PhoneNoteController (XQSystemToneService& toneservice, |
46 |
QObject *parent) |
|
37 | 47 |
*/ |
78 | 48 |
PhoneNoteController(XQSystemToneService& toneservice, |
49 |
QObject *parent = 0); |
|
37 | 50 |
|
51 |
/*! |
|
52 |
Destructor |
|
53 |
*/ |
|
54 |
virtual ~PhoneNoteController (); |
|
55 |
||
56 |
/*! |
|
57 |
\fn void showGlobalNote () |
|
58 |
||
59 |
This method shows global note. |
|
60 |
||
61 |
*/ |
|
62 |
void showGlobalNote(TPhoneCommandParam *commandParam); |
|
63 |
||
64 |
/*! |
|
65 |
\fn void showNote () |
|
66 |
||
67 |
This method shows a note. |
|
68 |
||
69 |
*/ |
|
70 |
void showNote(TPhoneCommandParam *commandParam); |
|
71 |
||
72 |
/*! |
|
73 |
\fn void showNote () |
|
74 |
||
75 |
This method shows a query. |
|
76 |
||
77 |
*/ |
|
78 |
void showQuery(TPhoneCommandParam *commandParam); |
|
79 |
||
80 |
/*! |
|
81 |
\fn void removeDtmfNote () |
|
82 |
||
83 |
This method removes dtmf note. |
|
84 |
||
85 |
*/ |
|
86 |
void removeDtmfNote(); |
|
87 |
||
88 |
/*! |
|
89 |
\fn void removeNote() |
|
90 |
||
91 |
This method removes notes. |
|
92 |
||
93 |
*/ |
|
94 |
void removeNote(); |
|
95 |
||
96 |
/*! |
|
97 |
\fn void removeQuery() |
|
98 |
||
99 |
This method removes queries. |
|
100 |
||
101 |
*/ |
|
102 |
void removeQuery(); |
|
103 |
||
104 |
/*! |
|
105 |
\fn void removeGlobalWaitNote() |
|
106 |
||
107 |
This method removes global wait note. |
|
108 |
||
109 |
*/ |
|
110 |
void removeGlobalWaitNote(); |
|
111 |
||
112 |
signals: |
|
113 |
||
114 |
/*! |
|
115 |
\fn void command(int command) |
|
116 |
||
117 |
This signal is emitted when note action is handled. |
|
118 |
*/ |
|
119 |
void command (int command); |
|
120 |
||
121 |
private slots: |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
122 |
|
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
123 |
/*! |
37 | 124 |
\fn void removeMappings () |
125 |
||
126 |
Slot is called when note or query is closed. |
|
127 |
||
128 |
*/ |
|
129 |
void removeMappings(); |
|
130 |
||
131 |
private: |
|
132 |
||
133 |
/*! |
|
134 |
\fn void showDtmfNote() |
|
135 |
||
136 |
This method shows dtmf sending note. |
|
137 |
*/ |
|
138 |
void showDtmfNote(TPhoneCmdParamNote* noteParam); |
|
139 |
||
140 |
/*! |
|
141 |
\fn void showDefaultQuery() |
|
142 |
||
143 |
This method shows default query. |
|
144 |
*/ |
|
145 |
void showDefaultQuery(TPhoneCmdParamQuery* params); |
|
65 | 146 |
|
76 | 147 |
/*! |
148 |
\fn void replaceDialogActions() |
|
149 |
||
150 |
This method replaces dialog actions. |
|
151 |
*/ |
|
152 |
void replaceDialogActions(HbDialog *dialog, |
|
153 |
QList<HbAction *> &actions, bool deleteOldActions = true); |
|
37 | 154 |
|
155 |
private: |
|
65 | 156 |
PhoneGlobalNotes *m_globalNotes; |
37 | 157 |
HbProgressDialog *m_dtmfNote; |
158 |
HbMessageBox *m_queryNote; |
|
159 |
QSignalMapper *m_signalMapper; |
|
160 |
QList<HbAction*> m_actions; |
|
161 |
}; |
|
162 |
||
163 |
#endif // PHONENOTECONTROLLER_H |