Changeset 277
- Timestamp:
- 07/23/06 05:34:34 (18 years ago)
- Location:
- trunk/hiptop/pester/net/sabi/pester
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hiptop/pester/net/sabi/pester/Alarm.java
r276 r277 6 6 import java.io.DataOutputStream; 7 7 import danger.app.Application; 8 import danger.app.IPCMessage; 8 9 import danger.audio.RingToneObject; 9 10 import danger.internal.Date; … … 151 152 mDate.addSeconds(realSecondsLeft < 0 ? 0 : realSecondsLeft); 152 153 // no need to call resume(): alarm uses absolute time 154 update(); 153 155 } else { 154 156 resume(); … … 175 177 mState = STATE_INVALID; 176 178 mAlarm.deactivate(); 179 } 180 181 // XXX not sure if this is featureful enough to be worthwhile 182 public IPCMessage getCalendarIPCMessage() { 183 if (mState != STATE_SCHEDULED) 184 return null; 185 IPCMessage message = new IPCMessage(); 186 message.addItem("action", "new"); 187 message.addItem("title", getMessage()); 188 message.addItem("start", mDate.getUnixTimeGMT()); 189 return message; 177 190 } 178 191 -
trunk/hiptop/pester/net/sabi/pester/AlarmListView.java
r276 r277 50 50 switch (e.type) { 51 51 case EVENT_NEW_ALARM: 52 // XXX check for max alarms 52 53 alarmSetDialog().editAlarm(new Alarm(), true); 53 54 return true; … … 100 101 ToolTipWindow.showToolTip(alarm.getDateTimeString() + " - " + 101 102 alarm.getIntervalString(), 102 10, rect.bottom, 1, sAlarmListWindow); 103 localToGlobalH(10), 104 localToGlobalV(mToolTipY), 105 1, sAlarmListWindow); 103 106 int secondsUntilUpdate = alarm.getSecondsUntilNextIntervalStringUpdate(); 104 107 if (secondsUntilUpdate == 0)
Note:
See TracChangeset
for help on using the changeset viewer.