libreoffice-online/loolwsd/LOOLSession.hpp
Tor Lillqvist ce438007b2 Rename LOOLConnectionServer to LOOLSession
That is hopefully a better name.
2015-03-09 10:02:47 +02:00

39 lines
1.1 KiB
C++

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef INCLUDED_LOOLSESSION_HPP
#define INCLUDED_LOOLSESSION_HPP
#define LOK_USE_UNSTABLE_API
#include <LibreOfficeKit/LibreOfficeKit.h>
#include <LibreOfficeKit/LibreOfficeKitEnums.h>
#include <Poco/Net/WebSocket.h>
#include <Poco/StringTokenizer.h>
struct LOOLSession
{
public:
LOOLSession(Poco::Net::WebSocket& ws, LibreOfficeKit *loKit);
~LOOLSession();
bool handleInput(char *buffer, int length);
void sendTextFrame(std::string text);
void sendBinaryFrame(const char *buffer, int length);
void loadDocument(Poco::StringTokenizer& tokens);
std::string getStatus();
void sendTile(Poco::StringTokenizer& tokens);
Poco::Net::WebSocket& _ws;
LibreOfficeKit *_loKit;
LibreOfficeKitDocument *_loKitDocument;
};
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */