android: improve remote control debugging.

This commit is contained in:
Michael Meeks
2013-08-02 00:34:31 +02:00
parent 5e3d94d9ac
commit 43dbc8088b
5 changed files with 10 additions and 3 deletions

View File

@@ -106,6 +106,9 @@ void Communicator::execute()
aCommand.clear();
}
}
SAL_INFO ("sdremote", "Exiting transmission loop\n");
disposeListener();
pTransmitter->notifyFinished();
@@ -114,6 +117,7 @@ void Communicator::execute()
delete mpSocket;
RemoteServer::removeCommunicator( this );
}

View File

@@ -51,6 +51,7 @@ ImagePreparer::ImagePreparer(
: xController( rxController ),
pTransmitter( aTransmitter )
{
SAL_INFO( "sdremote", "ImagePreparer - start" );
SetTimeout( 50 );
mnSendingSlide = 0;
Start();
@@ -58,14 +59,15 @@ ImagePreparer::ImagePreparer(
ImagePreparer::~ImagePreparer()
{
SAL_INFO( "sdremote", "ImagePreparer - stop" );
Stop();
}
void ImagePreparer::Timeout()
{
sal_uInt32 aSlides = xController->getSlideCount();
// fprintf( stderr, "ImagePreparer: %d %d %d\n", xController->isRunning(),
// (int)mnSendingSlide, (int)aSlides);
SAL_INFO( "sdremote", "ImagePreparer " << xController->isRunning() <<
" sending slide " << mnSendingSlide << " of " << aSlides );
if ( xController->isRunning() && // not stopped/disposed of.
mnSendingSlide < aSlides )
{

View File

@@ -59,6 +59,7 @@ void Listener::init( const css::uno::Reference< css::presentation::XSlideShowCon
}
else
{
SAL_INFO( "sdremote", "Listener::init but no controller - so no preview push queued" );
}
}

View File

@@ -15,7 +15,6 @@
#include <com/sun/star/frame/XFramesSupplier.hpp>
#include <com/sun/star/uno/RuntimeException.hpp>
#include <comphelper/processfactory.hxx>
#include <osl/file.hxx>
#include <rtl/ustrbuf.hxx>

View File

@@ -171,6 +171,7 @@ void RemoteServer::execute()
delete pSocket;
}
}
SAL_INFO( "sdremote", "shutting down RemoteServer" );
spServer = NULL; // Object is destroyed when Thread::execute() ends.
}