diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2019-05-29 16:26:16 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2019-08-05 15:47:47 -0400 |
commit | 52e477e57eb7c6df8bbc085b603fdb25b314d63d (patch) | |
tree | 0a571705d90f6ad736a49f619159c5d453872d6f /kit/ChildSession.hpp | |
parent | fakesockettest: respect CPPUNIT_TEST_NAME (diff) | |
download | online-52e477e57eb7c6df8bbc085b603fdb25b314d63d.tar.gz online-52e477e57eb7c6df8bbc085b603fdb25b314d63d.zip |
Switch to text/html for paste where we can.
Build special URLs to detect the same host being in-use, and much more.
Change-Id: I0ca639ea416cb78bf5e5274eac4400542b6b2cda
Diffstat (limited to 'kit/ChildSession.hpp')
-rw-r--r-- | kit/ChildSession.hpp | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/kit/ChildSession.hpp b/kit/ChildSession.hpp index bb6a3d7207..737b7d8e6b 100644 --- a/kit/ChildSession.hpp +++ b/kit/ChildSession.hpp @@ -53,12 +53,12 @@ public: /// if it is the last and only. virtual void onUnload(const ChildSession& session) = 0; + /// Access to the Kit instance. + virtual std::shared_ptr<lok::Office> getLOKit() = 0; + /// Access to the document instance. virtual std::shared_ptr<lok::Document> getLOKitDocument() = 0; - /// Access to the office instance. - virtual std::shared_ptr<lok::Office> getLOKit() = 0; - /// Send updated view info to all active sessions. virtual void notifyViewInfo() = 0; virtual void updateEditorSpeeds(int id, int speed) = 0; @@ -278,6 +278,18 @@ private: return _docManager.getLOKitDocument(); } + std::string getLOKitLastError() + { + char *lastErr = _docManager.getLOKit()->getError(); + std::string ret; + if (lastErr) + { + ret = std::string(lastErr, strlen(lastErr)); + free (lastErr); + } + return ret; + } + private: const std::string _jailId; DocumentManagerInterface& _docManager; |