lib/commonAPI/coreapi/ext/platform/qt/src/CNotificationImpl.cpp in rhodes-5.5.18 vs lib/commonAPI/coreapi/ext/platform/qt/src/CNotificationImpl.cpp in rhodes-6.0.11
- old
+ new
@@ -5,10 +5,11 @@
extern "C" void alert_show_popup_ex(const rho::Hashtable<rho::String, rho::String>& propertyMap, rho::apiGenerator::CMethodResult& oResult);
extern "C" void alert_hide_popup();
extern "C" void alert_show_status_ex(const char* szTitle, const char* szMessage, const char* szHide, rho::apiGenerator::CMethodResult& oResult);
extern "C" void alert_vibrate(int duration_ms);
extern "C" void alert_play_file(char* file_name, char* media_type);
+extern "C" void notification_beep(const rho::Hashtable<rho::String, rho::String>& propertyMap);
namespace rho {
using namespace apiGenerator;
using namespace common;
@@ -38,11 +39,11 @@
alert_play_file((char*)path.c_str(), (char*)media_type.c_str());
}
virtual void beep(const Hashtable<String, String>& propertyMap, CMethodResult& oResult)
{
- // TODO: implement
+ notification_beep(propertyMap);
}
virtual void vibrate(int duration, CMethodResult& oResult)
{
alert_vibrate(duration);
@@ -66,6 +67,6 @@
{
rho::CNotificationFactory::setInstance( new rho::CNotificationFactory() );
rho::Init_Notification_API();
RHODESAPP().getExtManager().requireRubyFile("RhoNotificationApi");
-}
\ No newline at end of file
+}