umbrello: umbrello/docgenerators/docbookgenerator.h Source File

umbrello 2.32.3 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

docbookgenerator.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3
4 SPDX-FileCopyrightText: 2006 Gael de Chalendar (aka Kleag) kleag@free.fr
5 SPDX-FileCopyrightText: 2006-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
6*/
7
8#ifndef DOCBOOKGENERATOR_H
9#define DOCBOOKGENERATOR_H
10
11#include <QtGlobal>
12
13#if QT_VERSION < 0x050000
14#include <kurl.h>
15#endif
16
17#include <QObject>
18#if QT_VERSION >= 0x050000
19#include <QUrl>
20#endif
21
22class UMLDoc;
23class DocbookGeneratorJob;
24
35 class DocbookGenerator : public QObject
36{
37 Q_OBJECT
38 public:
39
40 DocbookGenerator();
41 virtual ~DocbookGenerator();
42
43 bool generateDocbookForProject();
44#if QT_VERSION >= 0x050000
45 void generateDocbookForProjectInto(const QUrl& destDir);
46#else
47 void generateDocbookForProjectInto(const KUrl& destDir);
48#endif
49 static QString customXslFile();
50
51signals:
52 void finished(bool status);
53
54 private slots:
55
56 void slotDocbookGenerationFinished(const QString&);
57
58 void threadFinished();
59
60 private:
61
62 DocbookGeneratorJob* docbookGeneratorJob;
63
64 bool m_pStatus;
65 bool m_pThreadFinished;
66#if QT_VERSION >= 0x050000
67 QUrl m_destDir;
68#else
69 KUrl m_destDir;
70#endif
71 UMLDoc* umlDoc;
72};
73
74#endif // DOCBOOKGENERATOR_H
DocbookGeneratorJob
Generates DocBook from the Document.
Definition: docbookgeneratorjob.h:21
DocbookGenerator
Definition: docbookgenerator.h:36
DocbookGenerator::slotDocbookGenerationFinished
void slotDocbookGenerationFinished(const QString &)
Definition: docbookgenerator.cpp:111
DocbookGenerator::m_pStatus
bool m_pStatus
Definition: docbookgenerator.h:64
DocbookGenerator::m_destDir
KUrl m_destDir
Definition: docbookgenerator.h:69
DocbookGenerator::DocbookGenerator
DocbookGenerator()
Definition: docbookgenerator.cpp:35
DocbookGenerator::m_pThreadFinished
bool m_pThreadFinished
Definition: docbookgenerator.h:65
DocbookGenerator::generateDocbookForProjectInto
void generateDocbookForProjectInto(const KUrl &destDir)
Definition: docbookgenerator.cpp:88
DocbookGenerator::threadFinished
void threadFinished()
Definition: docbookgenerator.cpp:151
DocbookGenerator::generateDocbookForProject
bool generateDocbookForProject()
Definition: docbookgenerator.cpp:59
DocbookGenerator::umlDoc
UMLDoc * umlDoc
Definition: docbookgenerator.h:71
DocbookGenerator::docbookGeneratorJob
DocbookGeneratorJob * docbookGeneratorJob
Definition: docbookgenerator.h:62
DocbookGenerator::~DocbookGenerator
virtual ~DocbookGenerator()
Definition: docbookgenerator.cpp:46
DocbookGenerator::customXslFile
static QString customXslFile()
Definition: docbookgenerator.cpp:163
DocbookGenerator::finished
void finished(bool status)
UMLDoc
Definition: umldoc.h:70