1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/widget/qt/nsAppShell.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,37 @@ 1.4 +/* -*- Mode: c++; tab-width: 2; indent-tabs-mode: nil; -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#ifndef nsAppShell_h__ 1.10 +#define nsAppShell_h__ 1.11 + 1.12 +#include <qsocketnotifier.h> 1.13 +#include "nsBaseAppShell.h" 1.14 +#include "nsCOMPtr.h" 1.15 + 1.16 +/** 1.17 + * Native QT Application shell wrapper 1.18 + */ 1.19 + 1.20 +class nsAppShell : public QObject, 1.21 + public nsBaseAppShell 1.22 +{ 1.23 + Q_OBJECT 1.24 + 1.25 +public: 1.26 + nsAppShell() { }; 1.27 + 1.28 + nsresult Init(); 1.29 + 1.30 + virtual bool event (QEvent *e); 1.31 + 1.32 +protected: 1.33 + virtual void ScheduleNativeEventCallback(); 1.34 + virtual bool ProcessNextNativeEvent(bool mayWait); 1.35 + virtual ~nsAppShell(); 1.36 +}; 1.37 + 1.38 + 1.39 +#endif // nsAppShell_h__ 1.40 +