This file looks large and may slow your browser down if we attempt
to syntax highlight it, so we are showing it without any
pretty colors.
Highlight
it anyway.
| 1 |
/* |
| 2 |
<Formatting thread: header file> |
| 3 |
Copyright (C) <2011> <José Antonio Sánchez Reynaga> |
| 4 |
|
| 5 |
This library is free software; you can redistribute it and/or |
| 6 |
modify it under the terms of the GNU Lesser General Public |
| 7 |
License as published by the Free Software Foundation; either |
| 8 |
version 2.1 of the License, or (at your option) any later version. |
| 9 |
|
| 10 |
This library is distributed in the hope that it will be useful, |
| 11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 |
Lesser General Public License for more details. |
| 14 |
|
| 15 |
You should have received a copy of the GNU Lesser General Public |
| 16 |
License along with this library; if not, write to the Free Software |
| 17 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 |
*/ |
| 19 |
|
| 20 |
|
| 21 |
#ifndef THREADFORMAT_H |
| 22 |
#define THREADFORMAT_H |
| 23 |
|
| 24 |
#include <qthread.h> |
| 25 |
#include <QtCore> |
| 26 |
#include <QtGui> |
| 27 |
|
| 28 |
|
| 29 |
class ThreadFormat : public QThread |
| 30 |
{ |
| 31 |
|
| 32 |
public: |
| 33 |
explicit ThreadFormat(QObject* parent = 0); |
| 34 |
~ThreadFormat(); |
| 35 |
bool isOk(); |
| 36 |
|
| 37 |
void setFilesystem(QString fs); |
| 38 |
void setDirDev(QString dir); |
| 39 |
void setLabel(QString lb); |
| 40 |
protected: |
| 41 |
virtual void run(); |
| 42 |
|
| 43 |
private: |
| 44 |
bool ok; |
| 45 |
QString label; |
| 46 |
QString filesystem; |
| 47 |
QString dirDev; |
| 48 |
|
| 49 |
}; |
| 50 |
|
| 51 |
#endif // THREADFORMAT_H |