call : accept/reject incoming calls
- removes contacts as sources for the smartList.
- creates smartListItems, and set them as sources for the smartList.
SmartListItem is a UI control, not a model.
- adds contacts and calls (associated) inside smartListItem.
- removes some UI property from contact class (model).
- adds a new filter : Controls, where smartListItems belongs.
Tuleap: #1014
Change-Id: Ia7679c2328f9dc85b6265c5e518aad08805230fb
diff --git a/CallsViewModel.cpp b/CallsViewModel.cpp
index 02a4933..f5dd3d2 100644
--- a/CallsViewModel.cpp
+++ b/CallsViewModel.cpp
@@ -66,4 +66,14 @@
void RingClientUWP::ViewModel::CallsViewModel::clearCallsList()
{
CallsList_->Clear();
-}
\ No newline at end of file
+}
+
+Call^
+CallsViewModel::findCall(String^ callId)
+{
+ for each (Call^ call in CallsList_)
+ if (call->callId == callId)
+ return call;
+
+ return nullptr;
+}