All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
IWebRequestService.h
1 // Copyright eeGeo Ltd (2012-2016), All Rights Reserved
2 
3 #pragma once
4 
5 #include "IWebLoadRequest.h"
6 #include "Tasks.h"
7 #include "ICallback.h"
8 
9 namespace Eegeo
10 {
11  namespace Web
12  {
14  {
15  public:
16  virtual ~IWebRequestService() { }
17 
18  virtual void EnqueueLoad(IWebLoadRequest* pWebRequest) = 0;
19  virtual void EnqueueCancel(IWebLoadRequest* pWebRequest) = 0;
20 
21  virtual void Update() = 0;
22 
23  virtual bool HasOngoingNetworkActivity() const = 0;
24  virtual void RegisterNetworkActivityChanged(Helpers::ICallback1<const bool&>& callback) = 0;
25  virtual void UnregisterNetworkActivityChanged(Helpers::ICallback1<const bool&>& callback) = 0;
26  };
27  }
28 }