Last change
on this file since 545 was 53, checked in by Nicholas Riley, 22 years ago |
Updated for Pester 1.1a5 (very limited release).
Pester 1.1a4 was never released.
|
File size:
718 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 |
|
---|
12 | @interface PSPowerManager : NSObject {
|
---|
13 | id delegate;
|
---|
14 | io_connect_t root_port;
|
---|
15 | io_object_t notifier;
|
---|
16 | }
|
---|
17 |
|
---|
18 | - (id)initWithDelegate:(id)aDelegate;
|
---|
19 |
|
---|
20 | + (BOOL)autoWakeSupported;
|
---|
21 | + (NSDate *)wakeTime;
|
---|
22 | + (void)setWakeTime:(NSDate *)time;
|
---|
23 | + (void)clearWakeTime;
|
---|
24 |
|
---|
25 | @end
|
---|
26 |
|
---|
27 | @interface NSObject (PSPowerManagerDelegate)
|
---|
28 |
|
---|
29 | - (void)powerManagerWillSleep:(PSPowerManager *)powerManager;
|
---|
30 | - (BOOL)powerManagerShouldSleep:(PSPowerManager *)powerManager;
|
---|
31 | - (void)powerManagerDidWake:(PSPowerManager *)powerManager;
|
---|
32 |
|
---|
33 | @end |
---|
Note:
See
TracBrowser
for help on using the repository browser.