phoneapp/phoneuiqtviewadapter/inc/phonenotecontroller.h
changeset 72 c76a0b1755b9
parent 45 6b911d05207e
child 76 cfea66083b62
equal deleted inserted replaced
64:6aaf0276100e 72:c76a0b1755b9
    25 
    25 
    26 // FORWARD DECLARATION
    26 // FORWARD DECLARATION
    27 class TPhoneCommandParam;
    27 class TPhoneCommandParam;
    28 class TPhoneCmdParamQuery;
    28 class TPhoneCmdParamQuery;
    29 class TPhoneCmdParamGlobalNote;
    29 class TPhoneCmdParamGlobalNote;
    30 class HbDeviceMessageBox;
       
    31 class HbDeviceNotificationDialog;
       
    32 class HbDeviceProgressDialog;
       
    33 class HbProgressDialog;
    30 class HbProgressDialog;
    34 class HbMessageBox;
    31 class HbMessageBox;
    35 class HbAction;
    32 class HbAction;
    36 class QSignalMapper;
    33 class QSignalMapper;
    37 class QTimer;
    34 class QTimer;
    38 
    35 class PhoneGlobalNotes;
       
    36 class HbDialog;
    39 
    37 
    40 class PhoneNoteController : public QObject
    38 class PhoneNoteController : public QObject
    41 {
    39 {
    42     Q_OBJECT
    40     Q_OBJECT
    43     
    41     
   117         This signal is emitted when note action is handled.
   115         This signal is emitted when note action is handled.
   118     */
   116     */
   119     void command (int command);
   117     void command (int command);
   120     
   118     
   121 private slots:
   119 private slots:
   122 
       
   123     /*!
       
   124         \fn void destroyDialog()
       
   125         
       
   126         Slot is called when device message box is closed.
       
   127     
       
   128     */
       
   129     void destroyDialog();
       
   130 
       
   131     /*!
       
   132         \fn void destroyNotification()
       
   133         
       
   134         Slot is called when device notification dialog is closed.
       
   135     
       
   136     */
       
   137     void destroyNotification();
       
   138     
   120     
   139     /*!
   121     /*!
   140         \fn void removeMappings ()
   122         \fn void removeMappings ()
   141         
   123         
   142         Slot is called when note or query is closed.
   124         Slot is called when note or query is closed.
   143     
   125     
   144     */
   126     */
   145     void removeMappings();
   127     void removeMappings();
   146     
   128     
   147     /*!
       
   148         \fn void queryCancelled ()
       
   149         
       
   150         Slot is called when query is canceled.
       
   151     
       
   152     */
       
   153     void queryCancelled();
       
   154   
       
   155     /*!
       
   156         \fn void queryTimeout ()
       
   157         
       
   158         Slot is called when query timeout expires.
       
   159     
       
   160     */
       
   161     void queryTimeout();
       
   162     
       
   163 private:
   129 private:
   164 
   130 
   165     /*!
       
   166         \fn QString globalNoteText()
       
   167         
       
   168         This method returns text for global note.
       
   169     */
       
   170     QString globalNoteText(TPhoneCommandParam *commandParam);
       
   171     
       
   172     
       
   173     /*!
   131     /*!
   174         \fn void showDtmfNote()
   132         \fn void showDtmfNote()
   175         
   133         
   176         This method shows dtmf sending note.
   134         This method shows dtmf sending note.
   177     */
   135     */
   181         \fn void showDefaultQuery()
   139         \fn void showDefaultQuery()
   182         
   140         
   183         This method shows default query.
   141         This method shows default query.
   184     */
   142     */
   185     void showDefaultQuery(TPhoneCmdParamQuery* params);
   143     void showDefaultQuery(TPhoneCmdParamQuery* params);
   186 
       
   187     /*!
       
   188         \fn void showDefaultQuery()
       
   189         
       
   190         This method shows global wait note.
       
   191     */
       
   192     void showGlobalWaitNote(TPhoneCmdParamQuery* params);
       
   193 
       
   194     /*!
       
   195         \fn void showDeviceMessageBox()
       
   196         
       
   197         This method shows device message box.
       
   198     */
       
   199     void showDeviceMessageBox(TPhoneCmdParamGlobalNote* params);
       
   200     
   144     
   201     /*!
   145     
   202         \fn void showDeviceNotificationDialog()
   146     void replaceDialogActions(HbDialog *dialog, QList<HbAction *> &actions);
   203         
       
   204         This method shows device notification dialog.
       
   205     */
       
   206     void showDeviceNotificationDialog(TPhoneCmdParamGlobalNote* params);
       
   207     
   147     
   208 private:
   148 private:
   209 
   149     PhoneGlobalNotes *m_globalNotes;
   210     QTimer *m_timer;
       
   211     QList<HbDeviceMessageBox *> m_messageBoxList;
       
   212     QList<HbDeviceNotificationDialog* > m_notificationList;
       
   213     HbDeviceProgressDialog *m_progressDialog;
       
   214     HbProgressDialog *m_dtmfNote;
   150     HbProgressDialog *m_dtmfNote;
   215     HbMessageBox *m_queryNote;
   151     HbMessageBox *m_queryNote;
   216     QSignalMapper *m_signalMapper;
   152     QSignalMapper *m_signalMapper;
   217     QList<HbAction*> m_actions;
   153     QList<HbAction*> m_actions;
   218     int m_queryCanceledCommand;
       
   219     int m_timeoutCommand;
       
   220     
       
   221 };
   154 };
   222 
   155 
   223 #endif // PHONENOTECONTROLLER_H
   156 #endif // PHONENOTECONTROLLER_H