michael@0: /* -*- Mode: c++; tab-width: 2; indent-tabs-mode: nil; -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsAppShell_h__ michael@0: #define nsAppShell_h__ michael@0: michael@0: #include michael@0: #include "nsBaseAppShell.h" michael@0: #include "nsCOMPtr.h" michael@0: michael@0: /** michael@0: * Native QT Application shell wrapper michael@0: */ michael@0: michael@0: class nsAppShell : public QObject, michael@0: public nsBaseAppShell michael@0: { michael@0: Q_OBJECT michael@0: michael@0: public: michael@0: nsAppShell() { }; michael@0: michael@0: nsresult Init(); michael@0: michael@0: virtual bool event (QEvent *e); michael@0: michael@0: protected: michael@0: virtual void ScheduleNativeEventCallback(); michael@0: virtual bool ProcessNextNativeEvent(bool mayWait); michael@0: virtual ~nsAppShell(); michael@0: }; michael@0: michael@0: michael@0: #endif // nsAppShell_h__ michael@0: