aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/libsample/snakecasetest.h
blob: 757dd23b27155c8941f16339a580b4c842c84e4e (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
36
37
38
39
40
// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#ifndef SNAKECASETEST_H
#define SNAKECASETEST_H

#include "libsamplemacros.h"

LIBSAMPLE_API int SnakeCaseGlobalFunction();

class LIBSAMPLE_API SnakeCaseTest
{
public:
    SnakeCaseTest();
    virtual ~SnakeCaseTest();

    int testFunction1() const;
    int testFunctionDisabled() const;
    int testFunctionBoth() const;

    int callVirtualFunc() const;

    int testField = 42;
    int testFieldDisabled = 42;
    int testFieldBoth = 42;

protected:
    virtual int virtualFunc() const;
};

class LIBSAMPLE_API SnakeCaseDerivedTest : public SnakeCaseTest
{
public:
    SnakeCaseDerivedTest();

protected:
    int virtualFunc() const override;
};

#endif // SNAKECASETEST_H