Files
phonegap-plugins/iPhone/PowerManagement/PowerManagement.h
2011-06-29 13:02:54 +02:00

47 lines
1.5 KiB
Objective-C

/*
* Copyright (C) 2011 Wolfgang Koller
*
* This file is part of GOFG Sports Computer - http://www.gofg.at/.
*
* GOFG Sports Computer is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GOFG Sports Computer is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GOFG Sports Computer. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* PhoneGap (iOS) plugin for accessing the power-management functions of the device
*/
#import <Foundation/Foundation.h>
#import <UIKit/UIApplication.h>
#ifdef PHONEGAP_FRAMEWORK
#import <PhoneGap/PGPlugin.h>
#else
#import "PGPlugin.h"
#endif
/**
* Interface which does the actual handling
*/
@interface PowerManagement : PGPlugin {
}
/**
* Sets the idleTimerDisable property to true so that the idle timeout is disabled
*/
- (void) acquire:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
/**
* Sets the idleTimerDisable property to false so that the idle timeout is enabled
*/
- (void) release:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
@end