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/calladapter.cpp b/src/calladapter.cpp
index c4badc9..0ead73b 100644
--- a/src/calladapter.cpp
+++ b/src/calladapter.cpp
@@ -176,7 +176,7 @@
         }
     }
 
-    emit callStatusChanged(lrc::api::call::to_string(call.status), accountId, convInfo.uid);
+    emit callStatusChanged(static_cast<int>(call.status), accountId, convInfo.uid);
 
     emit updateConversationSmartList();
 }
@@ -342,9 +342,7 @@
              */
             const auto convInfo = LRCInstance::getConversationFromCallId(callId);
             if (!convInfo.uid.isEmpty()) {
-                emit callStatusChanged(lrc::api::call::to_string(call.status),
-                                       accountId,
-                                       convInfo.uid);
+                emit callStatusChanged(static_cast<int>(call.status), accountId, convInfo.uid);
             }
 
             switch (call.status) {