~tiagosh/history-service/use-libphonenumber

« back to all changes in this revision

Viewing changes to Ubuntu/History/historyeventmodel.cpp

Store the number that was used to call a given voice event. Fixes: #1410500
Approved by: PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
    mRoles[TextReadSubjectRole] = "textSubject";
46
46
    mRoles[CallMissedRole] = "callMissed";
47
47
    mRoles[CallDurationRole] = "callDuration";
 
48
    mRoles[RemoteParticipantRole] = "remoteParticipant";
48
49
}
49
50
 
50
51
int HistoryEventModel::rowCount(const QModelIndex &parent) const
153
154
            result = voiceEvent.duration();
154
155
        }
155
156
        break;
 
157
    case RemoteParticipantRole:
 
158
        if (!voiceEvent.isNull()) {
 
159
            result = voiceEvent.remoteParticipant();
 
160
        }
 
161
        break;
156
162
    }
157
163
 
158
164
    return result;