1 // This file is part of BOINC. 2 // http://boinc.berkeley.edu 3 // Copyright (C) 2017 University of California 4 // 5 // BOINC is free software; you can redistribute it and/or modify it 6 // under the terms of the GNU Lesser General Public License 7 // as published by the Free Software Foundation, 8 // either version 3 of the License, or (at your option) any later version. 9 // 10 // BOINC is distributed in the hope that it will be useful, 11 // but WITHOUT ANY WARRANTY; without even the implied warranty of 12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 // See the GNU Lesser General Public License for more details. 14 // 15 // You should have received a copy of the GNU Lesser General Public License 16 // along with BOINC. If not, see <http://www.gnu.org/licenses/>. 17 // 18 19 #ifndef __SCREENSAVER_H__ 20 #define __SCREENSAVER_H__ 21 22 // Default values, overriden by screensaver config file ss_config.xml 23 #define GFX_BLANK_PERIOD 0 /* 0 minutes */ 24 #define GFX_DEFAULT_PERIOD 120 /* if default OpenGL screensaver exists, display it for 2 minutes */ 25 #define GFX_SCIENCE_PERIOD 600 /* Display various science graphics apps for 10 minutes */ 26 #define GFX_CHANGE_PERIOD 300 /* if > 1 CPUs, change screensaver every 5 minutes */ 27 28 enum SS_PHASE { 29 DEFAULT_SS_PHASE, 30 SCIENCE_SS_PHASE 31 }; 32 33 //----------------------------------------------------------------------------- 34 // Error / status codes 35 //----------------------------------------------------------------------------- 36 37 // These codes are no longer used by the Mac: 38 #define SCRAPPERR_BOINCNOTDETECTED 0x82000001 39 #define SCRAPPERR_BOINCNOTDETECTEDSTARTUP 0x82000002 40 #define SCRAPPERR_BOINCSUSPENDED 0x82000003 41 #define SCRAPPERR_BOINCNOTGRAPHICSCAPABLE 0x82000004 42 #define SCRAPPERR_BOINCNOAPPSEXECUTING 0x82000005 43 #define SCRAPPERR_BOINCNOPROJECTSDETECTED 0x82000006 44 #define SCRAPPERR_BOINCNOGRAPHICSAPPSEXECUTING 0x82000007 45 #define SCRAPPERR_BOINCAPPFOUNDGRAPHICSLOADING 0x82000009 46 #define SCRAPPERR_BOINCSHUTDOWNEVENT 0x8200000a 47 #define SCRAPPERR_NOPREVIEW 0x8200000f 48 #define SCRAPPERR_DAEMONALLOWSNOGRAPHICS 0x82000010 49 #define SCRAPPERR_SCREENSAVERRUNNING 0x82000011 50 #define SCRAPPERR_QUITSCREENSAVERREQUESTED 0x82000013 51 52 // The following are still used by the Mac: 53 #define SCRAPPERR_BOINCSCREENSAVERLOADING 0x82000008 54 #define SCRAPPERR_SCREENSAVERBLANKED 0x82000012 55 56 // The following are new codes used by the Mac: 57 #define SCRAPPERR_CANTLAUNCHDEFAULTGFXAPP 0x82000014 58 #define SCRAPPERR_DEFAULTGFXAPPCANTCONNECT 0x82000015 59 #define SCRAPPERR_DEFAULTGFXAPPCRASHED 0x82000016 60 #define SCRAPPERR_GFXAPPINCOMPATIBLE 0x82000017 61 62 63 #endif 64