From http://www.jwz.org/xscreensaver/xscreensaver-5.35.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 {
16   NSTimer *timer;
17 }
18 @end
19 #endif // !USE_IPHONE
20
21 #define UPDATER_DOMAIN "org.jwz.xscreensaver.updater"
22
23 // Strings must match Sparkle/SUConstants.m
24 #define SUSUEnableAutomaticChecksKey    "SUEnableAutomaticChecks"
25 #define SUSUEnableAutomaticChecksDef    YES
26 #define SUAutomaticallyUpdateKey        "SUAutomaticallyUpdate"
27 #define SUAutomaticallyUpdateDef        NO
28 #define SUSendProfileInfoKey            "SUSendProfileInfo"
29 #define SUSendProfileInfoDef            YES
30 #define SUScheduledCheckIntervalKey     "SUScheduledCheckInterval"
31 #define SUScheduledCheckIntervalDef     604800
32 #define SULastCheckTimeKey              "SULastCheckTime"
33
34 #define UPDATER_DEFAULTS @{                                     \
35   @SUSUEnableAutomaticChecksKey: @SUSUEnableAutomaticChecksDef, \
36   @SUAutomaticallyUpdateKey:     @SUAutomaticallyUpdateDef,     \
37   @SUSendProfileInfoKey:         @SUSendProfileInfoDef,         \
38   @SUScheduledCheckIntervalKey:  @SUScheduledCheckIntervalDef   \
39 }