src/hbwidgets/devicedialogs/hbdevicemessagebox.cpp
changeset 1 f7ac710697a9
parent 0 16d8024aca5e
child 2 06ff229162e9
equal deleted inserted replaced
0:16d8024aca5e 1:f7ac710697a9
   572     <b>Note that starting an event loop isn't compatible with gestures.</b> Therefore if an application
   572     <b>Note that starting an event loop isn't compatible with gestures.</b> Therefore if an application
   573     has an user interface, please don't use this function. Instead connect to signals and use
   573     has an user interface, please don't use this function. Instead connect to signals and use
   574     asynchronous show().
   574     asynchronous show().
   575 
   575 
   576     \deprecated HbDeviceMessageBox::exec()
   576     \deprecated HbDeviceMessageBox::exec()
   577     is deprecated. Replaced by const QAction *HbDeviceMessageBox::exec() const.
   577         is deprecated. Replaced by const QAction *HbDeviceMessageBox::exec() const.
   578 
   578 
   579 */
   579 */
   580 HbAction *HbDeviceMessageBox::exec()
   580 HbAction *HbDeviceMessageBox::exec()
   581 {
   581 {
   582     TRACE_ENTRY
   582     TRACE_ENTRY
   760 /*!
   760 /*!
   761     Returns device message box primary action.
   761     Returns device message box primary action.
   762 
   762 
   763     \sa setPrimaryAction()
   763     \sa setPrimaryAction()
   764 
   764 
   765     \deprecated HbDeviceMessageBox::primaryAction()
   765     \deprecated HbDeviceMessageBox::primaryAction() const
   766     is deprecated. Replaced by HbDeviceMessageBox::action(ActionRole role) const.
   766         is deprecated. Replaced by HbDeviceMessageBox::action(ActionRole role) const.
   767 
   767 
   768 */
   768 */
   769 HbAction* HbDeviceMessageBox::primaryAction() const
   769 HbAction* HbDeviceMessageBox::primaryAction() const
   770 {
   770 {
   771     //qWarning("HbDeviceMessageBox: HbAction API:s deprecated! Use action()");
   771     //qWarning("HbDeviceMessageBox: HbAction API:s deprecated! Use action()");
   786 
   786 
   787     \param action Action or null. Ownership doesn't transfer.
   787     \param action Action or null. Ownership doesn't transfer.
   788 
   788 
   789     \sa primaryAction()
   789     \sa primaryAction()
   790 
   790 
   791     \deprecated HbDeviceMessageBox::setPrimaryAction(HbAction *action)
   791     \deprecated HbDeviceMessageBox::setPrimaryAction(HbAction*)
   792     is deprecated. HbDeviceMessageBox::setAction(QAction *action, ActionRole role).
   792         is deprecated. HbDeviceMessageBox::setAction(QAction *action, ActionRole role).
   793 
   793 
   794 */
   794 */
   795 void HbDeviceMessageBox::setPrimaryAction(HbAction *action)
   795 void HbDeviceMessageBox::setPrimaryAction(HbAction *action)
   796 {
   796 {
   797     TRACE_ENTRY
   797     TRACE_ENTRY
   804 /*!
   804 /*!
   805     Returns device message box secondary action.
   805     Returns device message box secondary action.
   806 
   806 
   807     \sa setSecondaryAction()
   807     \sa setSecondaryAction()
   808 
   808 
   809     \deprecated HbDeviceMessageBox::secondaryAction()
   809     \deprecated HbDeviceMessageBox::secondaryAction() const
   810     is deprecated. Replaced by HbDeviceMessageBox::action(ActionRole role) const.
   810         is deprecated. Replaced by HbDeviceMessageBox::action(ActionRole role) const.
   811 
   811 
   812 */
   812 */
   813 HbAction* HbDeviceMessageBox::secondaryAction() const
   813 HbAction* HbDeviceMessageBox::secondaryAction() const
   814 {
   814 {
   815     //qWarning("HbDeviceMessageBox: HbAction API:s deprecated! Use action()");
   815     //qWarning("HbDeviceMessageBox: HbAction API:s deprecated! Use action()");
   831 
   831 
   832     \param action Action or null.
   832     \param action Action or null.
   833 
   833 
   834     \sa secondaryAction()
   834     \sa secondaryAction()
   835 
   835 
   836     \deprecated HbDeviceMessageBox::setSecondaryAction(HbAction *action)
   836     \deprecated HbDeviceMessageBox::setSecondaryAction(HbAction*)
   837     is deprecated. HbDeviceMessageBox::setAction(QAction *action, ActionRole role).
   837         is deprecated. HbDeviceMessageBox::setAction(QAction *action, ActionRole role).
   838 */
   838 */
   839 void HbDeviceMessageBox::setSecondaryAction(HbAction *action)
   839 void HbDeviceMessageBox::setSecondaryAction(HbAction *action)
   840 {
   840 {
   841     TRACE_ENTRY
   841     TRACE_ENTRY
   842     //qWarning("HbDeviceMessageBox: HbAction API:s deprecated! Use setAction()");
   842     //qWarning("HbDeviceMessageBox: HbAction API:s deprecated! Use setAction()");