source: trunk/Cocoa/Pester/Source/PSWakeAlert.m @ 516

Last change on this file since 516 was 118, checked in by Nicholas Riley, 18 years ago

Broken, to-be-removed authorization implementation

File size: 847 bytes
Line 
1//
2//  PSWakeAlert.m
3//  Pester
4//
5//  Created by Nicholas Riley on Mon Jan 06 2003.
6//  Copyright (c) 2003 Nicholas Riley. All rights reserved.
7//
8
9#import "PSWakeAlert.h"
10#import "PSPowerManager.h"
11
12static PSWakeAlert *PSWakeAlertShared;
13
14@implementation PSWakeAlert
15
16+ (PSAlert *)alert;
17{
18    if (PSWakeAlertShared == nil)
19        PSWakeAlertShared = [[PSWakeAlert alloc] init];
20    return PSWakeAlertShared;
21}
22
23- (void)prepareForAlarm:(PSAlarm *)alarm;
24{
25    [alarm setWakeUp: YES];
26}
27
28- (void)triggerForAlarm:(PSAlarm *)alarm;
29{
30    [self completedForAlarm: alarm];
31}
32
33- (NSAttributedString *)actionDescription;
34{
35    return [@"Wake up computer if asleep" small];
36}
37
38#pragma mark property list serialization (Pester 1.1)
39
40- (id)initWithPropertyList:(NSDictionary *)dict;
41{
42    [self release];
43    return [[PSWakeAlert alert] retain];
44}
45
46@end
Note: See TracBrowser for help on using the repository browser.