android: improve remote control debugging.
This commit is contained in:
@@ -106,6 +106,9 @@ void Communicator::execute()
|
|||||||
aCommand.clear();
|
aCommand.clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SAL_INFO ("sdremote", "Exiting transmission loop\n");
|
||||||
|
|
||||||
disposeListener();
|
disposeListener();
|
||||||
|
|
||||||
pTransmitter->notifyFinished();
|
pTransmitter->notifyFinished();
|
||||||
@@ -114,6 +117,7 @@ void Communicator::execute()
|
|||||||
|
|
||||||
delete mpSocket;
|
delete mpSocket;
|
||||||
|
|
||||||
|
|
||||||
RemoteServer::removeCommunicator( this );
|
RemoteServer::removeCommunicator( this );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -51,6 +51,7 @@ ImagePreparer::ImagePreparer(
|
|||||||
: xController( rxController ),
|
: xController( rxController ),
|
||||||
pTransmitter( aTransmitter )
|
pTransmitter( aTransmitter )
|
||||||
{
|
{
|
||||||
|
SAL_INFO( "sdremote", "ImagePreparer - start" );
|
||||||
SetTimeout( 50 );
|
SetTimeout( 50 );
|
||||||
mnSendingSlide = 0;
|
mnSendingSlide = 0;
|
||||||
Start();
|
Start();
|
||||||
@@ -58,14 +59,15 @@ ImagePreparer::ImagePreparer(
|
|||||||
|
|
||||||
ImagePreparer::~ImagePreparer()
|
ImagePreparer::~ImagePreparer()
|
||||||
{
|
{
|
||||||
|
SAL_INFO( "sdremote", "ImagePreparer - stop" );
|
||||||
Stop();
|
Stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ImagePreparer::Timeout()
|
void ImagePreparer::Timeout()
|
||||||
{
|
{
|
||||||
sal_uInt32 aSlides = xController->getSlideCount();
|
sal_uInt32 aSlides = xController->getSlideCount();
|
||||||
// fprintf( stderr, "ImagePreparer: %d %d %d\n", xController->isRunning(),
|
SAL_INFO( "sdremote", "ImagePreparer " << xController->isRunning() <<
|
||||||
// (int)mnSendingSlide, (int)aSlides);
|
" sending slide " << mnSendingSlide << " of " << aSlides );
|
||||||
if ( xController->isRunning() && // not stopped/disposed of.
|
if ( xController->isRunning() && // not stopped/disposed of.
|
||||||
mnSendingSlide < aSlides )
|
mnSendingSlide < aSlides )
|
||||||
{
|
{
|
||||||
|
@@ -59,6 +59,7 @@ void Listener::init( const css::uno::Reference< css::presentation::XSlideShowCon
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
SAL_INFO( "sdremote", "Listener::init but no controller - so no preview push queued" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -15,7 +15,6 @@
|
|||||||
#include <com/sun/star/frame/XFramesSupplier.hpp>
|
#include <com/sun/star/frame/XFramesSupplier.hpp>
|
||||||
#include <com/sun/star/uno/RuntimeException.hpp>
|
#include <com/sun/star/uno/RuntimeException.hpp>
|
||||||
|
|
||||||
|
|
||||||
#include <comphelper/processfactory.hxx>
|
#include <comphelper/processfactory.hxx>
|
||||||
#include <osl/file.hxx>
|
#include <osl/file.hxx>
|
||||||
#include <rtl/ustrbuf.hxx>
|
#include <rtl/ustrbuf.hxx>
|
||||||
|
@@ -171,6 +171,7 @@ void RemoteServer::execute()
|
|||||||
delete pSocket;
|
delete pSocket;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
SAL_INFO( "sdremote", "shutting down RemoteServer" );
|
||||||
spServer = NULL; // Object is destroyed when Thread::execute() ends.
|
spServer = NULL; // Object is destroyed when Thread::execute() ends.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user