LibreOffice Module desktop (master)
1
|
#include <init.hxx>
Public Member Functions | |
CallbackData (int type, const std::string &payload) | |
RectangleAndPart & | setRectangleAndPart (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 RectangleAndPart & | getRectangleAndPart () 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... | |
|
inline |
const boost::property_tree::ptree & desktop::CallbackFlushHandler::CallbackData::getJson | ( | ) | const |
const RectangleAndPart & desktop::CallbackFlushHandler::CallbackData::getRectangleAndPart | ( | ) | const |
Return the parsed RectangleAndPart instance.
Definition at line 545 of file init.cxx.
References assert().
|
inline |
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 551 of file init.cxx.
Referenced by desktop::CallbackFlushHandler::processWindowEvent().
void desktop::CallbackFlushHandler::CallbackData::setJson | ( | const boost::property_tree::ptree & | rTree | ) |
RectangleAndPart & desktop::CallbackFlushHandler::CallbackData::setRectangleAndPart | ( | const std::string & | payload | ) |
Parse and set the RectangleAndPart object and return it. Clobbers PayloadString.
Definition at line 531 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 539 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 580 of file init.cxx.
References assert().
Referenced by desktop::CallbackFlushHandler::processWindowEvent(), and desktop::CallbackFlushHandler::queue().
|
private |
The parsed payload cache. Update validate() when changing this.
std::string desktop::CallbackFlushHandler::CallbackData::PayloadString |
Definition at line 123 of file init.hxx.
Referenced by desktop::CallbackFlushHandler::Invoke(), desktop::CallbackFlushHandler::processInvalidateTilesEvent(), desktop::CallbackFlushHandler::processWindowEvent(), and desktop::CallbackFlushHandler::queue().
int desktop::CallbackFlushHandler::CallbackData::Type |
Definition at line 122 of file init.hxx.
Referenced by desktop::CallbackFlushHandler::Invoke(), desktop::CallbackFlushHandler::processInvalidateTilesEvent(), and desktop::CallbackFlushHandler::processWindowEvent().