LibreOffice Module desktop (master)  1
Public Member Functions | Public Attributes | Private Attributes | List of all members
desktop::CallbackFlushHandler::CallbackData Struct Reference

#include <init.hxx>

Public Member Functions

 CallbackData (int type, const std::string &payload)
 
RectangleAndPartsetRectangleAndPart (const std::string &payload)
 Parse and set the RectangleAndPart object and return it. Clobbers PayloadString. More...
 
void setRectangleAndPart (const RectangleAndPart &rRectAndPart)
 Set a RectangleAndPart object and update PayloadString. More...
 
const RectangleAndPartgetRectangleAndPart () const
 Return the parsed RectangleAndPart instance. More...
 
boost::property_tree::ptree & setJson (const std::string &payload)
 Parse and set the JSON object and return it. Clobbers PayloadString. More...
 
void setJson (const boost::property_tree::ptree &rTree)
 Set a Json object and update PayloadString. More...
 
const boost::property_tree::ptree & getJson () const
 Return the parsed JSON instance. More...
 
bool validate () const
 Validate that the payload and parsed object match. More...
 
bool isCached () const
 Returns true iff there is cached data. More...
 

Public Attributes

int Type
 
std::string PayloadString
 

Private Attributes

boost::variant< boost::blank, RectangleAndPart, boost::property_tree::ptree > PayloadObject
 The parsed payload cache. Update validate() when changing this. More...
 

Detailed Description

Definition at line 95 of file init.hxx.

Constructor & Destructor Documentation

desktop::CallbackFlushHandler::CallbackData::CallbackData ( int  type,
const std::string &  payload 
)
inline

Definition at line 97 of file init.hxx.

Member Function Documentation

const boost::property_tree::ptree & desktop::CallbackFlushHandler::CallbackData::getJson ( ) const

Return the parsed JSON instance.

Definition at line 578 of file init.cxx.

const RectangleAndPart & desktop::CallbackFlushHandler::CallbackData::getRectangleAndPart ( ) const

Return the parsed RectangleAndPart instance.

Definition at line 549 of file init.cxx.

bool desktop::CallbackFlushHandler::CallbackData::isCached ( ) const
inline

Returns true iff there is cached data.

Definition at line 120 of file init.hxx.

boost::property_tree::ptree & desktop::CallbackFlushHandler::CallbackData::setJson ( const std::string &  payload)

Parse and set the JSON object and return it. Clobbers PayloadString.

Definition at line 555 of file init.cxx.

Referenced by desktop::CallbackFlushHandler::processWindowEvent().

void desktop::CallbackFlushHandler::CallbackData::setJson ( const boost::property_tree::ptree &  rTree)

Set a Json object and update PayloadString.

Definition at line 568 of file init.cxx.

RectangleAndPart & desktop::CallbackFlushHandler::CallbackData::setRectangleAndPart ( const std::string &  payload)

Parse and set the RectangleAndPart object and return it. Clobbers PayloadString.

Definition at line 535 of file init.cxx.

Referenced by desktop::CallbackFlushHandler::processInvalidateTilesEvent().

void desktop::CallbackFlushHandler::CallbackData::setRectangleAndPart ( const RectangleAndPart rRectAndPart)

Set a RectangleAndPart object and update PayloadString.

Definition at line 543 of file init.cxx.

References desktop::RectangleAndPart::toString().

bool desktop::CallbackFlushHandler::CallbackData::validate ( ) const

Validate that the payload and parsed object match.

Definition at line 584 of file init.cxx.

Referenced by desktop::CallbackFlushHandler::processWindowEvent(), and desktop::CallbackFlushHandler::queue().

Member Data Documentation

boost::variant<boost::blank, RectangleAndPart, boost::property_tree::ptree> desktop::CallbackFlushHandler::CallbackData::PayloadObject
private

The parsed payload cache. Update validate() when changing this.

Definition at line 127 of file init.hxx.

std::string desktop::CallbackFlushHandler::CallbackData::PayloadString
int desktop::CallbackFlushHandler::CallbackData::Type

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