From 966c99071442e16fd3e7aaea046198e76e6aea25 Mon Sep 17 00:00:00 2001
From: Akira Ohgaki <akiraohgaki@gmail.com>
Date: Mon, 14 Nov 2016 09:21:39 +0900
Subject: [PATCH] Rename signals

---
 src/app/handlers/xdgurl.cpp | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/app/handlers/xdgurl.cpp b/src/app/handlers/xdgurl.cpp
index bc05f1c..6e66c55 100644
--- a/src/app/handlers/xdgurl.cpp
+++ b/src/app/handlers/xdgurl.cpp
@@ -38,7 +38,7 @@ void XdgUrl::process()
         QJsonObject result;
         result["status"] = QString("error_validation");
         result["message"] = QString("Invalid XDG-URL " + xdgUrl_);
-        emit error(result);
+        emit finishedWithError(result);
         return;
     }
 
@@ -81,7 +81,7 @@ void XdgUrl::networkResourceFinished(qtlibs::NetworkResource *resource)
         QJsonObject result;
         result["status"] = QString("error_network");
         result["message"] = resource->reply()->errorString();
-        emit error(result);
+        emit finishedWithError(result);
         return;
     }
 
@@ -177,7 +177,7 @@ void XdgUrl::saveDownloadedFile(qtlibs::NetworkResource *resource)
     if (!resource->saveData(path)) {
         result["status"] = QString("error_save");
         result["message"] = QString("Failed to save data as " + path);
-        emit error(result);
+        emit finishedWithError(result);
         return;
     }
 
@@ -185,7 +185,7 @@ void XdgUrl::saveDownloadedFile(qtlibs::NetworkResource *resource)
 
     result["status"] = QString("success_download");
     result["message"] = QString("The file has been stored into " + destination);
-    emit finished(result);
+    emit finishedWithSuccess(result);
 }
 
 void XdgUrl::installDownloadedFile(qtlibs::NetworkResource *resource)
@@ -197,7 +197,7 @@ void XdgUrl::installDownloadedFile(qtlibs::NetworkResource *resource)
     if (!resource->saveData(tempPath)) {
         result["status"] = QString("error_save");
         result["message"] = QString("Failed to save data as " + tempPath);
-        emit error(result);
+        emit finishedWithError(result);
         return;
     }
 
@@ -249,7 +249,7 @@ void XdgUrl::installDownloadedFile(qtlibs::NetworkResource *resource)
         tempFile.remove();
         result["status"] = QString("error_install");
         result["message"] = QString("Failed to installation");
-        emit error(result);
+        emit finishedWithError(result);
         return;
     }
 
@@ -258,7 +258,7 @@ void XdgUrl::installDownloadedFile(qtlibs::NetworkResource *resource)
     destination_ = destination;
 
     result["status"] = QString("success_install");
-    emit finished(result);
+    emit finishedWithSuccess(result);
 }
 
 } // namespace handlers
-- 
GitLab