RSeries astromech firmware
WPage Class Reference

#include <wifi/WifiWebServer.h>

+ Inheritance diagram for WPage:
+ Collaboration diagram for WPage:

Public Member Functions

 WPage (String url, const WElement contents[], unsigned numElements, String title="", String lang="en")
 
 WPage (String url, fs::FS *fs, String path, const WElement contents[], unsigned numElements)
 
 WPage (String url, fs::FS *fs, String mimeType)
 
const String & getURL () const
 
bool isGet () const
 
void handleGetRequest (Print &out, String &header) const
 
void callComplete (Client &client) const
 
void callUploader (WUploader &uploader) const
 

Protected Member Functions

fs::File openFileOrCompressed (String fileName, bool &compressed) const
 

Protected Attributes

String fURL
 
String fTitleOrPath
 
String fLanguageOrMimeType
 
fs::FS * fFS
 
uint8_t fFlags = 0
 
unsigned fNumElements
 
const WElementfContents
 
void(* fCompleteProc )(Client &client) = nullptr
 
void(* fUploaderProc )(WUploader &uploader) = nullptr
 
void(* fAPIProc )(Print &out, String queryString) = nullptr
 

Constructor & Destructor Documentation

◆ WPage() [1/3]

WPage::WPage ( String  url,
const WElement  contents[],
unsigned  numElements,
String  title = "",
String  lang = "en" 
)
inline

◆ WPage() [2/3]

WPage::WPage ( String  url,
fs::FS *  fs,
String  path,
const WElement  contents[],
unsigned  numElements 
)
inline

◆ WPage() [3/3]

WPage::WPage ( String  url,
fs::FS *  fs,
String  mimeType 
)
inline

Member Function Documentation

◆ callComplete()

void WPage::callComplete ( Client &  client) const
inline

◆ callUploader()

void WPage::callUploader ( WUploader uploader) const
inline

◆ getURL()

const String& WPage::getURL ( ) const
inline

◆ handleGetRequest()

void WPage::handleGetRequest ( Print &  out,
String &  header 
) const
inline

◆ isGet()

bool WPage::isGet ( ) const
inline

◆ openFileOrCompressed()

fs::File WPage::openFileOrCompressed ( String  fileName,
bool &  compressed 
) const
inlineprotected

Member Data Documentation

◆ fAPIProc

void(* WPage::fAPIProc) (Print &out, String queryString) = nullptr
protected

◆ fCompleteProc

void(* WPage::fCompleteProc) (Client &client) = nullptr
protected

◆ fContents

const WElement* WPage::fContents
protected

◆ fFlags

uint8_t WPage::fFlags = 0
protected

◆ fFS

fs::FS* WPage::fFS
protected

◆ fLanguageOrMimeType

String WPage::fLanguageOrMimeType
protected

◆ fNumElements

unsigned WPage::fNumElements
protected

◆ fTitleOrPath

String WPage::fTitleOrPath
protected

◆ fUploaderProc

void(* WPage::fUploaderProc) (WUploader &uploader) = nullptr
protected

◆ fURL

String WPage::fURL
protected

The documentation for this class was generated from the following file: