summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-08-03 09:57:19 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-08-03 09:57:19 (GMT)
commit83791d091430a0b2fa534c104823f91a7587d64e (patch)
tree4759ed491ee2d936c21328e73a873876cd2f19b6 /Slimber
parent9af232bad7ba867e8d29346f9d6730422178adcd (diff)
downloadswift-contrib-83791d091430a0b2fa534c104823f91a7587d64e.zip
swift-contrib-83791d091430a0b2fa534c104823f91a7587d64e.tar.bz2
Slimber: Remove debug output.
Diffstat (limited to 'Slimber')
-rw-r--r--Slimber/MainController.cpp6
-rw-r--r--Slimber/Server.cpp8
2 files changed, 9 insertions, 5 deletions
diff --git a/Slimber/MainController.cpp b/Slimber/MainController.cpp
index 9cd8c4d..baf032c 100644
--- a/Slimber/MainController.cpp
+++ b/Slimber/MainController.cpp
@@ -80,7 +80,11 @@ void MainController::handleSelfConnected(bool b) {
void MainController::handleServicesChanged() {
std::vector<String> names;
foreach(const LinkLocalService& service, linkLocalServiceBrowser->getServices()) {
- names.push_back(service.getDescription());
+ String description = service.getDescription();
+ if (description != service.getName()) {
+ description += " (" + service.getName() + ")";
+ }
+ names.push_back(description);
}
menuletController->setUserNames(names);
}
diff --git a/Slimber/Server.cpp b/Slimber/Server.cpp
index a944ab9..e07fb41 100644
--- a/Slimber/Server.cpp
+++ b/Slimber/Server.cpp
@@ -146,8 +146,8 @@ void Server::handleNewClientConnection(boost::shared_ptr<Connection> connection)
serverFromClientSession->onSessionFinished.connect(
boost::bind(&Server::handleSessionFinished, this,
serverFromClientSession));
- tracers.push_back(boost::shared_ptr<SessionTracer>(
- new SessionTracer(serverFromClientSession)));
+ //tracers.push_back(boost::shared_ptr<SessionTracer>(
+ // new SessionTracer(serverFromClientSession)));
serverFromClientSession->startSession();
}
@@ -275,7 +275,7 @@ void Server::handleNewLinkLocalConnection(boost::shared_ptr<Connection> connecti
}
void Server::handleLinkLocalSessionFinished(boost::shared_ptr<Session> session) {
- std::cout << "Link local session from " << session->getRemoteJID() << " ended" << std::endl;
+ //std::cout << "Link local session from " << session->getRemoteJID() << " ended" << std::endl;
linkLocalSessions.erase(
std::remove(linkLocalSessions.begin(), linkLocalSessions.end(), session),
linkLocalSessions.end());
@@ -316,7 +316,7 @@ void Server::registerLinkLocalSession(boost::shared_ptr<Session> session) {
session->onElementReceived.connect(
boost::bind(&Server::handleLinkLocalElementReceived, this, _1, session));
linkLocalSessions.push_back(session);
- tracers.push_back(boost::shared_ptr<SessionTracer>(new SessionTracer(session)));
+ //tracers.push_back(boost::shared_ptr<SessionTracer>(new SessionTracer(session)));
session->startSession();
}