From f525733f195051fdf82222b27d9408afa30bb064 Mon Sep 17 00:00:00 2001 From: Scott Murray Date: Sun, 29 Dec 2019 16:38:14 -0500 Subject: voice: add vendor name to voiceagent model Add the vendor name to the voiceagent model to allow using it applications, and fixed a typo and a couple of possible state name omissions. Bug-AGL: SPEC-2981 Signed-off-by: Scott Murray Change-Id: I65a59ec17d0e003bc114fa85d120ee773fee0f1a --- voice/voiceagentmodel.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'voice/voiceagentmodel.cpp') diff --git a/voice/voiceagentmodel.cpp b/voice/voiceagentmodel.cpp index 3f4f50d..90ddf01 100644 --- a/voice/voiceagentmodel.cpp +++ b/voice/voiceagentmodel.cpp @@ -52,6 +52,8 @@ QVariant VoiceAgentModel::data(const QModelIndex &index, int role) const return readLoginParams(index); case ActiveRole: return vap->isactive()? "active" : "inactive"; + case VendorRole: + return vap->vendor(); } return ret; } @@ -216,5 +218,6 @@ QHash VoiceAgentModel::roleNames() const roles[DialogStateRole] = "dialogstate"; roles[LoginParamsRole] = "usrauth"; roles[ActiveRole] = "active"; + roles[VendorRole] = "vendor"; return roles; } -- cgit 1.2.3-korg