History

Rename 'URL_SCHEME_HIFI' -> 'URL_SCHEME_VIRCADIA'.

Kalila L committed 5 years ago

Commit 51e64681 parent d8a0d139 files · +39 −39Browse files

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

Unified · Split

interface/src/Application.cpp+5−5
@@ -4004,7 +4004,7 @@ void Application::handleSandboxStatus(QNetworkReply* reply) { · 4003 unmodified lines
40044004 parser.parse(arguments());
40054005 if (parser.isSet(urlOption)) {
40064006 QUrl url = QUrl(parser.value(urlOption));
4007− if (url.scheme() == URL_SCHEME_HIFIAPP) {
4007+ if (url.scheme() == URL_SCHEME_VIRCADIAAPP) {
40084008 Setting::Handle<QVariant>("startUpApp").set(url.path());
40094009 } else {
40104010 addressLookupString = url.toString();
@@ -7285,7 +7285,7 @@ void Application::clearDomainOctreeDetails(bool clearAll) { · 3274 unmodified lines
72857285
72867286 void Application::domainURLChanged(QUrl domainURL) {
72877287 // disable physics until we have enough information about our new location to not cause craziness.
7288− setIsServerlessMode(domainURL.scheme() != URL_SCHEME_HIFI);
7288+ setIsServerlessMode(domainURL.scheme() != URL_SCHEME_VIRCADIA);
72897289 if (isServerlessMode()) {
72907290 loadServerlessDomain(domainURL);
72917291 }
@@ -7294,7 +7294,7 @@ void Application::domainURLChanged(QUrl domainURL) { · 2 unmodified lines
72947294
72957295 void Application::goToErrorDomainURL(QUrl errorDomainURL) {
72967296 // disable physics until we have enough information about our new location to not cause craziness.
7297− setIsServerlessMode(errorDomainURL.scheme() != URL_SCHEME_HIFI);
7297+ setIsServerlessMode(errorDomainURL.scheme() != URL_SCHEME_VIRCADIA);
72987298 if (isServerlessMode()) {
72997299 loadErrorDomain(errorDomainURL);
73007300 }
@@ -7658,7 +7658,7 @@ bool Application::canAcceptURL(const QString& urlString) const { · 357 unmodified lines
76587658 QUrl url(urlString);
76597659 if (url.query().contains(WEB_VIEW_TAG)) {
76607660 return false;
7661− } else if (urlString.startsWith(URL_SCHEME_HIFI)) {
7661+ } else if (urlString.startsWith(URL_SCHEME_VIRCADIA)) {
76627662 return true;
76637663 }
76647664 QString lowerPath = url.path().toLower();
@@ -7673,7 +7673,7 @@ bool Application::canAcceptURL(const QString& urlString) const { · 8 unmodified lines
76737673 bool Application::acceptURL(const QString& urlString, bool defaultUpload) {
76747674 QUrl url(urlString);
76757675
7676− if (url.scheme() == URL_SCHEME_HIFI) {
7676+ if (url.scheme() == URL_SCHEME_VIRCADIA) {
76777677 // this is a hifi URL - have the AddressManager handle it
76787678 QMetaObject::invokeMethod(DependencyManager::get<AddressManager>().data(), "handleLookupString",
76797679 Qt::AutoConnection, Q_ARG(const QString&, urlString));