summaryrefslogtreecommitdiff
path: root/desktop/inc
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2019-02-14 10:49:57 -0500
committerAshod Nakashian <ashnakash@gmail.com>2019-02-22 15:34:45 +0100
commit17a477c35cc43f37946dcea2b7c27f0f6571e118 (patch)
tree1c0762b447ea4ae0ebf9c4dac49b08dbce60ee7f /desktop/inc
parent1666b302403e97d5fe92c963d745947554da6906 (diff)
LOK: Cache RectangleAndPart payloads
Change-Id: I3a2d98426729ad1b4e43a8f657b512679be82c26 Reviewed-on: https://gerrit.libreoffice.org/67891 Tested-by: Jenkins Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'desktop/inc')
-rw-r--r--desktop/inc/lib/init.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/desktop/inc/lib/init.hxx b/desktop/inc/lib/init.hxx
index b02329e7f955..66696757292a 100644
--- a/desktop/inc/lib/init.hxx
+++ b/desktop/inc/lib/init.hxx
@@ -15,6 +15,8 @@
#include <memory>
#include <mutex>
+#include <boost/variant.hpp>
+
#include <osl/thread.h>
#include <rtl/ref.hxx>
#include <vcl/idle.hxx>
@@ -98,8 +100,14 @@ namespace desktop {
{
}
+ /// Parse and set the RectangleAndPart object and return it. Clobbers PayloadString.
+ RectangleAndPart& setRectangleAndPart(const std::string& payload);
+ /// Return the parsed RectangleAndPart instance.
+ const RectangleAndPart& getRectangleAndPart() const;
+
int Type;
std::string PayloadString;
+ boost::variant<boost::blank, RectangleAndPart> PayloadObject;
};
typedef std::vector<CallbackData> queue_type;