#include <QtGui/qapplication.h>
#ifndef QAPPLICATION_H
class QApplication: public QCoreApplication{
   /* Some contents are skipped to improve readability */
   public: enum Type{
      Tty = 0,
      GuiClient = 1,
      GuiServer = 2,
   };
   /* ... */
};
#endif // QAPPLICATION_H