source: trunk/Cocoa/Pester/Source/PSAlarms.h@ 142

Last change on this file since 142 was 113, checked in by Nicholas Riley, 22 years ago

PSTimer.m: Fix bug 15, leaking PSTimer from NSInvocation argument retention.

Read Me.rtfd: Updated release notes.

PSAlarm.[hm]: Removed obsolete comment. Changed 1m-59m times to
display without `0h'. Moved code from deserialization to -resetTimer
to be used for alarm deletion undo - fix bug 14.

PSAlarmsController.m: Fix bug 14 - implement _restoreAlarms:,
_removeAlarms and _undoManager. Need to add localized string.

PSAlarmAlertController.m: Fix bug 17, move alert triggering from
constructor to -performAlertsForAlarm: to avoid nested notifications
delivering in wrong order.

PSAlarms.[hm]: Fix bug 14 - implement -restoreAlarms, invokes [PSAlarm
resetTimer]. Clarified a comment. Uncommented some debug logging.

package-Pester.sh: Implemented partition map-less disk image, saves a
few K on distribution. Removed obsolete comments. Added agvtool
bump.

File size: 953 bytes
RevLine 
[26]1//
2// PSAlarms.h
3// Pester
4//
5// Created by Nicholas Riley on Fri Oct 11 2002.
[34]6// Copyright (c) 2002 Nicholas Riley. All rights reserved.
[26]7//
8
9#import <Cocoa/Cocoa.h>
[53]10#import "PSPropertyListSerialization.h"
[26]11
12extern NSString * const PSAlarmsDidChangeNotification;
[28]13extern NSString * const PSAlarmsNextAlarmDidChangeNotification;
[26]14
15@class PSAlarm;
16
[53]17@interface PSAlarms : NSObject <PSPropertyListSerialization> {
[26]18 NSMutableArray *alarms;
[53]19 NSMutableSet *expiredAlarms;
[28]20 PSAlarm *nextAlarm;
[26]21}
22
23+ (void)setUp;
24+ (PSAlarms *)allAlarms;
25
[53]26- (unsigned)countOfVersion1Alarms;
27- (void)importVersion1Alarms;
28- (void)discardVersion1Alarms;
29
[51]30- (NSArray *)alarms;
[53]31
[28]32- (PSAlarm *)nextAlarm;
[26]33- (int)alarmCount;
34- (PSAlarm *)alarmAtIndex:(int)index;
35- (void)removeAlarmAtIndex:(int)index;
36- (void)removeAlarmsAtIndices:(NSArray *)indices;
[51]37- (void)removeAlarms:(NSSet *)alarmsToRemove;
[113]38- (void)restoreAlarms:(NSSet *)alarmsToRestore;
[26]39
[60]40- (BOOL)alarmsExpiring;
41
[26]42@end
Note: See TracBrowser for help on using the repository browser.