📄 alarmserver.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- /home/edba/dist/qtopia/main-Sunday/qtopia/src/libraries/qtopia/alarmserver.cpp:278 --><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>AlarmServer Class</title><style type="text/css"><!--h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }a:link { color: #004faf; text-decoration: none }a:visited { color: #672967; text-decoration: none }body { background: #ffffff; color: black; }--></style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="200" align="left" valign="top"><a href="index.html"><img height="27" width="472" src="dochead.png" border="0"></a><br><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" align="center" size=32>Qtopia</font> <a href="index.html">Home</a> - <a href="qtopiaclasses.html">Classes</a> - <a href="qtopiaannotated.html">Annotated</a> - <a href="qtopiafunctions.html">Functions</a> - <a href="qtindex.html">Qt Embedded</a></td><td align="right" valign="top"> <table border="0" cellpadding="0" cellspacing="0" width="137"> <tr> <td><a href="http://www.trolltech.com/company/about/trolls.html"><img height="100" width="100" src="face.png" border="0"></a></td> <td><img height="100" width="100" src="qtlogo.png" align="top" border="0"></td> </tr> </table></td></tr></table><h1 align=center>AlarmServer Class Reference</h1><p>The AlarmServer class allows alarms to be scheduled and unscheduled.<a href="#details">More...</a><p><tt>#include <<a href="alarmserver-h.html">alarmserver.h</a>></tt><p><a href="alarmserver-members.html">List of all member functions.</a><h2>Static Public Members</h2><ul><li><div class=fn>void <a href="#addAlarm"><b>addAlarm</b></a> ( QDateTime when, const QCString & channel, const QCString & message, int data = 0 )</div></li><li><div class=fn>void <a href="#deleteAlarm"><b>deleteAlarm</b></a> ( QDateTime when, const QCString & channel, const QCString & message, int data = 0 )</div></li></ul><hr><a name="details"></a><h2>Detailed Description</h2>The AlarmServer class allows alarms to be scheduled and unscheduled.<p> Applications can schedule alarms with <a href="#addAlarm">addAlarm</a>() and canunschedule alarms with <a href="#deleteAlarm">deleteAlarm</a>(). When the time for an alarmto go off is reached the specified <a href="qcop.html">QCop</a>message is sent on the specified channel (optionally withadditional data).<p> Scheduling an alarm using this class is important (rather just usinga QTimer) since the machine may be asleep and needs to get woken up usingthe Linux kernel which implements this at the kernel level to minimizebattery usage while asleep.<p> <p>See also <a href="qcopenvelope.html">QCopEnvelope</a> and <a href="qtopiaemb.html">Qtopia Classes</a>.<hr><h2>Member Function Documentation</h2><h3 class=fn>void <a name="addAlarm"></a>AlarmServer::addAlarm ( QDateTime when, const QCString & channel, const QCString & message, int data = 0 )<tt> [static]</tt></h3>Schedules an alarm to go off at (or soon after) time <em>when</em>. Whenthe alarm goes off, the <a href="qcop.html">QCop</a> <em>message</em> willbe sent to <em>channel</em>, with <em>data</em> as a parameter.<p> If this function is called with exactly the same data as a previouscall the subsequent call is ignored, so there is only ever one alarmwith a given set of parameters.<p> <p>See also <a href="#deleteAlarm">deleteAlarm</a>().<h3 class=fn>void <a name="deleteAlarm"></a>AlarmServer::deleteAlarm ( QDateTime when, const QCString & channel, const QCString & message, int data = 0 )<tt> [static]</tt></h3>Deletes previously scheduled alarms which match <em>when</em>, <em>channel</em>,<em>message</em>, and <em>data</em>.<p> Passing null values for <em>when</em>, <em>channel</em>, or for the <a href="qcop.html">QCop</a> <em>message</em>, acts as a wildcard meaning "any".Similarly, passing -1 for <em>data</em> indicates "any".<p> If there is no matching alarm, nothing happens.<p> <p>See also <a href="#addAlarm">addAlarm</a>().<p> <!-- eof --><hr><p>This file is part of the <a href="../index.html">Qtopia</a> platform,copyright © 1995-2004<a href="http://www.trolltech.com/">Trolltech</a>, all rights reserved.<p><address><hr><div align="center"><table width="100%" cellspacing="0" border="0"><tr><td>Copyright © 2001-2004 Trolltech<td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a><td align="right"><div align="right">Qtopia version 2.0.0</div></table></div></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -