File indexing completed on 2024-05-05 04:44:16
0001 /* 0002 * Copyright 2021 Aditya Mehra <aix.m@outlook.com> 0003 * 0004 * Licensed under the Apache License, Version 2.0 (the "License"); 0005 * you may not use this file except in compliance with the License. 0006 * You may obtain a copy of the License at 0007 * 0008 * http://www.apache.org/licenses/LICENSE-2.0 0009 * 0010 * Unless required by applicable law or agreed to in writing, software 0011 * distributed under the License is distributed on an "AS IS" BASIS, 0012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 0013 * See the License for the specific language governing permissions and 0014 * limitations under the License. 0015 * 0016 */ 0017 0018 #ifndef SKILLENTRY_H 0019 #define SKILLENTRY_H 0020 0021 #include <QObject> 0022 0023 class SkillEntry : public QObject 0024 { 0025 Q_OBJECT 0026 Q_PROPERTY(QString intent READ intent WRITE setIntent NOTIFY intentChanged) 0027 Q_PROPERTY(QString action READ action WRITE setAction NOTIFY actionChanged) 0028 Q_PROPERTY(QString voc READ voc WRITE setVoc NOTIFY vocChanged) 0029 Q_PROPERTY(QString dialog READ dialog WRITE setDialog NOTIFY dialogChanged) 0030 0031 public: 0032 explicit SkillEntry(QObject *parent = nullptr); 0033 0034 QString intent() const; 0035 void setIntent(const QString &intent); 0036 0037 QString action() const; 0038 void setAction(const QString &action); 0039 0040 QString voc() const; 0041 void setVoc(const QString &voc); 0042 0043 QString dialog() const; 0044 void setDialog(const QString &voc); 0045 0046 signals: 0047 void intentChanged(QString intent); 0048 void actionChanged(QString action); 0049 void vocChanged(QString voc); 0050 void dialogChanged(QString dialog); 0051 0052 private: 0053 QString _intent; 0054 QString _action; 0055 QString _voc; 0056 QString _dialog; 0057 }; 0058 #endif 0059