2008-08-06 18:36:30 +00:00
|
|
|
// This file is part of BOINC.
|
2005-04-23 15:14:52 +00:00
|
|
|
// http://boinc.berkeley.edu
|
2017-06-05 09:16:06 +00:00
|
|
|
// Copyright (C) 2017 University of California
|
2005-04-23 15:14:52 +00:00
|
|
|
//
|
2008-08-06 18:36:30 +00:00
|
|
|
// BOINC is free software; you can redistribute it and/or modify it
|
|
|
|
// under the terms of the GNU Lesser General Public License
|
|
|
|
// as published by the Free Software Foundation,
|
|
|
|
// either version 3 of the License, or (at your option) any later version.
|
2005-04-23 15:14:52 +00:00
|
|
|
//
|
2008-08-06 18:36:30 +00:00
|
|
|
// BOINC is distributed in the hope that it will be useful,
|
2005-04-23 15:14:52 +00:00
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
// See the GNU Lesser General Public License for more details.
|
|
|
|
//
|
2008-08-06 18:36:30 +00:00
|
|
|
// You should have received a copy of the GNU Lesser General Public License
|
|
|
|
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.
|
2005-04-23 15:14:52 +00:00
|
|
|
|
|
|
|
// Mac_Saver_ModuleView.h
|
|
|
|
// BOINC_Saver_Module
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <ScreenSaver/ScreenSaver.h>
|
|
|
|
|
|
|
|
|
|
|
|
@interface BOINC_Saver_ModuleView : ScreenSaverView
|
|
|
|
{
|
|
|
|
IBOutlet id mConfigureSheet; // our configuration sheet
|
|
|
|
IBOutlet NSButton *mGoToBlankCheckbox;
|
|
|
|
IBOutlet NSTextField *mBlankingTimeTextField;
|
2009-12-14 13:10:49 +00:00
|
|
|
IBOutlet NSTextField *mDefaultPeriodTextField;
|
|
|
|
IBOutlet NSTextField *mSciencePeriodTextField;
|
|
|
|
IBOutlet NSTextField *mChangePeriodTextField;
|
2005-04-23 15:14:52 +00:00
|
|
|
|
|
|
|
int mVersion; // the version of our prefs
|
|
|
|
NSString *mBlankingTimeString;
|
2009-12-14 13:10:49 +00:00
|
|
|
NSString *mDefaultPeriodString;
|
|
|
|
NSString *mSciencePeriodString;
|
|
|
|
NSString *mChangePeriodString;
|
2005-04-23 15:14:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (IBAction)closeSheetSave:(id) sender;
|
|
|
|
- (IBAction)closeSheetCancel:(id) sender;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
2009-12-14 13:10:49 +00:00
|
|
|
void initBOINCSaver(void);
|
|
|
|
int startBOINCSaver(void);
|
|
|
|
int getSSMessage(char **theMessage, int* coveredFreq);
|
|
|
|
void windowIsCovered();
|
|
|
|
void drawPreview(CGContextRef myContext);
|
|
|
|
void closeBOINCSaver(void);
|
|
|
|
double getGFXDefaultPeriod();
|
|
|
|
double getGFXSciencePeriod();
|
|
|
|
double getGGFXChangePeriod();
|
|
|
|
void setGFXDefaultPeriod(double value);
|
|
|
|
void setGFXSciencePeriod(double value);
|
|
|
|
void setGGFXChangePeriod(double value);
|
|
|
|
bool validateNumericString(CFStringRef s);
|
2011-07-27 11:42:22 +00:00
|
|
|
double getDTime();
|
2016-12-16 12:28:41 +00:00
|
|
|
void doBoinc_Sleep(double seconds);
|
2009-12-14 13:10:49 +00:00
|
|
|
extern void print_to_log_file(const char *format, ...);
|