15 #include "networkmod.h" 49 ODDLSite(
const char* the_host,
float timeout_sec=0);
51 bool isOK()
const {
return !isfailed_; }
53 const char*
host()
const {
return host_; }
54 const char*
subDir()
const {
return subdir_; }
56 float timeout()
const {
return timeout_; }
57 void setTimeOut(
float,
bool storeinsettings);
61 bool getFile(
const char* fnm,
const char* outfnm=0,
88 void reqFinish(CallBacker*);
90 bool getLocalFile(
const char*,
const char*);
#define mExpClass(module)
Definition: commondefs.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
bool islocal_
Definition: oddlsite.h:81
Definition: jobcommunic.h:24
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
#define od_int64
Definition: plftypes.h:36
BufferString subdir_
Definition: oddlsite.h:79
Definition: uistring.h:89
Set of BufferString objects.
Definition: bufstringset.h:28
bool isOK() const
Definition: oddlsite.h:51
Class that can execute a task.
Definition: task.h:169
uiString errmsg_
Definition: oddlsite.h:84
bool isfailed_
Definition: oddlsite.h:85
int64_t getFileSize(const char *fnm, bool followlink=true)
bytes
float timeout() const
Definition: oddlsite.h:56
Raw data array with memory management.
Definition: databuf.h:22
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
bool isEmpty() const
Definition: odstring.h:51
uiString errMsg() const
Definition: oddlsite.h:59
BufferString errmsg_
Definition: horizontracker.h:119
float timeout_
Definition: oddlsite.h:80
DataBuffer * databuf_
Definition: oddlsite.h:86
bool issecure_
Definition: oddlsite.h:82
Access to an http site to get the contents of files.
Definition: oddlsite.h:45
bool haveErrMsg() const
if haveErrMsg(), then failure - otherwise user stop
Definition: oddlsite.h:70
const char * subDir() const
Definition: oddlsite.h:54
const char * host() const
Definition: oddlsite.h:53
BufferString host_
Definition: oddlsite.h:78
void setSubDir(const char *s)
Definition: oddlsite.h:55