summaryrefslogtreecommitdiff
path: root/sd/source/ui/remotecontrol/Communicator.cxx
diff options
context:
space:
mode:
authorArtur Dryomov <artur.dryomov@gmail.com>2013-09-21 17:24:45 +0300
committerMichael Meeks <michael.meeks@collabora.com>2013-10-02 12:57:55 +0100
commit7488c72023dedd38eade901a8686044ff6ea525a (patch)
treecca4ff43ce2c0d9a9e331ab1b6b607e48b04d4e9 /sd/source/ui/remotecontrol/Communicator.cxx
parentb5683734bd60e6a2e48f1c6d7406062d8f63dd7c (diff)
Add sending server information after pairing.
Basically it is only version at moment. Should be helpful for protocol versioning. Change-Id: I57fd5d73f783c32393c0b3fb9a4573cb6852060e
Diffstat (limited to 'sd/source/ui/remotecontrol/Communicator.cxx')
-rw-r--r--sd/source/ui/remotecontrol/Communicator.cxx17
1 files changed, 14 insertions, 3 deletions
diff --git a/sd/source/ui/remotecontrol/Communicator.cxx b/sd/source/ui/remotecontrol/Communicator.cxx
index 775d72122323..c9954e2f8c30 100644
--- a/sd/source/ui/remotecontrol/Communicator.cxx
+++ b/sd/source/ui/remotecontrol/Communicator.cxx
@@ -13,6 +13,7 @@
#include <comphelper/processfactory.hxx>
#include <comphelper/documentinfo.hxx>
#include <comphelper/mediadescriptor.hxx>
+#include <config_version.h>
#include <rtl/string.hxx>
#include <rtl/strbuf.hxx>
@@ -54,6 +55,15 @@ void Communicator::execute()
pTransmitter->addMessage( "LO_SERVER_SERVER_PAIRED\n\n",
Transmitter::PRIORITY_HIGH );
+
+ OStringBuffer aServerInformationBuffer;
+ aServerInformationBuffer
+ .append( "LO_SERVER_INFO\n" )
+ .append( OUStringToOString( OUString::createFromAscii( LIBO_VERSION_DOTTED ), RTL_TEXTENCODING_UTF8 ) )
+ .append("\n\n");
+
+ pTransmitter->addMessage( aServerInformationBuffer.makeStringAndClear(), Transmitter::PRIORITY_HIGH );
+
Receiver aReceiver( pTransmitter );
try {
uno::Reference< frame::XDesktop2 > xFramesSupplier = frame::Desktop::create( ::comphelper::getProcessComponentContext() );
@@ -76,9 +86,10 @@ void Communicator::execute()
}
OStringBuffer aBuffer;
- aBuffer.append( "slideshow_info\n" )
- .append( OUStringToOString( ::comphelper::DocumentInfo::getDocumentTitle( xFrame->getController()->getModel() ), RTL_TEXTENCODING_UTF8 ) )
- .append("\n\n");
+ aBuffer
+ .append( "slideshow_info\n" )
+ .append( OUStringToOString( ::comphelper::DocumentInfo::getDocumentTitle( xFrame->getController()->getModel() ), RTL_TEXTENCODING_UTF8 ) )
+ .append("\n\n");
pTransmitter->addMessage( aBuffer.makeStringAndClear(), Transmitter::PRIORITY_LOW );
}