Friendly LWM2M client
FwInternalDl.h
Go to the documentation of this file.
1 #ifndef FW_AUTO_DL_H
2 #define FW_AUTO_DL_H
3 
4 #include <vector>
6 
7 namespace wpp {
8 
17 class FwInternalDl {
18 public:
19  FwInternalDl() = default;
20  virtual ~FwInternalDl() = default;
21 
27  virtual void downloadIsStarted() = 0;
28 
36  virtual bool saveDownloadedBlock(const OPAQUE_T &dataBlock) = 0;
37 
43  virtual void downloadIsCompleted() = 0;
44 
50  virtual FwUpdRes downloadResult() = 0;
51 
59  virtual void reset() = 0;
60 };
61 
62 }
63 
64 #endif // FW_AUTO_DL_H
virtual bool saveDownloadedBlock(const OPAQUE_T &dataBlock)=0
Request to save downloaded block of the firmware package.
virtual void reset()=0
Reset the download process. When this method is called, the download process is reset and the downloa...
virtual void downloadIsCompleted()=0
Notify about dwnloading process completion. Regardless of the reason for the termination,...
virtual ~FwInternalDl()=default
FwInternalDl()=default
virtual FwUpdRes downloadResult()=0
Contains the result of the download process. Possible results when download is successful: R_INITIAL ...
virtual void downloadIsStarted()=0
Notify about dwnloading process start.
The WppConnection class represents a connection interface for the Wpp library.
Definition: WppClient.cpp:14
FwUpdRes
Definition: FwTypes.h:9
std::vector< uint8_t > OPAQUE_T
Opaque - represent buffer or string as lwm2m_data_t.value.asBuffer.
Definition: WppTypes.h:49