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;
28 
39 class DocbookGenerator : public QObject
40 {
41  Q_OBJECT
42  public:
43 
45  virtual ~DocbookGenerator();
46 
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 
67 
68  bool m_pStatus;
70 #if QT_VERSION >= 0x050000
71  QUrl m_destDir;
72 #else
73  KUrl m_destDir;
74 #endif
76 };
77 
78 #endif // DOCBOOKGENERATOR_H
Generates DocBook from the Document.
Definition: docbookgeneratorjob.h:26
Definition: docbookgenerator.h:40
void slotDocbookGenerationFinished(const QString &)
Definition: docbookgenerator.cpp:115
bool m_pStatus
Definition: docbookgenerator.h:68
KUrl m_destDir
Definition: docbookgenerator.h:73
DocbookGenerator()
Definition: docbookgenerator.cpp:39
bool m_pThreadFinished
Definition: docbookgenerator.h:69
void generateDocbookForProjectInto(const KUrl &destDir)
Definition: docbookgenerator.cpp:92
void threadFinished()
Definition: docbookgenerator.cpp:155
bool generateDocbookForProject()
Definition: docbookgenerator.cpp:63
UMLDoc * umlDoc
Definition: docbookgenerator.h:75
DocbookGeneratorJob * docbookGeneratorJob
Definition: docbookgenerator.h:66
virtual ~DocbookGenerator()
Definition: docbookgenerator.cpp:50
static QString customXslFile()
Definition: docbookgenerator.cpp:167
void finished(bool status)
Definition: umldoc.h:75