From http://www.jwz.org/xscreensaver/xscreensaver-5.24.tar.gz
[xscreensaver] / OSX / Updater.h
1 /* xscreensaver, Copyright (c) 2013 Jamie Zawinski <jwz@jwz.org>
2  *
3  * Permission to use, copy, modify, distribute, and sell this software and its
4  * documentation for any purpose is hereby granted without fee, provided that
5  * the above copyright notice appear in all copies and that both that
6  * copyright notice and this permission notice appear in supporting
7  * documentation.  No representations are made about the suitability of this
8  * software for any purpose.  It is provided "as is" without express or 
9  * implied warranty.
10  */
11
12 #ifndef USE_IPHONE
13 #import <Cocoa/Cocoa.h>
14 @interface XScreenSaverUpdater : NSObject <NSApplicationDelegate>
15 @end
16 #endif // !USE_IPHONE
17
18 #define UPDATER_DOMAIN "org.jwz.xscreensaver.updater"
19
20 // Strings must match Sparkle/SUConstants.m
21 #define SUSUEnableAutomaticChecksKey    "SUEnableAutomaticChecks"
22 #define SUSUEnableAutomaticChecksDef    YES
23 #define SUAutomaticallyUpdateKey        "SUAutomaticallyUpdate"
24 #define SUAutomaticallyUpdateDef        NO
25 #define SUSendProfileInfoKey            "SUSendProfileInfo"
26 #define SUSendProfileInfoDef            YES
27 #define SUScheduledCheckIntervalKey     "SUScheduledCheckInterval"
28 #define SUScheduledCheckIntervalDef     604800
29
30 #define UPDATER_DEFAULTS @{                                     \
31   @SUSUEnableAutomaticChecksKey: @SUSUEnableAutomaticChecksDef, \
32   @SUAutomaticallyUpdateKey:     @SUAutomaticallyUpdateDef,     \
33   @SUSendProfileInfoKey:         @SUSendProfileInfoDef,         \
34   @SUScheduledCheckIntervalKey:  @SUScheduledCheckIntervalDef   \
35 }