We call our module alarm. And again, after studying the services offered by the alarm server API, we specify it:
| Key | Contents |
| msg | The message text of the alarm. |
| due | The next due time of the alarm. |
| sound | The sound file played when the alarm expires. |
| enabled | Whether the alarm is enabled. |
|
#include "NativeModule.h" #include <asclisession.h> #include <asshdalarm.h> class AlarmModule : public NativeModule { private: enum Functions { AddFunction, AllFunction, DeleteFunction, GetFunction, OnFunction, WaitFunction }; RASCliSession session; TASShdAlarm alarm; // destroying the mod |