source: releases/Pester/1.0d2/Source/PSAlarm.h@ 428

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

Pester 1.0d2

File size: 760 bytes
Line 
1//
2// PSAlarm.h
3// Pester
4//
5// Created by Nicholas Riley on Wed Oct 09 2002.
6// Copyright (c) 2002 Nicholas Riley. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10
11typedef enum {
12 PSAlarmInvalid, PSAlarmInterval, PSAlarmDate
13} PSAlarmType;
14
15@interface PSAlarm : NSObject {
16 PSAlarmType alarmType;
17 NSCalendarDate *alarmDate;
18 NSTimeInterval alarmInterval;
19 NSString *alarmMessage;
20 NSString *invalidMessage;
21}
22
23- (void)setInterval:(NSTimeInterval)anInterval;
24- (void)setForDateAtTime:(NSDate *)dateTime;
25- (void)setForDate:(NSDate *)date atTime:(NSDate *)time;
26- (void)setMessage:(NSString *)aMessage;
27
28- (NSDate *)date;
29- (NSTimeInterval)interval;
30
31- (BOOL)isValid;
32- (NSString *)message;
33- (NSString *)invalidMessage;
34
35@end
Note: See TracBrowser for help on using the repository browser.