add method
Add new recent call item based on specified CallModel
Implementation
void add(CallModel c) {
CdrModel cdr = CdrModel.fromCall(c.myCallId, c.accUri, c.remoteExt, c.isIncoming, c.hasVideo);
_cdrItems.insert(0, cdr);
if((kMaxItems > 0) && (_cdrItems.length > kMaxItems)) {
_cdrItems.removeLast();
}
notifyListeners();
}