diff options
author | Matúš Kukan <matus.kukan@gmail.com> | 2012-07-14 10:56:14 +0200 |
---|---|---|
committer | Matúš Kukan <matus.kukan@gmail.com> | 2012-07-17 16:40:27 +0200 |
commit | f5ee5d794f0c7500755df68b2b57d56e4566c9c1 (patch) | |
tree | 437ea861a5e2371dcab20bbc1296bb9ac35a41ff /tubes | |
parent | c8a6a1ff706600562bc08fe1dd490c149bbf8012 (diff) |
tubes: add possibility to invite contacts to MUC
Change-Id: Ia27c725aff1d16d21ee1f5abcfff9a107bd87a82
Diffstat (limited to 'tubes')
-rw-r--r-- | tubes/inc/tubes/conference.hxx | 2 | ||||
-rw-r--r-- | tubes/source/conference.cxx | 9 |
2 files changed, 11 insertions, 0 deletions
diff --git a/tubes/inc/tubes/conference.hxx b/tubes/inc/tubes/conference.hxx index a43a6dc8bf68..b35fddc4c5bb 100644 --- a/tubes/inc/tubes/conference.hxx +++ b/tubes/inc/tubes/conference.hxx @@ -70,6 +70,8 @@ public: void queue( const char* pDBusSender, const char* pPacket, int nSize ); void queue( TelePacket &rPacket ); + TUBES_DLLPUBLIC void invite( TpContact *pContact ); + /** Emitted when a packet is received. */ boost::signals2::signal<void (TelePacket&)> sigPacketReceived; 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: |