• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

umbrello/umbrello

  • sources
  • kde-4.12
  • kdesdk
  • umbrello
  • umbrello
  • codeimpwizard
codeimpthread.h
Go to the documentation of this file.
1 /*
2  Copyright 2011 Andi Fischer <andi.fischer@hispeed.ch>
3 
4  This program is free software; you can redistribute it and/or
5  modify it under the terms of the GNU General Public License as
6  published by the Free Software Foundation; either version 2 of
7  the License or (at your option) version 3 or any later version
8  accepted by the membership of KDE e.V. (or its successor approved
9  by the membership of KDE e.V.), which shall act as a proxy
10  defined in Section 14 of version 3 of the license.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20 #ifndef CODEIMPTHREAD_H
21 #define CODEIMPTHREAD_H
22 
23 #include <QFileInfo>
24 #include <QMutex>
25 #include <QThread>
26 #include <QWaitCondition>
27 
28 class ClassImport;
29 
35 class CodeImpThread : public QObject
36 {
37  Q_OBJECT
38 public:
39  explicit CodeImpThread(QFileInfo file, QObject* parent = 0);
40  virtual ~CodeImpThread();
41 
42 public slots:
43  virtual void run();
44 
45  int emitAskQuestion(const QString& question);
46  void emitMessageToLog(const QString& file, const QString& text);
47 
48 signals:
49  void askQuestion(const QString& question, int& answer);
50  void messageToWiz(const QString& file, const QString& text);
51  void messageToLog(const QString& file, const QString& text);
52  void messageToApp(const QString& text);
53  void aborted();
54  void failed();
55  void finished(bool noError);
56 
57 private slots:
58  void questionAsked(const QString& question, int& answer);
59 
60 private:
61  QFileInfo m_file;
62  //QWaitCondition m_waitCondition;
63  //QMutex m_mutex;
64  ClassImport* m_importer;
65 };
66 
67 #endif
CodeImpThread::run
virtual void run()
Thread run method.
Definition: codeimpthread.cpp:51
CodeImpThread::messageToLog
void messageToLog(const QString &file, const QString &text)
CodeImpThread::messageToWiz
void messageToWiz(const QString &file, const QString &text)
CodeImpThread::messageToApp
void messageToApp(const QString &text)
QObject
CodeImpThread::aborted
void aborted()
CodeImpThread::emitAskQuestion
int emitAskQuestion(const QString &question)
Emit a signal to the main gui thread to show a question box.
Definition: codeimpthread.cpp:88
CodeImpThread
Thread class that does the code import work for one file.
Definition: codeimpthread.h:35
CodeImpThread::CodeImpThread
CodeImpThread(QFileInfo file, QObject *parent=0)
Constructor.
Definition: codeimpthread.cpp:33
CodeImpThread::failed
void failed()
CodeImpThread::finished
void finished(bool noError)
CodeImpThread::~CodeImpThread
virtual ~CodeImpThread()
Destructor.
Definition: codeimpthread.cpp:44
CodeImpThread::emitMessageToLog
void emitMessageToLog(const QString &file, const QString &text)
Emit a signal to the main gui thread to write a log text to the log widget.
Definition: codeimpthread.cpp:102
ClassImport
Interfaces classparser library to uml models Abstract base for programming language specific import c...
Definition: classimport.h:25
CodeImpThread::askQuestion
void askQuestion(const QString &question, int &answer)
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:05:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

umbrello/umbrello

Skip menu "umbrello/umbrello"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal