JX Application Framework
|
#include <JWebBrowser.h>
Public Member Functions | |
JWebBrowser () | |
virtual | ~JWebBrowser () |
void | ShowURL (const JString &url) |
void | ShowFileContent (const JString &fileName) |
void | ShowFileLocation (const JString &fileName) |
void | ShowFileLocations (const JPtrArray< JString > &fileList) |
void | ComposeMail (const JString &address) |
const JString & | GetShowURLCmd () const |
void | SetShowURLCmd (const JString &cmd) |
const JString & | GetShowFileContentCmd () const |
void | SetShowFileContentCmd (const JString &cmd) |
const JString & | GetShowFileLocationCmd () const |
void | SetShowFileLocationCmd (const JString &cmd) |
const JString & | GetComposeMailCmd () const |
void | SetComposeMailCmd (const JString &cmd) |
void | ReadConfig (std::istream &input) |
void | WriteConfig (std::ostream &output, const JFileVersion vers) const |
Static Public Member Functions | |
static JFileVersion | GetCurrentConfigVersion () |
static void | ConvertVarNames (JString *s, const JUtf8Byte *varNameList) |
Protected Member Functions | |
virtual void | SaveCommands () |
This class is designed to be used as a global object. All requests to display URL's and files should be passed to this object. It contacts the appropriate program (e.g. Firefox) to display the data.
JWebBrowser::JWebBrowser | ( | ) |
|
virtual |
void JWebBrowser::ComposeMail | ( | const JString & | address | ) |
Convert % to $ when followed by any character in varNameList. Backslashes and dollars are also backslashed, as required by JSubstitute.
|
inline |
|
static |
|
inline |
|
inline |
|
inline |
void JWebBrowser::ReadConfig | ( | std::istream & | input | ) |
We assert that we can read the given data because there is no way to skip over it.
|
protectedvirtual |
Derived classes can override to save state.
Reimplemented in JXWebBrowser.
|
inline |
|
inline |
|
inline |
|
inline |
void JWebBrowser::ShowFileContent | ( | const JString & | fileName | ) |
void JWebBrowser::ShowFileLocation | ( | const JString & | fileName | ) |
void JWebBrowser::ShowURL | ( | const JString & | url | ) |
void JWebBrowser::WriteConfig | ( | std::ostream & | output, |
const JFileVersion | vers | ||
) | const |
This is for use by JXGlobalPrefsManager. Nobody else should store our settings.