14 #ifndef TGO4HTTPPROXY_H
15 #define TGO4HTTPPROXY_H
19 #include "TXMLEngine.h"
21 #include <QNetworkAccessManager>
22 #include <QNetworkReply>
36 QNetworkAccessManager
qnam;
86 void httpError(QNetworkReply::NetworkError);
94 virtual Bool_t
IsRemote()
const {
return kTRUE; }
98 virtual Bool_t
GetObject(TObject* &obj, Bool_t &owner)
const {
return kFALSE; }
134 XMLNodePointer_t
FindItem(
const char* name, XMLNodePointer_t curr = 0)
const;
146 Bool_t
SubmitURL(
const char* path, Int_t waitres = -1);
148 Bool_t
PostObject(
const char* prefix, TObject* obj, Int_t waitres = -1, Bool_t destroy_after = kTRUE);
150 Bool_t
CheckUserName(
const char* expects, Bool_t dflt = kFALSE);
160 void SetAccount(
const char* username,
const char* passwd);
162 Bool_t
Connect(
const char* nodename);
185 virtual Bool_t
SubmitCommand(
const char* name, Int_t waitres = -1,
const char* arg1 = 0,
const char* arg2 = 0,
const char* arg3 = 0);
187 virtual const char*
GetUserName()
const {
return fUserName.Data(); }
TGo4HttpProxy * fProxy
used only to receive hierarchy
virtual Int_t AssignObjectTo(TGo4ObjectManager *rcv, const char *path)
TString fPassword
user name and password -
virtual void RequestAnalysisSettings()
virtual void CloseAnalysisSettings()
Int_t fStatusCnt
counter for ratemeter updates
virtual void DisconnectAnalysis(Int_t waittime=30, Bool_t servershutdown=kFALSE)
virtual void ChageObjectProtection(const char *fullpath, const char *flags)
virtual Bool_t CanSubmitObjects()
Bool_t fbAnalysisRunning
counter for debug output updates
QNetworkAccessManager qnam
virtual TString FindCommand(const char *name)
virtual void ReadData(TGo4Slot *slot, TDirectory *dir)
virtual Bool_t HasSublevels() const
Int_t fDebugCnt
counter for status messages updates
virtual void Initialize(TGo4Slot *slot)
Bool_t PostObject(const char *prefix, TObject *obj, Int_t waitres=-1, Bool_t destroy_after=kTRUE)
Bool_t CheckUserName(const char *expects, Bool_t dflt=kFALSE)
virtual void ClearAnalysisObject(const char *fullpath)
virtual void RequestEventStatus(const char *evname, Bool_t astree, TGo4Slot *tgtslot)
virtual Bool_t IsAnalysisServer() const
virtual Bool_t CanGetObject() const
virtual Bool_t IsViewer()
virtual TClass * GetObjectClass() const
void ProcessUpdateTimer()
virtual void SaveConfigFile(const char *fname)
Bool_t SubmitURL(const char *path, Int_t waitres=-1)
virtual Bool_t IsConnected()
virtual const char * GetObjectClassName() const
void authenticationRequiredSlot(QNetworkReply *, QAuthenticator *)
virtual const char * GetUserName() const
QHttpProxy(TGo4HttpProxy *p)
QNetworkReply * fRegularReq
true if connected
Bool_t Connect(const char *nodename)
virtual TObject * GetAssignedObject()
virtual Bool_t IsAdministrator()
virtual void RemoteTreeDraw(const char *treename, const char *varexp, const char *cutcond, const char *hname)
virtual Bool_t IsRemote() const
void ProcessRegularMultiRequest(Bool_t finished=kFALSE)
void StartRequest(const char *url)
virtual void ClearAllAnalysisObjects()
virtual void Update(TGo4Slot *slot, Bool_t strong)
virtual void StartAnalysis()
void GetHReply(QByteArray &res)
counter during shutdown
void SetAccount(const char *username, const char *passwd)
virtual const char * GetContainedObjectInfo()
virtual Int_t NumCommandArgs(const char *name)
TGo4ObjectManager * fReceiver
TGo4HttpAccess * SubmitRequest(const char *itemname, Int_t kind, TGo4Slot *tgtslot, const char *extra_arg=0)
virtual ~TGo4HttpAccess()
virtual void WriteData(TGo4Slot *slot, TDirectory *dir, Bool_t onlyobjs)
QHttpProxy fComm
pointer on dabc::Hierarchy class
virtual Bool_t RequestObjectStatus(const char *objectname, TGo4Slot *tgtslot)
void httpError(QNetworkReply::NetworkError)
virtual Bool_t SubmitCommand(const char *name, Int_t waitres=-1, const char *arg1=0, const char *arg2=0, const char *arg3=0)
virtual Bool_t IsGo4Analysis() const
XMLDocPointer_t fxHierarchy
virtual Int_t GetObjectKind()
virtual void ResetDebugOutputRequests()
virtual Bool_t NamesListReceived()
virtual void LoadConfigFile(const char *fname)
virtual void RemoveObjectFromAnalysis(const char *fullpath)
void httpHReqError(QNetworkReply::NetworkError)
virtual void SubmitAnalysisSettings()
Bool_t ServerHasRestrict()
void regularRequestFinished()
virtual Bool_t RefreshNamesList()
virtual void ExecuteLine(const char *line)
QNetworkReply * fHReply
central manager of network requests
virtual const char * GetContainedClassName()
virtual Bool_t UpdateAnalysisObject(const char *objectname, TObject *obj)
virtual void WriteAutoSave(const char *fname, Int_t complevel, Bool_t overwrite)
virtual TGo4LevelIter * MakeIter()
TString MakeUrlPath(XMLNodePointer_t item)
virtual Int_t GetObjectSizeInfo()
virtual void Finalize(TGo4Slot *slot)
Bool_t UpdateHierarchy(Bool_t sync=kTRUE)
virtual void RemotePrintEvent(const char *evname, Int_t evnumber, Int_t subid, Bool_t ishex, Bool_t islong)
virtual const char * GetObjectName() const
TGo4HttpAccess(TGo4HttpProxy *proxy, XMLNodePointer_t node, Int_t kind=1, const char *extra_arg=0)
Bool_t CheckShutdown(Bool_t force=kFALSE)
virtual TGo4Access * ProvideAccess(const char *name)
virtual void StopAnalysis()
virtual Bool_t GetObject(TObject *&obj, Bool_t &owner) const
virtual Bool_t DelayedRefreshNamesList(Int_t delay_sec)
virtual Bool_t IsAnalysisRunning() const
virtual void PrintDynListEntry(const char *fullpath)
virtual Bool_t IsController()
Int_t fShutdownCnt
multiple request for rate, log and messages
XMLNodePointer_t FindItem(const char *name, XMLNodePointer_t curr=0) const