swift
Public Member Functions | List of all members
swift::core::db::CDatabaseReader::JsonDatastoreResponse Struct Reference

Response from our database (depending on JSON DB backend generates) More...

Inheritance diagram for swift::core::db::CDatabaseReader::JsonDatastoreResponse:
[legend]

Public Member Functions

bool isEmpty () const
 Any data?
 
bool isLoadedFromDb () const
 Is loaded from database.
 
bool isRestricted () const
 Incremental data, restricted by query?
 
void setRestricted (bool restricted)
 Mark as restricted.
 
QJsonArray getJsonArray () const
 Get the JSON array.
 
int getArraySize () const
 Number of elements.
 
void setJsonArray (const QJsonArray &value)
 Set the JSON array.
 
void setStringSize (int size)
 Set string size.
 
QString toQString () const
 String info.
 
 operator QJsonArray () const
 Implicit conversion.
 
- Public Member Functions inherited from swift::core::db::CDatabaseReader::HeaderResponse
bool hasTimestamp () const
 Any timestamp?
 
bool isNewer (const QDateTime &ts) const
 Is response newer?
 
bool isNewer (qint64 mSecsSinceEpoch) const
 Is response newer?
 
const QDateTimegetLastModifiedTimestamp () const
 Get the "last-modified" timestamp.
 
void setLastModifiedTimestamp (const QDateTime &updated)
 Set update timestamp, default normally "last-modified".
 
qulonglong getContentLengthHeader () const
 Header content length.
 
void setContentLengthHeader (qulonglong size)
 Set the content length.
 
bool hasErrorMessage () const
 Error message?
 
bool hasWarningOrAboveMessage () const
 Warning or error message?
 
const swift::misc::CStatusMessagelastWarningOrAbove () const
 Last error or warning.
 
void setMessage (const swift::misc::CStatusMessage &lastErrorOrWarning)
 Set the error/warning message.
 
const swift::misc::network::CUrlgetUrl () const
 URL loaded.
 
QString getUrlString () const
 URL loaded as string.
 
void setUrl (const swift::misc::network::CUrl &url)
 Set the loaded URL.
 
bool isSharedFile () const
 Is a shared file?
 
bool hasHttpStatusCode () const
 Has HTTP status code?
 
int getHttpStatusCode () const
 HTTP status code.
 
qint64 getLoadTimeMs () const
 Load time in ms (from request to response)
 
QString getLoadTimeString () const
 Load time as string.
 
QString getLoadTimeStringWithStartedHint () const
 Load time as string.
 
void setLoadTimeMs (qint64 deltaTime)
 Set the load time (delta start -> response received)
 
void setValues (const QNetworkReply *nwReply)
 Set reply values.
 

Detailed Description

Response from our database (depending on JSON DB backend generates)

Definition at line 130 of file databasereader.h.


The documentation for this struct was generated from the following files: