summaryrefslogtreecommitdiff
path: root/tubes/inc
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@gmail.com>2012-08-04 16:30:55 +0200
committerMatúš Kukan <matus.kukan@gmail.com>2012-08-04 22:51:32 +0200
commit401806233ca0ca25c6124a21fd3c873e219cc3e9 (patch)
tree6ac0f27ad717c9a6027f6fbb0b05960fe5b184f1 /tubes/inc
parent2a26650105507cd700b7e91bd55c8a5f61e7dd7c (diff)
tubes: implement another way for demoing collaboration
This way it affects code ~only internally in tubes/ module. Change-Id: I1fd1fa460d51ad57ae2f6df0adeb5fadfc7a8c95
Diffstat (limited to 'tubes/inc')
-rw-r--r--tubes/inc/tubes/manager.hxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/tubes/inc/tubes/manager.hxx b/tubes/inc/tubes/manager.hxx
index 67f319c5154a..06ff54342596 100644
--- a/tubes/inc/tubes/manager.hxx
+++ b/tubes/inc/tubes/manager.hxx
@@ -94,6 +94,9 @@ public:
*/
ContactList* getContactList() const;
+ /** Start a demo session where all local documents are shared to each other */
+ TeleConference* startDemoSession();
+
/** Start a group session in a MUC.
@param pAccount
@@ -125,6 +128,11 @@ public:
/** Get a conference with current UUID to set a session. */
TUBES_DLLPUBLIC static TeleConference* getConference();
+ static void registerDemoConference( TeleConference* pConference );
+ static void unregisterDemoConference( TeleConference* pConference );
+ /** Broadcast packet to all conferences. Used for demo mode. */
+ static void broadcastPacket( const OString& rPacket );
+
/** True if there has been tube channel received and is still not used. */
TUBES_DLLPUBLIC static bool hasWaitingConference();
static void setCurrentUuid( const OString& rUuid );
@@ -135,7 +143,7 @@ public:
// Only for callbacks.
- void addConference( TeleConference* pConference );
+ static void addConference( TeleConference* pConference );
void setChannelReadyHandlerInvoked( bool b );
bool isChannelReadyHandlerInvoked() const;
void setAccountManagerReadyHandlerInvoked( bool b );