// SPDX-FileCopyrightText: 2021 Alexey Andreyev // // SPDX-License-Identifier: LicenseRef-KDE-Accepted-GPL #include "call-model.h" CallModel::CallModel(QObject *parent) : QAbstractListModel(parent) { } QHash CallModel::roleNames() const { QHash roleNames; roleNames[EventRole] = "event"; roleNames[ProtocolRole] = "protocol"; roleNames[AccountRole] = "account"; roleNames[ProviderRole] = "provider"; roleNames[CommunicationWithRole] = "communicationWith"; roleNames[DirectionRole] = "direction"; roleNames[StateRole] = "state"; roleNames[StateReasonRole] = "stateReason"; roleNames[CallAttemptDurationRole] = "callAttemptDuration"; roleNames[StartedAtRole] = "startedAt"; roleNames[DurationRole] = "duration"; return roleNames; }