umbrello: umbrello/codeimpwizard/codeimpthread.h Source File

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

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

codeimpthread.h
Go to the documentation of this file.
1/*
2 SPDX-FileCopyrightText: 2011 Andi Fischer <andi.fischer@hispeed.ch>
3
4 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
5*/
6#ifndef CODEIMPTHREAD_H
7#define CODEIMPTHREAD_H
8
9#include <QFileInfo>
10#include <QMutex>
11#include <QThread>
12#include <QWaitCondition>
13
14class ClassImport;
15
21 class CodeImpThread : public QObject
22{
23 Q_OBJECT
24public:
25 explicit CodeImpThread(QFileInfo& file, QObject* parent = 0);
26 virtual ~CodeImpThread();
27
28public slots:
29 virtual void run();
30
31 int emitAskQuestion(const QString& question);
32 void emitMessageToLog(const QString& file, const QString& text);
33
34signals:
35 void askQuestion(const QString& question, int& answer);
36 void messageToWiz(const QString& file, const QString& text);
37 void messageToLog(const QString& file, const QString& text);
38 void messageToApp(const QString& text);
39 void aborted();
40 void failed();
41 void finished(bool noError);
42
43private slots:
44 void questionAsked(const QString& question, int& answer);
45
46private:
47 QFileInfo& m_file;
48 //QWaitCondition m_waitCondition;
49 //QMutex m_mutex;
50};
51
52#endif
ClassImport
Definition: classimport.h:21
CodeImpThread
Definition: codeimpthread.h:22
CodeImpThread::messageToWiz
void messageToWiz(const QString &file, const QString &text)
CodeImpThread::emitMessageToLog
void emitMessageToLog(const QString &file, const QString &text)
Definition: codeimpthread.cpp:90
CodeImpThread::m_file
QFileInfo & m_file
Definition: codeimpthread.h:47
CodeImpThread::run
virtual void run()
Definition: codeimpthread.cpp:39
CodeImpThread::emitAskQuestion
int emitAskQuestion(const QString &question)
Definition: codeimpthread.cpp:76
CodeImpThread::aborted
void aborted()
CodeImpThread::finished
void finished(bool noError)
CodeImpThread::failed
void failed()
CodeImpThread::~CodeImpThread
virtual ~CodeImpThread()
Definition: codeimpthread.cpp:32
CodeImpThread::askQuestion
void askQuestion(const QString &question, int &answer)
CodeImpThread::questionAsked
void questionAsked(const QString &question, int &answer)
Definition: codeimpthread.cpp:104
CodeImpThread::messageToLog
void messageToLog(const QString &file, const QString &text)
CodeImpThread::messageToApp
void messageToApp(const QString &text)