Sha256: b8bcb684e69badbd6c30caf6b3b036b4e4480ee1193861d57ee58ee7b88884b2
Contents?: true
Size: 998 Bytes
Versions: 33
Compression:
Stored size: 998 Bytes
Contents
#ifndef __RINGTONE_MANAGER__H__ #define __RINGTONE_MANAGER__H__ #include "ext/rho/rhoruby.h" #if defined(_WIN32_WCE) #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
33 entries across 33 versions & 1 rubygems