aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/modelinglib/qmt/model_ui/stereotypescontroller.h
blob: 107c69fd071ef33a50388112fa6d3cd7e8117506 (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
// Copyright (C) 2016 Jochen Becher
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0 WITH Qt-GPL-exception-1.0

#pragma once

#include <QObject>
#include "qmt/infrastructure/qmt_global.h"

#include <QList>
#include <QString>

namespace qmt {

class QMT_EXPORT StereotypesController : public QObject
{
    Q_OBJECT

public:
    explicit StereotypesController(QObject *parent = nullptr);

signals:
    void parseError(const QString &stereotypes);

public:
    bool isParsable(const QString &stereotypes);
    QString toString(const QList<QString> &stereotypes);
    QList<QString> fromString(const QString &stereotypes);
};

} // namespace qmt