7#include "voskspeechtotextinfo.h"
9VoskSpeechToTextInfo::VoskSpeechToTextInfo() =
default;
11VoskSpeechToTextInfo::~VoskSpeechToTextInfo() =
default;
13bool VoskSpeechToTextInfo::isValid()
const
18QString VoskSpeechToTextInfo::identifier()
const
23void VoskSpeechToTextInfo::setIdentifier(
const QString &newLang)
25 mIdentifier = newLang;
28QString VoskSpeechToTextInfo::langText()
const
33void VoskSpeechToTextInfo::setLangText(
const QString &newLangText)
35 mLangText = newLangText;
38QString VoskSpeechToTextInfo::md5()
const
43void VoskSpeechToTextInfo::setMd5(
const QString &newMd5)
48QString VoskSpeechToTextInfo::version()
const
53void VoskSpeechToTextInfo::setVersion(
const QString &newVersion)
55 mVersion = newVersion;
58QString VoskSpeechToTextInfo::url()
const
63void VoskSpeechToTextInfo::setUrl(
const QString &newUrl)
68quint64 VoskSpeechToTextInfo::size()
const
73void VoskSpeechToTextInfo::setSize(quint64 newSize)
78bool VoskSpeechToTextInfo::obsolete()
const
83void VoskSpeechToTextInfo::setObsolete(
bool newObsolete)
85 mObsolete = newObsolete;
88bool VoskSpeechToTextInfo::operator==(
const VoskSpeechToTextInfo &other)
const
90 return mIdentifier == other.identifier() && mLangText == other.langText() && mMd5 == other.md5() && mVersion == other.version() && mUrl == other.url()
91 && mSize == other.size() && mObsolete == other.obsolete() && mType == other.type() && mName == other.name();
94void VoskSpeechToTextInfo::parse(
const QJsonObject &obj)
107QString VoskSpeechToTextInfo::type()
const
112void VoskSpeechToTextInfo::setType(
const QString &newType)
117QString VoskSpeechToTextInfo::name()
const
122void VoskSpeechToTextInfo::setName(
const QString &newName)
129 d <<
"mLang : " << t.identifier();
130 d <<
"mLangText : " << t.langText();
131 d <<
"mMd5 : " << t.md5();
132 d <<
"mVersion : " << t.version();
133 d <<
"mUrl : " << t.url();
134 d <<
"mSize : " << t.size();
135 d <<
"mObsolete : " << t.obsolete();
136 d <<
"mType : " << t.type();
137 d <<
"mName : " << t.name();
KTEXTEDITOR_EXPORT QDebug operator<<(QDebug s, const MovingCursor &cursor)
bool isEmpty() const const