summaryrefslogtreecommitdiffstats
path: root/voice/voiceagentmodel.cpp
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2019-12-29 22:59:38 +0000
committerGerrit Code Review <gerrit@automotivelinux.org>2019-12-29 22:59:38 +0000
commit95e3f5a2c51062128c68f1150e3e89284ca4dd5b (patch)
tree47ae4cef8f3e341b7ef702ec51b93da08d569fc6 /voice/voiceagentmodel.cpp
parent68e84b142fb4d476e270a7d81dd5ab32acf9fdb5 (diff)
parentedb90cdc42f3f030c573d71778ec53e08aca6094 (diff)
Merge "voice: add vendor name to voiceagent model"
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;
}