text: /*
  * qdispatchcoreapplication.h
  * 
  * Copyright (c) 2011-2014 MLBA-Team
  * All rights reserved.
  * 
  * @LICENSE_HEADER_START@
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  * 
  *     http://www.apache.org/licenses/LICENSE-2.0
  * 
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  * @LICENSE_HEADER_END@
  */
  
  
  #ifndef QDISPATCH_COREAPPLICATION_H_
  #define QDISPATCH_COREAPPLICATION_H_
  
  #include "qdispatchapplication.h"
  #include "qdispatchglobal.h"
  
  #include <QCoreApplication>
  
  /**
   * @addtogroup qtdispatch
   * @{
   */
  
  QT_BEGIN_HEADER
  QT_BEGIN_NAMESPACE QT_MODULE(
      Dispatch
  )
  
  /**
   @class QDispatchCoreApplication
   Provides a QCoreApplication implementation internally executing
   the dispatch main queue. When used you can dispatch work onto the
   main thread by dispatching to the main_queue obtained by calling
   QDispatch::mainQueue().
   */
  #ifdef Q_OS_MAC
  class Q_DISPATCH_EXPORT QDispatchCoreApplication
      : public QDispatchApplication
  {
      Q_OBJECT
  
  
  public:
      QDispatchCoreApplication (
          int &argc,
          char **argv
      );
  
  
  private:
      Q_DISABLE_COPY( QDispatchCoreApplication )
  };
  
  
  #else // ifdef Q_OS_MAC
  class Q_DISPATCH_EXPORT QDispatchCoreApplication
      : public QCoreApplication
  {
      Q_OBJECT
  
  
  public:
      QDispatchCoreApplication (
          int &argc,
          char **argv
      );
      ~QDispatchCoreApplication ();
  
  
  private:
      Q_DISABLE_COPY( QDispatchCoreApplication )
  };
  
  
  #endif // ifdef Q_OS_MAC
  
  QT_END_NAMESPACE
      QT_END_HEADER
  
  /** @} */
  
  #endif /* QDISPATCH_EVENTDISPATCHER_H_ */