summaryrefslogtreecommitdiffstats
path: root/voice/voiceagentmodel.cpp
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2019-12-29 16:38:14 -0500
committerScott Murray <scott.murray@konsulko.com>2019-12-29 21:29:29 +0000
commitedb90cdc42f3f030c573d71778ec53e08aca6094 (patch)
treed6f3e2adf71b0d7644afd5645ddcc1e0a4e92176 /voice/voiceagentmodel.cpp
parent72eb23f64454c16301ae3856f122698b137b3038 (diff)
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 <scott.murray@konsulko.com> Change-Id: I65a59ec17d0e003bc114fa85d120ee773fee0f1a
Diffstat (limited to 'voice/voiceagentmodel.cpp')
-rw-r--r--voice/voiceagentmodel.cpp3
1 files changed, 3 insertions, 0 deletions
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<int, QByteArray> VoiceAgentModel::roleNames() const
roles[DialogStateRole] = "dialogstate";
roles[LoginParamsRole] = "usrauth";
roles[ActiveRole] = "active";
+ roles[VendorRole] = "vendor";
return roles;
}