aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/functiontypeentry.h
blob: 53aa1fad6d416ef855bdef48726d8e3fb1c29043 (plain)
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
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#ifndef FUNCTIONTYPEENTRY_H
#define FUNCTIONTYPEENTRY_H

#include "typesystem.h"

class FunctionTypeEntryPrivate;

class FunctionTypeEntry : public TypeEntry
{
public:
    explicit FunctionTypeEntry(const QString& name, const QString& signature,
                               const QVersionNumber &vr,
                               const TypeEntryCPtr &parent);

    const QStringList &signatures() const;
    bool hasSignature(const QString& signature) const;
    void addSignature(const QString& signature);

    QString docFile() const;
    void setDocFile(const QString &df);

    TypeEntry *clone() const override;

#ifndef QT_NO_DEBUG_STREAM
    void formatDebug(QDebug &d) const override;
#endif

protected:
    explicit FunctionTypeEntry(FunctionTypeEntryPrivate *d);
};

#endif // FUNCTIONTYPEENTRY_H