JX Application Framework
Loading...
Searching...
No Matches
Enumerations | Functions
jWebUtil.h File Reference
#include "JPrefsManager.h"
Include dependency graph for jWebUtil.h:
This graph shows which files directly or indirectly include this file:

Enumerations

enum  {
  kJDefaultHTTPPort = 80 ,
  kJDefaultHTTPSPort = 443 ,
  kJDefaultFTPPort = 21 ,
  kJDefaultFTPDataPort = 20 ,
  kJDefaultSFTPPort = 115 ,
  kJDefaultSSHPort = 22
}
 

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)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Utility functions for dealing with URLs.

Enumerator
kJDefaultHTTPPort 
kJDefaultHTTPSPort 
kJDefaultFTPPort 
kJDefaultFTPDataPort 
kJDefaultSFTPPort 
kJDefaultSSHPort 

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 
)