kdelibs/threadweaver/Examples/SMIV/SMIV.h
2014-11-13 01:04:59 +02:00

58 lines
1.2 KiB
C++

/* -*- C++ -*-
This file declares the SMIV application class.
$ Author: Mirko Boehm $
$ Copyright: (C) 2005, Mirko Boehm $
$ Contact: mirko@kde.org
http://www.kde.org
http://www.hackerbuero.org $
$ License: LGPL with the following explicit clarification:
This code may be linked against any version of the Qt toolkit
from Trolltech, Norway. $
$Id: SMIV.h 30 2005-08-16 16:16:04Z mirko $
*/
#ifndef SMIV_H
#define SMIV_H
#include <QtCore/QDate>
#include <QtCore/QList>
#include <QtGui/QWidget>
#include <ThreadWeaver.h>
#include "ui_SMIVBase.h"
#include "SMIVModel.h"
#include "SMIVItemDelegate.h"
#include "SMIVItem.h"
using namespace ThreadWeaver;
class SMIV : public QWidget
{
Q_OBJECT
public:
SMIV ( Weaver* weaver );
~SMIV ();
private:
SMIVModel model;
SMIVItemDelegate del;
Ui::SMIVBase ui;
Weaver* m_weaver;
int m_noOfJobs;
bool m_quit;
QTime m_startTime;
private Q_SLOTS:
void on_pbSelectFiles_clicked();
void on_pbCancel_clicked();
void on_pbSuspend_clicked();
void on_pbQuit_clicked();
void slotJobDone ( ThreadWeaver::Job* );
void slotJobsDone ();
void weaverSuspended ();
void slotThumbReady (SMIVItem*);
};
#endif // SMIV_H