summaryrefslogtreecommitdiff
path: root/tubes/source/conference.cxx
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@gmail.com>2012-07-14 10:56:14 +0200
committerMatúš Kukan <matus.kukan@gmail.com>2012-07-17 16:40:27 +0200
commitf5ee5d794f0c7500755df68b2b57d56e4566c9c1 (patch)
tree437ea861a5e2371dcab20bbc1296bb9ac35a41ff /tubes/source/conference.cxx
parentc8a6a1ff706600562bc08fe1dd490c149bbf8012 (diff)
tubes: add possibility to invite contacts to MUC
Change-Id: Ia27c725aff1d16d21ee1f5abcfff9a107bd87a82
Diffstat (limited to 'tubes/source/conference.cxx')
-rw-r--r--tubes/source/conference.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/tubes/source/conference.cxx b/tubes/source/conference.cxx
index a04851e35132..97da5cfe0d80 100644
--- a/tubes/source/conference.cxx
+++ b/tubes/source/conference.cxx
@@ -418,6 +418,15 @@ void TeleConference::queue( const char* pDBusSender, const char* pPacketData, in
queue( aPacket );
}
+void TeleConference::invite( TpContact *pContact )
+{
+ INFO_LOGGER( "TeleConference::invite" );
+ TpHandle aHandle = tp_contact_get_handle( pContact );
+ GArray handles = { reinterpret_cast<gchar *> (&aHandle), 1 };
+ tp_cli_channel_interface_group_call_add_members( TP_CHANNEL( mpChannel ),
+ -1, &handles, NULL, NULL, NULL, NULL, NULL );
+}
+
class SendFileRequest {
public: