JX Application Framework
Loading...
Searching...
No Matches
Functions
jWebUtil.cpp File Reference
#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"
Include dependency graph for jWebUtil.cpp:

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)
 

Function Documentation

◆ JCheckForNewerVersion()

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.

◆ JGetDefaultPort()

bool JGetDefaultPort ( const JString protocol,
JIndex port 
)

Returns true if it recognizes the protocol.

◆ JIsURL()

bool JIsURL ( const JString s)

Renames the specified directory.

◆ JParseURL()

bool JParseURL ( const JString url,
JString protocol,
JString host,
JIndex port,
JString path 
)