libquentier 0.5.0
The library for rich desktop clients of Evernote service
Loading...
Searching...
No Matches
ResourceRecognitionIndices.h
1/*
2 * Copyright 2016-2020 Dmitry Ivanov
3 *
4 * This file is part of libquentier
5 *
6 * libquentier is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation, version 3 of the License.
9 *
10 * libquentier is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with libquentier. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#ifndef LIB_QUENTIER_TYPES_RESOURCE_RECOGNITION_INDICES_H
20#define LIB_QUENTIER_TYPES_RESOURCE_RECOGNITION_INDICES_H
21
22#include <quentier/types/ResourceRecognitionIndexItem.h>
23
24#include <QByteArray>
25#include <QSharedDataPointer>
26#include <QVector>
27
28namespace quentier {
29
30QT_FORWARD_DECLARE_CLASS(ResourceRecognitionIndicesData)
31
32class QUENTIER_EXPORT ResourceRecognitionIndices : public Printable
33{
34public:
37
39 const QByteArray & rawRecognitionIndicesData);
40
42 const ResourceRecognitionIndices & other);
43
44 virtual ~ResourceRecognitionIndices() override;
45
46 bool isNull() const;
47 bool isValid() const;
48
49 QString objectId() const;
50 QString objectType() const;
51 QString recoType() const;
52 QString engineVersion() const;
53 QString docType() const;
54 QString lang() const;
55
56 int objectHeight() const;
57 int objectWidth() const;
58
59 QVector<ResourceRecognitionIndexItem> items() const;
60
61 bool setData(const QByteArray & rawRecognitionIndicesData);
62
63 virtual QTextStream & print(QTextStream & strm) const override;
64
65private:
66 QSharedDataPointer<ResourceRecognitionIndicesData> d;
67};
68
69} // namespace quentier
70
71#endif // LIB_QUENTIER_TYPES_RESOURCE_RECOGNITION_INDICES_H
The Printable class is the interface for Quentier's internal classes which should be able to write th...
Definition Printable.h:38
Definition ResourceRecognitionIndices.h:33