summaryrefslogtreecommitdiff
path: root/tubes/source/manager.cxx
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@gmail.com>2012-08-07 10:59:58 +0200
committerMatúš Kukan <matus.kukan@gmail.com>2012-08-08 10:04:17 +0200
commitb870f1420ea926f231502272eec08c45e9da4cc5 (patch)
treec47bd194512b1450408a50cfd70049e372d87b7b /tubes/source/manager.cxx
parent34c6421bddddb2128dd59acc867f73739ac1ca62 (diff)
tubes: make contacts dialog a member of Collaboration class
Change-Id: Ib50b550f9486bc1abfeefd5d1aac57c0d712ec04
Diffstat (limited to 'tubes/source/manager.cxx')
-rw-r--r--tubes/source/manager.cxx19
1 files changed, 19 insertions, 0 deletions
diff --git a/tubes/source/manager.cxx b/tubes/source/manager.cxx
index 3d87f1969393..4d0fc66946c2 100644
--- a/tubes/source/manager.cxx
+++ b/tubes/source/manager.cxx
@@ -103,6 +103,8 @@ public:
MapStringConference maAcceptedConferences;
typedef std::set< TeleConference* > DemoConferences;
DemoConferences maDemoConferences;
+ typedef std::set< Collaboration* > Collaborations;
+ Collaborations maCollaborations;
TeleManagerImpl();
~TeleManagerImpl();
@@ -225,6 +227,23 @@ TeleConference* TeleManager::getConference()
return pConference;
}
+void TeleManager::registerCollaboration( Collaboration* pCollaboration )
+{
+ pImpl->maCollaborations.insert( pCollaboration );
+}
+
+void TeleManager::unregisterCollaboration( Collaboration* pCollaboration )
+{
+ pImpl->maCollaborations.erase( pCollaboration );
+}
+
+void TeleManager::displayAllContacts()
+{
+ for (TeleManagerImpl::Collaborations::iterator it = pImpl->maCollaborations.begin();
+ it != pImpl->maCollaborations.end(); ++it)
+ (*it)->DisplayContacts();
+}
+
void TeleManager::registerDemoConference( TeleConference* pConference )
{
pImpl->maDemoConferences.insert( pConference );