Sha256: 918026e4f9ae83d4de38139cbffe23f80a692fc15c9814c7d339ddc4ba77592b
Contents?: true
Size: 1 KB
Versions: 23
Compression:
Stored size: 1 KB
Contents
#ifndef __RINGTONE_MANAGER__H__ #define __RINGTONE_MANAGER__H__ #include "ext/rho/rhoruby.h" #if _WIN32_WCE > 0x501 && !defined( OS_PLATFORM_CE ) #include "logging/RhoLog.h" #include "common/RhoMutexLock.h" #include <soundfile.h> using namespace rho; using namespace rho::common; class CRingtoneManager { DEFINE_LOGCLASS; public: static CRingtoneManager& getCRingtoneManager(); void getAllRingtones (Hashtable<String, String> &ringtones); void play (String ringtoneName); void stop (); private: CRingtoneManager (); ~CRingtoneManager (); CRingtoneManager (CRingtoneManager const&) {} CRingtoneManager& operator= (CRingtoneManager const&){} static void createCRingtoneManager(); static CRingtoneManager *m_pInstance; static CMutex m_mxRMLocker; HSOUND m_hSound; }; #endif extern "C" VALUE rho_ringtone_manager_get_all(); extern "C" void rho_ringtone_manager_stop(); extern "C" void rho_ringtone_manager_play(char* file_name); #endif
Version data entries
23 entries across 23 versions & 1 rubygems