ThreadWeaver
Thread_p.h
Go to the documentation of this file.
00001 /* -*- C++ -*- 00002 00003 This file implements the Thread class. 00004 00005 Thread is not a part of the public interface of the ThreadWeaver library. 00006 00007 $ Author: Mirko Boehm $ 00008 $ Copyright: (C) 2004, 2005 Mirko Boehm $ 00009 $ Contact: mirko@kde.org 00010 http://www.kde.org 00011 http://www.hackerbuero.org $ 00012 00013 This library is free software; you can redistribute it and/or 00014 modify it under the terms of the GNU Library General Public 00015 License as published by the Free Software Foundation; either 00016 version 2 of the License, or (at your option) any later version. 00017 00018 This library is distributed in the hope that it will be useful, 00019 but WITHOUT ANY WARRANTY; without even the implied warranty of 00020 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00021 Library General Public License for more details. 00022 00023 You should have received a copy of the GNU Library General Public License 00024 along with this library; see the file COPYING.LIB. If not, write to 00025 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00026 Boston, MA 02110-1301, USA. 00027 00028 $Id: Thread.cpp 25 2005-08-14 12:41:38Z mirko $ 00029 */ 00030 00031 #ifndef THREADWEAVER_THREAD_P_H 00032 #define THREADWEAVER_THREAD_P_H 00033 00034 #include "Thread.h" 00035 00036 using namespace ThreadWeaver; 00037 00038 00039 // FIXME (0.7) it looks like we do not need this if the Thread object is 00040 // moved to its own thread (weaverimpl does that) 00041 class ThreadWeaver::ThreadRunHelper : public QObject 00042 { 00043 Q_OBJECT 00044 public: 00045 explicit ThreadRunHelper (); 00046 00047 Q_SIGNALS: // see Thread: 00048 00050 void started ( ThreadWeaver::Thread* ); 00052 void jobStarted ( ThreadWeaver::Thread*, ThreadWeaver::Job* ); 00054 void jobDone ( ThreadWeaver::Job* ); 00055 00056 private: 00057 Job* m_job; 00058 00059 public: 00060 void run ( WeaverImpl *parent, Thread* th ); 00061 00062 void requestAbort(); 00063 }; 00064 00065 #endif
KDE 4.6 API Reference