android: improve remote control debugging.
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
|
@@ -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 )
|
||||
{
|
||||
|
@@ -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" );
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -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>
|
||||
|
@@ -171,6 +171,7 @@ void RemoteServer::execute()
|
||||
delete pSocket;
|
||||
}
|
||||
}
|
||||
SAL_INFO( "sdremote", "shutting down RemoteServer" );
|
||||
spServer = NULL; // Object is destroyed when Thread::execute() ends.
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user