summaryrefslogtreecommitdiffstats
path: root/src/qdoc/qdoc/src/qdoc/topic.h
blob: 1f9646864d6ae57219d48ab23fe12c8dd4b831c4 (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
// 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 TOPIC_H
#define TOPIC_H

QT_BEGIN_NAMESPACE

struct Topic
{
public:
    Topic() = default;
    Topic(QString &t, QString a) : m_topic(t), m_args(std::move(a)) { }
    ~Topic() = default;

    [[nodiscard]] bool isEmpty() const { return m_topic.isEmpty(); }
    void clear()
    {
        m_topic.clear();
        m_args.clear();
    }

    QString m_topic {};
    QString m_args {};
};
typedef QList<Topic> TopicList;

QT_END_NAMESPACE

#endif // TOPIC_H