defuze.me  Client
thread.hpp
00001 /**************************************************************************
00002 ** defuze.me Epitech Innovative Project
00003 **
00004 ** Copyright 2010-2011
00005 **   Athena Calmettes - Jocelyn De La Rosa - Francois Gaillard
00006 **   Adrien Jarthon - Alexandre Moore - Luc Peres - Arnaud Sellier
00007 **
00008 ** All rights reserved.
00009 **************************************************************************/
00010 
00011 #ifndef THREAD_HPP
00012 #define THREAD_HPP
00013 
00014 #include <QThread>
00015 #include "exception.hpp"
00016 
00022 class Thread : public QThread
00023 {
00024     Q_OBJECT
00025 public:
00026     explicit Thread(QObject *parent = 0);
00027     void        forward(const Exception &exc);
00028 
00029 signals:
00030     void        forwardSig(const Exception &exc);
00031 
00032 public slots:
00033 
00034 private slots:
00035     void        raise(const Exception& exc);
00036 };
00037 
00038 #endif // THREAD_HPP