equal
deleted
inserted
replaced
21 #include <QTimer> |
21 #include <QTimer> |
22 #include <HbMenu> |
22 #include <HbMenu> |
23 |
23 |
24 // USER INCLUDES |
24 // USER INCLUDES |
25 #include "msgmediautil.h" |
25 #include "msgmediautil.h" |
26 #include "univiewerutils.h" |
26 #include "msgservicelaunchutil.h" |
27 #include "unidatamodelplugininterface.h" |
27 #include "unidatamodelplugininterface.h" |
28 |
28 |
29 // LOCAL CONSTANTS |
29 // LOCAL CONSTANTS |
30 #define LOC_OPEN hbTrId("txt_common_menu_open") |
30 #define LOC_OPEN hbTrId("txt_common_menu_open") |
31 |
31 |
149 void UniViewerAudioWidget::handleOpen() |
149 void UniViewerAudioWidget::handleOpen() |
150 { |
150 { |
151 this->ungrabGesture(Qt::TapGesture); |
151 this->ungrabGesture(Qt::TapGesture); |
152 |
152 |
153 if (!mViewerUtils) { |
153 if (!mViewerUtils) { |
154 mViewerUtils = new UniViewerUtils(this); |
154 mViewerUtils = new MsgServiceLaunchUtil(this); |
155 } |
155 } |
156 mViewerUtils->launchContentViewer(mMimeType, mMediaPath); |
156 mViewerUtils->launchContentViewer(mMimeType, mMediaPath); |
157 |
157 |
158 //fire timer to regrab gesture after some delay. |
158 //fire timer to regrab gesture after some delay. |
159 QTimer::singleShot(300,this,SLOT(regrabGesture())); |
159 QTimer::singleShot(300,this,SLOT(regrabGesture())); |
160 } |
160 } |
|
161 |
|
162 |
161 |
163 |
162 //--------------------------------------------------------------- |
164 //--------------------------------------------------------------- |
163 // UniViewerAudioWidget::regrabGesture |
165 // UniViewerAudioWidget::regrabGesture |
164 // @see header file |
166 // @see header file |
165 //--------------------------------------------------------------- |
167 //--------------------------------------------------------------- |