History

rename NodeList DomainInfo to DomainHandler

Stephen Birarda committed 12 years ago

Commit 62041d91 parent caf247311 files · +52 −52Browse files

Showing the changes to interface/src/Menu.cpp (1 of 11 files). Show all

Unified · Split

interface/src/Menu.cpp+6−6
@@ -863,23 +863,23 @@ void Menu::editPreferences() { · 862 unmodified lines
863863 }
864864
865865 void Menu::goToDomain(const QString newDomain) {
866− if (NodeList::getInstance()->getDomainInfo().getHostname() != newDomain) {
866+ if (NodeList::getInstance()->getDomainHandler().getHostname() != newDomain) {
867867
868868 // send a node kill request, indicating to other clients that they should play the "disappeared" effect
869869 Application::getInstance()->getAvatar()->sendKillAvatar();
870870
871871 // give our nodeList the new domain-server hostname
872− NodeList::getInstance()->getDomainInfo().setHostname(newDomain);
872+ NodeList::getInstance()->getDomainHandler().setHostname(newDomain);
873873 }
874874 }
875875
876876 void Menu::goToDomainDialog() {
877877
878− QString currentDomainHostname = NodeList::getInstance()->getDomainInfo().getHostname();
878+ QString currentDomainHostname = NodeList::getInstance()->getDomainHandler().getHostname();
879879
880− if (NodeList::getInstance()->getDomainInfo().getPort() != DEFAULT_DOMAIN_SERVER_PORT) {
880+ if (NodeList::getInstance()->getDomainHandler().getPort() != DEFAULT_DOMAIN_SERVER_PORT) {
881881 // add the port to the currentDomainHostname string if it is custom
882− currentDomainHostname.append(QString(":%1").arg(NodeList::getInstance()->getDomainInfo().getPort()));
882+ currentDomainHostname.append(QString(":%1").arg(NodeList::getInstance()->getDomainHandler().getPort()));
883883 }
884884
885885 QInputDialog domainDialog(Application::getInstance()->getWindow());
@@ -1034,7 +1034,7 @@ void Menu::nameLocation() { · 148 unmodified lines
10341034 connect(manager, &LocationManager::creationCompleted, this, &Menu::namedLocationCreated);
10351035 NamedLocation* location = new NamedLocation(locationName,
10361036 myAvatar->getPosition(), myAvatar->getOrientation(),
1037− NodeList::getInstance()->getDomainInfo().getHostname());
1037+ NodeList::getInstance()->getDomainHandler().getHostname());
10381038 manager->createNamedLocation(location);
10391039 }
10401040 }