The SWORD Project
1.9.0.svnversion
|
Public Member Functions | |
void | clearSources () |
virtual bool | getCipherCode (const char *modName, SWConfig *config) |
long | getTimeoutMillis () |
virtual int | installModule (SWMgr *destMgr, const char *fromLocation, const char *modName, InstallSource *is=0) |
bool | isDefaultModule (const char *modName) |
bool | isFTPPassive () |
bool | isUnverifiedPeerAllowed () |
virtual bool | isUserDisclaimerConfirmed () const |
MyInstallMgr (const char *privatePath="./", StatusReporter *sr=0) | |
void | readInstallConf () |
virtual int | refreshRemoteSource (InstallSource *is) |
virtual int | refreshRemoteSourceConfiguration () |
virtual int | remoteCopy (InstallSource *is, const char *src, const char *dest, bool dirTransfer=false, const char *suffix="") |
virtual int | removeModule (SWMgr *manager, const char *modName) |
void | saveInstallConf () |
void | setFTPPassive (bool passive) |
void | setTimeoutMillis (long timeoutMillis) |
void | setUnverifiedPeerAllowed (bool allowed) |
void | setUserDisclaimerConfirmed (bool val) |
void | terminate () |
Static Public Member Functions | |
static std::map< SWModule *, int > | getModuleStatus (const SWMgr &base, const SWMgr &other, bool utilModules=false) |
Public Attributes | |
SWConfig * | installConf |
InstallSourceMap | sources |
Static Public Attributes | |
static const unsigned int | MODSTAT_CIPHERED = 0x010 |
static const unsigned int | MODSTAT_CIPHERKEYPRESENT = 0x020 |
static const unsigned int | MODSTAT_NEW = 0x008 |
static const unsigned int | MODSTAT_OLDER = 0x001 |
static const unsigned int | MODSTAT_SAMEVERSION = 0x002 |
static const unsigned int | MODSTAT_UPDATED = 0x004 |
static bool | userDisclaimerConfirmed = false |
Protected Member Functions | |
virtual RemoteTransport * | createFTPTransport (const char *host, StatusReporter *statusReporter) |
virtual RemoteTransport * | createHTTPTransport (const char *host, StatusReporter *statusReporter) |
Protected Attributes | |
SWBuf | confPath |
std::set< SWBuf > | defaultMods |
SWBuf | p |
bool | passive |
char * | privatePath |
StatusReporter * | statusReporter |
long | timeoutMillis |
RemoteTransport * | transport |
SWBuf | u |
bool | unverifiedPeerAllowed |
Definition at line 59 of file installmgr.cpp.
|
inline |
Definition at line 62 of file installmgr.cpp.
|
inherited |
Removes all configured sources from memory. Call saveInstallConf() to persist
Definition at line 130 of file installmgr.cpp.
|
protectedvirtualinherited |
override this method and provide your own custom RemoteTransport subclass
Definition at line 81 of file installmgr.cpp.
|
protectedvirtualinherited |
override this method and provide your own custom HTTP RemoteTransport
Definition at line 90 of file installmgr.cpp.
|
inlinevirtualinherited |
override this and provide an input mechanism to allow your users to enter the decipher code for a module. return true you added the cipher code to the config. default to return 'aborted'
Definition at line 222 of file installmgr.h.
|
staticinherited |
Definition at line 592 of file installmgr.cpp.
|
inlineinherited |
Definition at line 270 of file installmgr.h.
|
virtualinherited |
call to install a module from a local path (fromLocation) or remote InstallSource (is) (leave the other 0)
Definition at line 394 of file installmgr.cpp.
|
inherited |
Definition at line 583 of file installmgr.cpp.
|
inlineinherited |
Definition at line 267 of file installmgr.h.
|
inlineinherited |
Definition at line 273 of file installmgr.h.
|
inlinevirtual |
Override this and provide an input mechanism to allow your users to confirm that they understand this important disclaimer. This method will be called immediately before attempting to perform any network function. If you would like your confirmation to always show at a predefined time before attempting network operations, then you can call this method yourself at the desired time.
Return true if your user confirms.
User disclaimer should ask user for confirmation of 2 critical items: and the default answer should be NO (due to possibly the wrong language for the disclaimer)
1) detection OK (Not in persecuted country) 2) repos other than CrossWire may have questionable content
A sample default impl is provided below:
Reimplemented from InstallMgr.
Definition at line 70 of file installmgr.cpp.
|
inherited |
Call to re-read InstallMgr.conf
Definition at line 138 of file installmgr.cpp.
|
virtualinherited |
call to obtain and locally cache the available content list of the remote source
Definition at line 550 of file installmgr.cpp.
|
virtualinherited |
call to populate installmgr configuration with all known remote sources from the master list at CrossWire
Definition at line 645 of file installmgr.cpp.
|
virtualinherited |
mostly an internally used method to remote download from a remote source to a local destination
Definition at line 300 of file installmgr.cpp.
call to delete all files of a locally installed module.
Definition at line 241 of file installmgr.cpp.
|
inherited |
Call to dump sources and other settings to InstallMgr.conf
Definition at line 222 of file installmgr.cpp.
|
inlineinherited |
whether or not to use passive mode when doing ftp transfers
Definition at line 266 of file installmgr.h.
|
inlineinherited |
Definition at line 269 of file installmgr.h.
|
inlineinherited |
Definition at line 272 of file installmgr.h.
|
inlineinherited |
Preferred method of reporting user disclaimer confirmation is to override the above method instead of using the setter below. This is provided for clients who don't wish to inherit InstallMgr and override method.
Definition at line 214 of file installmgr.h.
|
inherited |
Request nicely to terminate an ongoing transfer. If threading is a concern, consider calling terminate() from your status reporters as they are typically the link between the transfer thread and your UI.
Definition at line 238 of file installmgr.cpp.
|
protectedinherited |
Definition at line 75 of file installmgr.h.
|
protectedinherited |
Definition at line 73 of file installmgr.h.
|
inherited |
Definition at line 106 of file installmgr.h.
|
staticinherited |
Definition at line 103 of file installmgr.h.
|
staticinherited |
Definition at line 104 of file installmgr.h.
|
staticinherited |
Definition at line 102 of file installmgr.h.
|
staticinherited |
Definition at line 99 of file installmgr.h.
|
staticinherited |
Definition at line 100 of file installmgr.h.
|
staticinherited |
Definition at line 101 of file installmgr.h.
|
protectedinherited |
Definition at line 79 of file installmgr.h.
|
protectedinherited |
Definition at line 77 of file installmgr.h.
|
protectedinherited |
Definition at line 74 of file installmgr.h.
|
inherited |
all remote sources configured for this installmgr. Use this to gain access to individual remote sources.
Definition at line 111 of file installmgr.h.
|
protectedinherited |
Definition at line 76 of file installmgr.h.
|
protectedinherited |
Definition at line 78 of file installmgr.h.
|
protectedinherited |
we have a transport member to set as current running transport so we can ask it to terminate below, if user requests
Definition at line 94 of file installmgr.h.
|
protectedinherited |
Definition at line 79 of file installmgr.h.
|
protectedinherited |
Definition at line 80 of file installmgr.h.
|
staticinherited |
Definition at line 98 of file installmgr.h.