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 94 of file init.hxx.

Constructor & Destructor Documentation

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

Definition at line 96 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 591 of file init.cxx.

References assert().

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

Return the parsed RectangleAndPart instance.

Definition at line 562 of file init.cxx.

References assert().

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

Returns true iff there is cached data.

Definition at line 119 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 568 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 581 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 548 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 556 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 597 of file init.cxx.

References assert().

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 126 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: