videocall: transition to videopage during a call
- transtions to the videopage during a call
- displays the called peer's name at the top of the page
- allows the user to end the call with the hangup button
- allows the user to exit and re-enter the call by selecting
different SmartListItems
Change-Id: I48e120e9ea9bcb2498ef7a45c706e7267fd77708
diff --git a/CallsViewModel.cpp b/CallsViewModel.cpp
index af9f832..b714790 100644
--- a/CallsViewModel.cpp
+++ b/CallsViewModel.cpp
@@ -1,6 +1,7 @@
-/***************************************************************************
+/**************************************************************************
* Copyright (C) 2016 by Savoir-faire Linux *
* Author: Jäger Nicolas <nicolas.jager@savoirfairelinux.com> *
+* Author: Traczyk Andreas <andreas.traczyk@savoirfairelinux.com> *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
@@ -44,10 +45,14 @@
if (state == "OVER") {
delete call;
call->stateChange("", code);
+ callEnded();
callStatusUpdated(call); // used ?
RingD::instance->hangUpCall(call);
return;
}
+ else if (state == "CURRENT") {
+ callStarted();
+ }
call->stateChange(state, code);
callStatusUpdated(call); // same...
return;