File: OAIHashes.h

package info (click to toggle)
libre-graph-api-cpp-qt-client 1.0.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,480 kB
  • sloc: cpp: 244; makefile: 8
file content (82 lines) | stat: -rw-r--r-- 1,935 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
// model-header.mustache

// licenseInfo.mustache

/**
 * Libre Graph API
 * Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
 *
 * The version of the OpenAPI document: v1.0.4
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/*
 * OAIHashes.h
 *
 * Hashes of the file's binary content, if available. Read-only.
 */

#ifndef OAIHashes_H
#define OAIHashes_H

#include <QJsonObject>

#include <QString>

#include "OAIEnum.h"
#include "OAIObject.h"

namespace OpenAPI {


class OAIHashesPrivate;

class OAIHashes : public OAIObject {
public:
    OAIHashes();
    OAIHashes(const OAIHashes &other);
    OAIHashes(QString json);
    ~OAIHashes() override;

    QString asJson() const override;
    QJsonObject asJsonObject() const override;
    void fromJsonObject(QJsonObject json) override;
    void fromJson(QString jsonString) override;

    QString getCrc32Hash() const;
    void setCrc32Hash(const QString &crc32_hash);
    bool is_crc32_hash_Set() const;
    bool is_crc32_hash_Valid() const;

    QString getQuickXorHash() const;
    void setQuickXorHash(const QString &quick_xor_hash);
    bool is_quick_xor_hash_Set() const;
    bool is_quick_xor_hash_Valid() const;

    QString getSha1Hash() const;
    void setSha1Hash(const QString &sha1_hash);
    bool is_sha1_hash_Set() const;
    bool is_sha1_hash_Valid() const;

    QString getSha256Hash() const;
    void setSha256Hash(const QString &sha256_hash);
    bool is_sha256_hash_Set() const;
    bool is_sha256_hash_Valid() const;

    virtual bool isSet() const override;
    virtual bool isValid() const override;

private:
    void initializeModel();
    Q_DECLARE_PRIVATE(OAIHashes)
    QSharedPointer<OAIHashesPrivate> d_ptr;
};

} // namespace OpenAPI

Q_DECLARE_METATYPE(OpenAPI::OAIHashes)

#endif // OAIHashes_H