QEverCloud  6.1.0
Unofficial Evernote Cloud API for Qt
Public Member Functions | Public Attributes | List of all members
qevercloud::Data Struct Reference

#include <Types.h>

Inheritance diagram for qevercloud::Data:
qevercloud::Printable

Public Member Functions

virtual void print (QTextStream &strm) const override
 
bool operator== (const Data &other) const
 
bool operator!= (const Data &other) const
 
- Public Member Functions inherited from qevercloud::Printable
 Printable ()=default
 
virtual ~Printable ()=default
 
virtual QString toString () const
 

Public Attributes

EverCloudLocalData localData
 
Optional< QByteArray > bodyHash
 
Optional< qint32 > size
 
Optional< QByteArray > body
 

Detailed Description

In several places, EDAM exchanges blocks of bytes of data for a component which may be relatively large. For example: the contents of a clipped HTML note, the bytes of an embedded image, or the recognition XML for a large image. This structure is used in the protocol to represent any of those large blocks of data when they are transmitted or when they are only referenced their metadata.

Member Function Documentation

◆ operator!=()

bool qevercloud::Data::operator!= ( const Data other) const
inline

◆ operator==()

bool qevercloud::Data::operator== ( const Data other) const
inline

◆ print()

virtual void qevercloud::Data::print ( QTextStream &  strm) const
overridevirtual

Implements qevercloud::Printable.

Member Data Documentation

◆ body

Optional< QByteArray > qevercloud::Data::body

This field is set to contain the binary contents of the data whenever the resource is being transferred. If only metadata is being exchanged, this field will be empty. For example, a client could notify the service about the change to an attribute for a resource without transmitting the binary resource contents.

◆ bodyHash

Optional< QByteArray > qevercloud::Data::bodyHash

This field carries a one-way hash of the contents of the data body, in binary form. The hash function is MD5
Length: EDAM_HASH_LEN (exactly)

◆ localData

EverCloudLocalData qevercloud::Data::localData

See the declaration of EverCloudLocalData for details

◆ size

Optional< qint32 > qevercloud::Data::size

The length, in bytes, of the data body.