summaryrefslogtreecommitdiff
path: root/desktop/source
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@gmail.com>2012-07-20 21:31:30 +0200
committerMatúš Kukan <matus.kukan@gmail.com>2012-07-24 13:51:10 +0200
commitb12954531953fb8ad585847fe42677d714991ef1 (patch)
tree27a93059da4a0e36fb19af6545f46d0fd083be60 /desktop/source
parent22d551b3f636c15468e9411b93872f7ab3aecdea (diff)
tubes: init TeleManager in desktop
- register clients when we run --invisible - create ScDocFuncSend only if we are going to use it Change-Id: I7e33cd5a2e42e34a055146dc6c2bdac3657d6529
Diffstat (limited to 'desktop/source')
-rw-r--r--desktop/source/app/app.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx
index 3ee805bb6a42..65dd453e11c6 100644
--- a/desktop/source/app/app.cxx
+++ b/desktop/source/app/app.cxx
@@ -614,12 +614,19 @@ throw()
Desktop::Desktop()
: m_bServicesRegistered( false )
, m_aBootstrapError( BE_OK )
+#ifdef ENABLE_TELEPATHY
+, m_pTeleManager( NULL )
+#endif
{
RTL_LOGFILE_TRACE( "desktop (cd100003) ::Desktop::Desktop" );
}
Desktop::~Desktop()
{
+#ifdef ENABLE_TELEPATHY
+ if (m_pTeleManager)
+ m_pTeleManager->unref();
+#endif
}
void Desktop::Init()
@@ -1700,6 +1707,12 @@ int Desktop::Main()
aOptions.SetVCLSettings();
SetSplashScreenProgress(60);
+#ifdef ENABLE_TELEPATHY
+ m_pTeleManager = TeleManager::get();
+ bool bListen = rCmdLineArgs.IsInvisible();
+ m_pTeleManager->init( bListen );
+#endif
+
if ( !pExecGlobals->bRestartRequested )
{
Application::SetFilterHdl( LINK( this, Desktop, ImplInitFilterHdl ) );