src/hbwidgets/popups/hbmessagebox.cpp
changeset 28 b7da29130b0e
parent 23 e6ad4ef83b23
equal deleted inserted replaced
23:e6ad4ef83b23 28:b7da29130b0e
   157         break;
   157         break;
   158         
   158         
   159     }
   159     }
   160 
   160 
   161 }
   161 }
       
   162 #ifdef HB_EFFECTS
   162 void HbMessageBoxPrivate::_q_appearEffectEnded(HbEffect::EffectStatus status)
   163 void HbMessageBoxPrivate::_q_appearEffectEnded(HbEffect::EffectStatus status)
   163 {
   164 {
   164 
   165 
   165 #ifdef Q_OS_SYMBIAN 
   166 #ifdef Q_OS_SYMBIAN 
   166     
       
   167 
       
   168         if ( (status.reason == Hb::EffectFinished) ||  ( (status.reason == Hb::EffectCancelled) && (!mStartEffect) ))  {
   167         if ( (status.reason == Hb::EffectFinished) ||  ( (status.reason == Hb::EffectCancelled) && (!mStartEffect) ))  {
   169             CSystemToneService *pSystemTone = systemToneService();
   168             CSystemToneService *pSystemTone = systemToneService();
   170             if(!pSystemTone) {
   169             if(!pSystemTone) {
   171                 return ;
   170                 return ;
   172             }
   171             }
   187 #else 
   186 #else 
   188     Q_UNUSED(status);
   187     Q_UNUSED(status);
   189 
   188 
   190 #endif // Q_OS_SYMBIAN
   189 #endif // Q_OS_SYMBIAN
   191 }
   190 }
       
   191 #endif
   192 
   192 
   193 /*!
   193 /*!
   194     @beta
   194     @beta
   195     
   195     
   196     \class HbMessageBox
   196     \class HbMessageBox
   623     Q_D(const HbMessageBox);
   623     Q_D(const HbMessageBox);
   624     return d->mStandardButtons;
   624     return d->mStandardButtons;
   625 
   625 
   626 }
   626 }
   627 
   627 
       
   628 void HbMessageBox::showEvent(QShowEvent *event)
       
   629 {
       
   630 #ifndef HB_EFFECTS
       
   631     #ifdef Q_OS_SYMBIAN 
       
   632                 CSystemToneService *pSystemTone = systemToneService();
       
   633                 if(!pSystemTone) {
       
   634                     return ;
       
   635                 }
       
   636                 switch(mMessageBoxType) {
       
   637                 case HbMessageBox::MessageTypeInformation:
       
   638                     pSystemTone->PlayTone(CSystemToneService::EInformationBeep); 
       
   639                     break;
       
   640                 case HbMessageBox::MessageTypeWarning:
       
   641                     pSystemTone->PlayTone(CSystemToneService::EWarningBeep); 
       
   642                     break;
       
   643                 case HbMessageBox::MessageTypeQuestion:
       
   644                     pSystemTone->PlayTone(CSystemToneService::EConfirmationBeep); 
       
   645                 break;
       
   646                     default:
       
   647                     break;        
       
   648                 }
       
   649     #endif // Q_OS_SYMBIAN
       
   650 #endif //HB_EFFECTS
       
   651     HbDialog::showEvent(event);
       
   652 }
       
   653 
   628 /*!
   654 /*!
   629 
   655 
   630     \deprecated HbMessageBox::question(const QString&,QObject*,const char*,const QString&,const QString&,QGraphicsWidget*,QGraphicsScene*,QGraphicsItem*)
   656     \deprecated HbMessageBox::question(const QString&,QObject*,const char*,const QString&,const QString&,QGraphicsWidget*,QGraphicsScene*,QGraphicsItem*)
   631         is deprecated.
   657         is deprecated.
   632 
   658