JX Application Framework
|
#include "jWebUtil.h"
#include "JUpdateChecker.h"
#include "JRegex.h"
#include "JStringMatch.h"
#include "JWebBrowser.h"
#include "jGlobals.h"
#include <ace/Connector.h>
#include <ace/SOCK_Connector.h>
#include "jAssert.h"
Functions | |
bool | JIsURL (const JString &s) |
bool | JParseURL (const JString &url, JString *protocol, JString *host, JIndex *port, JString *path) |
bool | JGetDefaultPort (const JString &protocol, JIndex *port) |
void | JCheckForNewerVersion (JPrefsManager *prefsMgr, const JPrefID &prefID) |
void JCheckForNewerVersion | ( | JPrefsManager * | prefsMgr, |
const JPrefID & | prefID | ||
) |
If it is time to remind the user about a new version, display a message offering to open DOWNLOAD_URL retrieved from JStringManager.
In the background, checks for a newer version of the program by downloading VERSION_URL (retrieved from JStringManager), which is assumed to contain a version number. This is matched against the VERSION string retrieved from JStringManager.
If a newer version is available, a reminder is scheduled for the next time the program is run, after 1,2,3 months and then every 6 months.
Returns true if it recognizes the protocol.