umbrello: umbrello/docgenerators/docbookgenerator.h Source File

umbrello 2.32.1 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 * This program is free software; you can redistribute it and/or modify *
3 * it under the terms of the GNU General Public License as published by *
4 * the Free Software Foundation; either version 2 of the License, or *
5 * (at your option) any later version. *
6 * *
7 * copyright (C) 2006 Gael de Chalendar (aka Kleag) kleag@free.fr *
8 * copyright (C) 2006-2020 *
9 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
10 ***************************************************************************/
11
12 #ifndef DOCBOOKGENERATOR_H
13 #define DOCBOOKGENERATOR_H
14
15 #include <QtGlobal>
16
17 #if QT_VERSION < 0x050000
18 #include <kurl.h>
19 #endif
20
21 #include <QObject>
22 #if QT_VERSION >= 0x050000
23 #include <QUrl>
24 #endif
25
26 class UMLDoc;
27 class DocbookGeneratorJob;
28
39 class DocbookGenerator : public QObject
40 {
41 Q_OBJECT
42 public:
43
44 DocbookGenerator();
45 virtual ~DocbookGenerator();
46
47 bool generateDocbookForProject();
48 #if QT_VERSION >= 0x050000
49 void generateDocbookForProjectInto(const QUrl& destDir);
50 #else
51 void generateDocbookForProjectInto(const KUrl& destDir);
52 #endif
53 static QString customXslFile();
54
55 signals:
56 void finished(bool status);
57
58 private slots:
59
60 void slotDocbookGenerationFinished(const QString&);
61
62 void threadFinished();
63
64 private:
65
66 DocbookGeneratorJob* docbookGeneratorJob;
67
68 bool m_pStatus;
69 bool m_pThreadFinished;
70 #if QT_VERSION >= 0x050000
71 QUrl m_destDir;
72 #else
73 KUrl m_destDir;
74 #endif
75 UMLDoc* umlDoc;
76 };
77
78 #endif // DOCBOOKGENERATOR_H
DocbookGeneratorJob
Generates DocBook from the Document.
Definition: docbookgeneratorjob.h:26
DocbookGenerator
Definition: docbookgenerator.h:40
DocbookGenerator::slotDocbookGenerationFinished
void slotDocbookGenerationFinished(const QString &)
Definition: docbookgenerator.cpp:115
DocbookGenerator::m_pStatus
bool m_pStatus
Definition: docbookgenerator.h:68
DocbookGenerator::m_destDir
KUrl m_destDir
Definition: docbookgenerator.h:73
DocbookGenerator::DocbookGenerator
DocbookGenerator()
Definition: docbookgenerator.cpp:39
DocbookGenerator::m_pThreadFinished
bool m_pThreadFinished
Definition: docbookgenerator.h:69
DocbookGenerator::generateDocbookForProjectInto
void generateDocbookForProjectInto(const KUrl &destDir)
Definition: docbookgenerator.cpp:92
DocbookGenerator::threadFinished
void threadFinished()
Definition: docbookgenerator.cpp:155
DocbookGenerator::generateDocbookForProject
bool generateDocbookForProject()
Definition: docbookgenerator.cpp:63
DocbookGenerator::umlDoc
UMLDoc * umlDoc
Definition: docbookgenerator.h:75
DocbookGenerator::docbookGeneratorJob
DocbookGeneratorJob * docbookGeneratorJob
Definition: docbookgenerator.h:66
DocbookGenerator::~DocbookGenerator
virtual ~DocbookGenerator()
Definition: docbookgenerator.cpp:50
DocbookGenerator::customXslFile
static QString customXslFile()
Definition: docbookgenerator.cpp:167
DocbookGenerator::finished
void finished(bool status)
UMLDoc
Definition: umldoc.h:75