Last change
on this file since 118 was 118, checked in by Nicholas Riley, 21 years ago |
Broken, to-be-removed authorization implementation
|
File size:
883 bytes
|
Rev | Line | |
---|
[53] | 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 |
|
---|
[118] | 12 | extern NSString * const PSPowerManagerException;
|
---|
| 13 |
|
---|
[53] | 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;
|
---|
[118] | 23 | + (void)authorize;
|
---|
[53] | 24 | + (NSDate *)wakeTime;
|
---|
[118] | 25 | + (void)setWakeInterval:(unsigned long)wakeInterval;
|
---|
| 26 | + (void)setWakeTime:(NSDate *)time overrideIfEarlier:(BOOL)override;
|
---|
[53] | 27 | + (void)clearWakeTime;
|
---|
| 28 |
|
---|
| 29 | @end
|
---|
| 30 |
|
---|
| 31 | @interface NSObject (PSPowerManagerDelegate)
|
---|
| 32 |
|
---|
[61] | 33 | - (void)powerManagerWillDemandSleep:(PSPowerManager *)powerManager;
|
---|
| 34 | - (BOOL)powerManagerShouldIdleSleep:(PSPowerManager *)powerManager;
|
---|
[53] | 35 | - (void)powerManagerDidWake:(PSPowerManager *)powerManager;
|
---|
| 36 |
|
---|
| 37 | @end |
---|
Note:
See
TracBrowser
for help on using the repository browser.