KDStateMachineEditor API Documentation  1.2
qmlexporter.h
1 /*
2  This file is part of the KDAB State Machine Editor Library.
3 
4  SPDX-FileCopyrightText: 2014-2021 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
5  Author: Kevin Funk <kevin.funk@kdab.com>
6 
7  SPDX-License-Identifier: LGPL-2.1-only OR LicenseRef-KDAB-KDStateMachineEditor
8 
9  Licensees holding valid commercial KDAB State Machine Editor Library
10  licenses may use this file in accordance with the KDAB State Machine Editor
11  Library License Agreement provided with the Software.
12 
13  Contact info@kdab.com if any conditions of this licensing are not clear to you.
14 */
15 
16 #ifndef KDSME_EXPORT_QMLEXPORTER_H
17 #define KDSME_EXPORT_QMLEXPORTER_H
18 
19 #include "abstractexporter.h"
20 
21 QT_BEGIN_NAMESPACE
22 class QIODevice;
23 QT_END_NAMESPACE
24 
25 namespace KDSME {
26 
27 class StateMachine;
28 
29 class KDSME_CORE_EXPORT QmlExporter : public AbstractExporter
30 {
31 public:
32  explicit QmlExporter(QByteArray* array);
33  explicit QmlExporter(QIODevice* device);
34  virtual ~QmlExporter();
35 
36  int indent() const;
37  void setIndent(int indent);
38 
39  virtual bool exportMachine(StateMachine* machine) override;
40 
41 private:
42  struct Private;
44 };
45 
46 }
47 
48 #endif // QMLEXPORTER_H
QIODevice
KDSME::StateMachine
Definition: state.h:154
QScopedPointer< Private >
KDSME::AbstractExporter
Definition: abstractexporter.h:29
KDSME::QmlExporter
Definition: qmlexporter.h:30
QByteArray

Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
KDStateMachineEditor
Create Qt State Machine metacode using a graphical user interface
https://github.com/KDAB/KDStateMachineEditor