File indexing completed on 2024-04-21 04:42:50

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 #include "skillentry.h"
0019 #include <QJsonObject>
0020 
0021 SkillEntry::SkillEntry(QObject *parent) : QObject(parent)
0022 {
0023 }
0024 
0025 QString SkillEntry::intent() const
0026 {
0027     return _intent;
0028 }
0029 
0030 void SkillEntry::setIntent(const QString &intent)
0031 {
0032     if(_intent == intent) return;
0033     _intent = intent;
0034     Q_EMIT intentChanged(_intent);
0035 }
0036 
0037 QString SkillEntry::action() const
0038 {
0039     return _action;
0040 }
0041 
0042 void SkillEntry::setAction(const QString &action)
0043 {
0044     if(_action == action) return;
0045     _action = action;
0046     Q_EMIT actionChanged(_action);
0047 }
0048 
0049 QString SkillEntry::voc() const
0050 {
0051     return _voc;
0052 }
0053 
0054 void SkillEntry::setVoc(const QString &voc)
0055 {
0056     if(_voc == voc) return;
0057     _voc = voc;
0058     Q_EMIT vocChanged(_voc);
0059 }
0060 
0061 QString SkillEntry::dialog() const
0062 {
0063     return _dialog;
0064 }
0065 
0066 void SkillEntry::setDialog(const QString &dialog)
0067 {
0068     if(_dialog == dialog) return;
0069     _dialog = dialog;
0070     Q_EMIT dialogChanged(_dialog);
0071 }