diff options
author | Matúš Kukan <matus.kukan@gmail.com> | 2012-06-30 12:52:57 +0200 |
---|---|---|
committer | Matúš Kukan <matus.kukan@gmail.com> | 2012-07-17 16:40:19 +0200 |
commit | 8be626323e39d0cd8c073b6d17ae5e8181f12b1e (patch) | |
tree | 5c5a8459fdc553893e61437e563a08efbad37723 /sc | |
parent | 05c8c686a0c7dcbd58fac67a6a2c9b957f4159ad (diff) |
tubes: make TeleManager::startGroupSession work and use it
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/collab/contacts.cxx | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sc/source/ui/collab/contacts.cxx b/sc/source/ui/collab/contacts.cxx index d1f27ec87596..bfc771055ad0 100644 --- a/sc/source/ui/collab/contacts.cxx +++ b/sc/source/ui/collab/contacts.cxx @@ -107,6 +107,21 @@ class TubeContacts : public ModelessDialog } } + void StartGroupSession() + { + AccountContact *pAC = NULL; + if (maList.FirstSelected()) + pAC = static_cast<AccountContact*> (maList.FirstSelected()->GetUserData()); + if (pAC) + { + TpAccount* pAccount = pAC->mpAccount; + fprintf( stderr, "picked %s\n", tp_account_get_display_name( pAccount ) ); + TeleManager *pManager = TeleManager::get(); + if (!pManager->startGroupSession( pAccount, rtl::OUString("liboroom"), rtl::OUString("conference.jabber.org") )) + fprintf( stderr, "could not start group session\n" ); + } + } + public: TubeContacts() : ModelessDialog( NULL, ScResId( RID_SCDLG_CONTACTS ) ), @@ -188,7 +203,11 @@ public: IMPL_LINK_NOARG( TubeContacts, BtnConnectHdl ) { +#if 0 StartBuddySession(); +#else + StartGroupSession(); +#endif Close(); return 0; } |