00001 /* 00002 * Copyright (c) 2011 MLBA. All rights reserved. 00003 * 00004 * @MLBA_OPEN_LICENSE_HEADER_START@ 00005 * 00006 * Licensed under the Apache License, Version 2.0 (the "License"); 00007 * you may not use this file except in compliance with the License. 00008 * You may obtain a copy of the License at 00009 * 00010 * http://www.apache.org/licenses/LICENSE-2.0 00011 * 00012 * Unless required by applicable law or agreed to in writing, software 00013 * distributed under the License is distributed on an "AS IS" BASIS, 00014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00015 * See the License for the specific language governing permissions and 00016 * limitations under the License. 00017 * 00018 * @MLBA_OPEN_LICENSE_HEADER_END@ 00019 */ 00020 00021 00022 00023 #ifndef QDISPATCH_COREAPPLICATION_H_ 00024 #define QDISPATCH_COREAPPLICATION_H_ 00025 00026 #include "qdispatchapplication.h" 00027 #include "qdispatchglobal.h" 00028 #include "../xdispatch/dispatch.h" 00029 #include <qcoreapplication.h> 00030 00031 QT_BEGIN_HEADER 00032 QT_BEGIN_NAMESPACE 00033 00034 QT_MODULE(Dispatch) 00035 00036 00043 #ifdef Q_OS_MAC 00044 class Q_DISPATCH_EXPORT QDispatchCoreApplication : public QDispatchApplication { 00045 00046 Q_OBJECT 00047 00048 public: 00049 QDispatchCoreApplication(int& argc, char** argv); 00050 00051 }; 00052 #else 00053 class Q_DISPATCH_EXPORT QDispatchCoreApplication : public QCoreApplication { 00054 00055 Q_OBJECT 00056 00057 public: 00058 QDispatchCoreApplication(int& argc, char** argv); 00059 ~QDispatchCoreApplication(); 00060 00061 }; 00062 #endif 00063 00064 QT_END_NAMESPACE 00065 QT_END_HEADER 00066 00067 #endif /* QDISPATCH_EVENTDISPATCHER_H_ */