mainview: get call state from API's enumeration

In order to make it work with the translations, call status is no longer passed as a string but as an integer (from enum lrc::api::call::Status).

Gitlab: #10
Change-Id: If8d8b7093fbf82e9b7732e6991eec647ad0d50b7
diff --git a/src/utils.cpp b/src/utils.cpp
index a43cf1b..2723ff3 100644
--- a/src/utils.cpp
+++ b/src/utils.cpp
@@ -1046,6 +1046,14 @@
     return call->id;
 }
 
+const QString
+UtilsAdapter::getCallStatusStr(int statusInt)
+{
+    const auto status = static_cast<lrc::api::call::Status>(statusInt);
+    return lrc::api::call::to_string(status);
+}
+
+
 // returns true if name is valid registered name
 bool
 UtilsAdapter::validateRegNameForm(const QString &regName)