defuze.me
Client
|
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 #include "thread.hpp" 00012 00013 Thread::Thread(QObject *parent) : 00014 QThread(parent) 00015 { 00016 qRegisterMetaType<Exception>("Exception"); 00017 connect(this, SIGNAL(forwardSig(const Exception &)), SLOT(raise(const Exception &))); 00018 } 00019 00020 void Thread::forward(const Exception &exc) 00021 { 00022 emit forwardSig(exc); 00023 } 00024 00025 void Thread::raise(const Exception& exc) 00026 { 00027 throw exc; 00028 }