]> Dogcows Code - chaz/thecheat/blob - ChazUpdate.h
update contact information and project URL
[chaz/thecheat] / ChazUpdate.h
1
2 /*
3 * The Cheat - The legendary universal game trainer for Mac OS X.
4 * http://www.brokenzipper.com/trac/wiki/TheCheat
5 *
6 * Copyright (c) 2003-2011, Charles McGarvey et al.
7 *
8 * Distributable under the terms and conditions of the 2-clause BSD
9 * license; see the file COPYING for the legal text of the license.
10 */
11
12
13 #import <Cocoa/Cocoa.h>
14 #import "ChazLog.h"
15
16
17 // This is my update system. It is extremely simple to use. Just pass the URL
18 // where the version information can be obtained. The version information will
19 // be loaded in the background and a dialog will show up presenting the user
20 // with the results of the check. If userRequested is NO, then the system will
21 // not do anything if an error occured or if there is no available update.
22 // Depending on the tags given in the version file, the presented dialog can
23 // have buttons which link to a "more info" page or a direct download, using the
24 // default web browser of the system.
25
26
27 // url can either be an NSURL or an NSString containing a valid URL.
28 void ChazCheckForUpdate( id url, BOOL userRequested ); // uses default app name.
29 void ChazCheckForUpdateWithName( id url, NSString *appName, BOOL userRequested );
30
31 // these return empty strings if they can't be determined.
32 NSString *ChazAppName(); // returns the name ChazCheckForUpdate() uses.
33 NSString *ChazAppVersion(); // returns the current version of the app.
34 NSDate *ChazAppBuildDate(); // returns the build date used to check for updates.
35
36
This page took 0.035083 seconds and 4 git commands to generate.