source: trunk/Cocoa/Pester/Source/PSPowerManager.h @ 118

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

Broken, to-be-removed authorization implementation

File size: 883 bytes
Line 
1//
2//  PSPowerManager.h
3//  Pester
4//
5//  Created by Nicholas Riley on Mon Dec 23 2002.
6//  Copyright (c) 2002 Nicholas Riley. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10#import <IOKit/IOKitLib.h>
11
12extern NSString * const PSPowerManagerException;
13
14@interface PSPowerManager : NSObject {
15    id delegate;
16    io_connect_t root_port;
17    io_object_t notifier;
18}
19
20- (id)initWithDelegate:(id)aDelegate;
21
22+ (BOOL)autoWakeSupported;
23+ (void)authorize;
24+ (NSDate *)wakeTime;
25+ (void)setWakeInterval:(unsigned long)wakeInterval;
26+ (void)setWakeTime:(NSDate *)time overrideIfEarlier:(BOOL)override;
27+ (void)clearWakeTime;
28
29@end
30
31@interface NSObject (PSPowerManagerDelegate)
32
33- (void)powerManagerWillDemandSleep:(PSPowerManager *)powerManager;
34- (BOOL)powerManagerShouldIdleSleep:(PSPowerManager *)powerManager;
35- (void)powerManagerDidWake:(PSPowerManager *)powerManager;
36
37@end
Note: See TracBrowser for help on using the repository browser.