00001 /*************************************************************************** 00002 * Copyright (C) 2011 by Benjamin Hadorn (b_hadorn@bluewin.ch) * 00003 *************************************************************************** 00004 * Projekt : Zeus Base Library 00005 * Module : QTMainThreadMessageQueue 00006 * Package : System 00007 * Author : Benjamin Hadorn 00008 * Datum : $Date: 24.02.11 16:56 $ 00009 * Ablage : $File$ 00010 * System : Cell Computing Model 00011 *************************************************************************** 00012 * Licence: * 00013 * This library is free software; you can redistribute it and/or modify * 00014 * it under the terms of the GNU Lesser General Public License as * 00015 * published by the Free Software Foundation; either version * 00016 * 2.1 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 * 00021 * GNU Lesser General Public License for more details. * 00022 * * 00023 * You should have received a copy of the GNU Lesser General Public * 00024 * License along with this library; if not, write to the Free Software * 00025 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA * 00026 ***************************************************************************/ 00027 00028 /*************************************************************************** 00029 Changes : 00030 $Log: /Development_F/StuderWIN/dev/CNCControl/SiemensNCUDriver/SiemensNCUDriver/zeusbase/System/Platforms/QTMainThreadMessageQueue.h $ 00031 ** 00032 ** 1 24.02.11 16:56 Bha 00033 ** 00034 ** 1 23.02.11 7:34 Bha 00035 ***************************************************************************/ 00036 //--------------------------------------------------------------------------- 00037 00038 #ifndef QTMainThreadMessageQueueH 00039 #define QTMainThreadMessageQueueH 00040 00041 #include <zeusbase/System/ThreadMessageQueue.h> 00042 #include <QtCore/QObject> 00043 00044 USING_NAMESPACE_Zeus 00045 00046 /***************************************************************************/ 00050 /***************************************************************************/ 00051 class TQTMainThreadMessageQueue : public QObject, public TThreadMessageQueue 00052 { 00053 Q_OBJECT 00054 00055 public: 00056 TQTMainThreadMessageQueue(); 00057 00058 protected: 00059 /************************************************************************/ 00062 /************************************************************************/ 00063 inline virtual ~TQTMainThreadMessageQueue() 00064 {} 00065 00066 virtual void onItemPosted(ISynchronizeObject& rObject, bool bWaitForCompletion); 00067 00068 signals: 00069 void sendItemPosted(); 00070 00071 private: 00072 00073 }; 00074 00075 #endif