LibreOffice Module desktop (master) 1
|
Public Member Functions | |
CallbackData (OString payload) | |
CallbackData (OString payload, int viewId) | |
CallbackData (const tools::Rectangle *pRect, int viewId) | |
CallbackData (const tools::Rectangle *pRect, int part, int mode) | |
const OString & | getPayload () const |
void | updateRectangleAndPart (const RectangleAndPart &rRectAndPart) |
Update a RectangleAndPart object and update PayloadString if necessary. 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... | |
int | getViewId () const |
bool | isEmpty () const |
void | clear () |
bool | validate () const |
Validate that the payload and parsed object match. More... | |
bool | isCached () const |
Returns true iff there is cached data. More... | |
Private Attributes | |
OString | PayloadString |
boost::variant< boost::blank, RectangleAndPart, boost::property_tree::ptree, int > | PayloadObject |
The parsed payload cache. Update validate() when changing this. More... | |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
const boost::property_tree::ptree & desktop::CallbackFlushHandler::CallbackData::getJson | ( | ) | const |
Return the parsed JSON instance.
Definition at line 667 of file init.cxx.
Referenced by desktop::CallbackFlushHandler::processWindowEvent().
const OString & desktop::CallbackFlushHandler::CallbackData::getPayload | ( | ) | const |
Definition at line 617 of file init.cxx.
References getRectangleAndPart(), PayloadObject, PayloadString, and desktop::RectangleAndPart::toString().
Referenced by desktop::CallbackFlushHandler::enqueueUpdatedType(), desktop::CallbackFlushHandler::processInvalidateTilesEvent(), desktop::CallbackFlushHandler::processWindowEvent(), and desktop::CallbackFlushHandler::queue().
const RectangleAndPart & desktop::CallbackFlushHandler::CallbackData::getRectangleAndPart | ( | ) | const |
Return the parsed RectangleAndPart instance.
Definition at line 635 of file init.cxx.
References desktop::RectangleAndPart::Create().
Referenced by getPayload(), and desktop::CallbackFlushHandler::processInvalidateTilesEvent().
int desktop::CallbackFlushHandler::CallbackData::getViewId | ( | ) | const |
Definition at line 673 of file init.cxx.
References lcl_getViewId().
Referenced by desktop::CallbackFlushHandler::queue().
|
inline |
|
inline |
Definition at line 166 of file init.hxx.
Referenced by desktop::CallbackFlushHandler::queue().
void desktop::CallbackFlushHandler::CallbackData::setJson | ( | const boost::property_tree::ptree & | rTree | ) |
Set a Json object and update PayloadString.
Definition at line 657 of file init.cxx.
References o3tl::trim().
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 644 of file init.cxx.
Referenced by desktop::CallbackFlushHandler::processWindowEvent().
void desktop::CallbackFlushHandler::CallbackData::updateRectangleAndPart | ( | const RectangleAndPart & | rRectAndPart | ) |
Update a RectangleAndPart object and update PayloadString if necessary.
bool desktop::CallbackFlushHandler::CallbackData::validate | ( | ) | const |
Validate that the payload and parsed object match.
Definition at line 683 of file init.cxx.
References lcl_getViewId().
Referenced by desktop::CallbackFlushHandler::processWindowEvent(), and desktop::CallbackFlushHandler::queue().
|
mutableprivate |
The parsed payload cache. Update validate() when changing this.
Definition at line 186 of file init.hxx.
Referenced by getPayload().
|
mutableprivate |
Definition at line 183 of file init.hxx.
Referenced by getPayload().