summaryrefslogtreecommitdiffstats
path: root/homescreen/qml/qml.qrc
blob: 319e1da2ff7a1ffb9fe160238f2635cab8fe30a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<RCC>
    <qresource prefix="/">
        <file>MediaArea.qml</file>
        <file>MediaAreaBlank.qml</file>
        <file>MediaAreaMusic.qml</file>
        <file>MediaAreaRadio.qml</file>
        <file>ShortcutArea.qml</file>
        <file>ShortcutIcon.qml</file>
        <file>StatusArea.qml</file>
        <file>TopArea.qml</file>
        <file>IconItem.qml</file>
        <file>background.qml</file>
        <file>toppanel.qml</file>
        <file>bottompanel.qml</file>
        <file>background_demo.qml</file>
        <file>toppanel_demo.qml</file>
        <file>bottompanel_demo.qml</file>
    </qresource>
</RCC>
n>::interfaces::ILogger::Level; namespace vshl { namespace core { string VRRequest::VA_VERB_STARTLISTENING = "startListening"; string VRRequest::VA_VERB_CANCEL = "cancel"; unique_ptr<VRRequest> VRRequest::create( shared_ptr<vshl::common::interfaces::ILogger> logger, shared_ptr<vshl::common::interfaces::IAFBApi> afbApi, const string requestId, shared_ptr<vshl::common::interfaces::IVoiceAgent> voiceAgent) { if (logger == nullptr) { return nullptr; } if (afbApi == nullptr) { logger->log(Level::ERROR, TAG, "Invalid AFB API"); return nullptr; } auto request = std::unique_ptr<VRRequest>(new VRRequest(logger, afbApi, requestId, voiceAgent)); return request; } VRRequest::VRRequest( shared_ptr<vshl::common::interfaces::ILogger> logger, shared_ptr<vshl::common::interfaces::IAFBApi> afbApi, string requestId, shared_ptr<vshl::common::interfaces::IVoiceAgent> voiceAgent) : mApi(afbApi), mRequestId(requestId), mVoiceAgent(voiceAgent), mLogger(logger) { } VRRequest::~VRRequest() { } bool VRRequest::startListening() { json_object* object = NULL; std::string error, info; bool result = true; int rc = mApi->callSync(mVoiceAgent->getApi(), VA_VERB_STARTLISTENING, NULL, &object, error, info); FREEIF(object); return true; } bool VRRequest::cancel() { json_object* object = NULL; std::string error, info; bool result = true; int rc = mApi->callSync(mVoiceAgent->getApi(), VA_VERB_CANCEL, NULL, &object, error, info); FREEIF(object); return true; } } // namespace core } // namespace vshl