summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2012-02-28 14:27:20 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2012-02-28 14:30:41 +0100
commit423d346e21da300fad386c06b138c7fa086b133d (patch)
tree74d149daeae3ebf1a0658cb7334666e4d28faa88 /framework
parent0039d23914bfbbfcc1cb8d68c413f2e336054b96 (diff)
some fancy new SAL_LOG tracing for framework
Diffstat (limited to 'framework')
-rw-r--r--framework/source/services/sessionlistener.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/framework/source/services/sessionlistener.cxx b/framework/source/services/sessionlistener.cxx
index 524a14c2f0c0..b6c94b249c00 100644
--- a/framework/source/services/sessionlistener.cxx
+++ b/framework/source/services/sessionlistener.cxx
@@ -136,10 +136,12 @@ SessionListener::SessionListener(const css::uno::Reference< css::lang::XMultiSer
, m_bAllowUserInteractionOnQuit( sal_False )
, m_bTerminated( sal_False )
{
+ SAL_INFO("fwk.session", "SessionListener::SessionListener");
}
SessionListener::~SessionListener()
{
+ SAL_INFO("fwk.session", "SessionListener::~SessionListener");
if (m_rSessionManager.is())
{
css::uno::Reference< XSessionManagerListener> me(this);
@@ -149,6 +151,7 @@ SessionListener::~SessionListener()
void SessionListener::StoreSession( sal_Bool bAsync )
{
+ SAL_INFO("fwk.session", "SessionListener::StoreSession");
ResetableGuard aGuard(m_aLock);
try
{
@@ -182,6 +185,7 @@ void SessionListener::StoreSession( sal_Bool bAsync )
void SessionListener::QuitSessionQuietly()
{
+ SAL_INFO("fwk.session", "SessionListener::QuitSessionQuietly");
ResetableGuard aGuard(m_aLock);
try
{
@@ -206,11 +210,13 @@ void SessionListener::QuitSessionQuietly()
void SAL_CALL SessionListener::disposing(const com::sun::star::lang::EventObject&) throw (RuntimeException)
{
+ SAL_INFO("fwk.session", "SessionListener::disposing");
}
void SAL_CALL SessionListener::initialize(const Sequence< Any >& args)
throw (RuntimeException)
{
+ SAL_INFO("fwk.session", "SessionListener::initialize");
OUString aSMgr(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.frame.SessionManagerClient"));
if (args.getLength() > 0)
@@ -242,6 +248,7 @@ void SAL_CALL SessionListener::initialize(const Sequence< Any >& args)
void SAL_CALL SessionListener::statusChanged(const FeatureStateEvent& event)
throw (css::uno::RuntimeException)
{
+ SAL_INFO("fwk.session", "SessionListener::statusChanged");
if (event.FeatureURL.Complete.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("vnd.sun.star.autorecovery:/doSessionRestore")))
{
if (event.FeatureDescriptor.compareToAscii("update")==0)
@@ -262,6 +269,7 @@ void SAL_CALL SessionListener::statusChanged(const FeatureStateEvent& event)
sal_Bool SAL_CALL SessionListener::doRestore()
throw (RuntimeException)
{
+ SAL_INFO("fwk.session", "SessionListener::doRestore");
ResetableGuard aGuard(m_aLock);
m_bRestored = sal_False;
try {
@@ -288,6 +296,7 @@ sal_Bool SAL_CALL SessionListener::doRestore()
void SAL_CALL SessionListener::doSave( sal_Bool bShutdown, sal_Bool /*bCancelable*/ )
throw (RuntimeException)
{
+ SAL_INFO("fwk.session", "SessionListener::doSave");
if (bShutdown)
{
m_bSessionStoreRequested = sal_True; // there is no need to protect it with mutex
@@ -304,6 +313,7 @@ void SAL_CALL SessionListener::doSave( sal_Bool bShutdown, sal_Bool /*bCancelabl
void SAL_CALL SessionListener::approveInteraction( sal_Bool bInteractionGranted )
throw (RuntimeException)
{
+ SAL_INFO("fwk.session", "SessionListener::approveInteraction");
// do AutoSave as the first step
ResetableGuard aGuard(m_aLock);
@@ -345,6 +355,7 @@ void SAL_CALL SessionListener::approveInteraction( sal_Bool bInteractionGranted
void SessionListener::shutdownCanceled()
throw (RuntimeException)
{
+ SAL_INFO("fwk.session", "SessionListener::shutdownCanceled");
// set the state back
m_bSessionStoreRequested = sal_False; // there is no need to protect it with mutex
}
@@ -352,6 +363,7 @@ void SessionListener::shutdownCanceled()
void SessionListener::doQuit()
throw (RuntimeException)
{
+ SAL_INFO("fwk.session", "SessionListener::doQuit");
if ( m_bSessionStoreRequested && !m_bTerminated )
{
// let the session be closed quietly in this case