summaryrefslogtreecommitdiffstats
path: root/recipes-demo/html5-settings/html5-settings_git.bb
diff options
context:
space:
mode:
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>2020-12-17 17:17:19 +0100
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2020-12-17 17:17:19 +0100
commit796f796a2895f2bd840e2eb514532339b53be013 (patch)
tree00c8abe493db22a527d7cf662a478293c958a2bb /recipes-demo/html5-settings/html5-settings_git.bb
parent41591d4f8c586aa801220fac0924556f406c58bd (diff)
Move core speech service to meta-agl-demokoi_10.91.0koi/10.91.010.91.0
This moves the generic agl-speechframework to meta-agl-demo. The alexa-voiceagent bits remain in meta-agl-devel for now. This fixes a dependency of the settings app. Bug-AGL: SPEC-3734 Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Change-Id: If177271a4a2584ec71ab53ac02764c8065f8b313
Diffstat (limited to 'recipes-demo/html5-settings/html5-settings_git.bb')
0 files changed, 0 insertions, 0 deletions
* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#ifndef TRANSLATOR_H
#define TRANSLATOR_H

#include <QtCore/QObject>

class  QTranslator;

class Translator : public QObject
{
    Q_OBJECT
    Q_PROPERTY(QString language READ language WRITE setLanguage NOTIFY languageChanged)
public:
    explicit Translator(QObject *parent = nullptr);

    QString language() const;

    Q_INVOKABLE QString translate(const QString &string, const QString &language) const;
public slots:
    void setLanguage(const QString &language);

signals:
    void languageChanged(const QString &language);

private slots:
    void setTranslator(const QString &language);

private:
    QString m_language;
    QTranslator *m_translator;
};

#endif // TRANSLATOR_H