summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qeventdispatcher_pepper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/kernel/qeventdispatcher_pepper.cpp')
-rw-r--r--src/gui/kernel/qeventdispatcher_pepper.cpp137
1 files changed, 137 insertions, 0 deletions
diff --git a/src/gui/kernel/qeventdispatcher_pepper.cpp b/src/gui/kernel/qeventdispatcher_pepper.cpp
new file mode 100644
index 0000000000..cd68295d84
--- /dev/null
+++ b/src/gui/kernel/qeventdispatcher_pepper.cpp
@@ -0,0 +1,137 @@
+/****************************************************************************
+**
+** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of the QtGui module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** No Commercial Usage
+** This file contains pre-release code and may not be distributed.
+** You may use this file in accordance with the terms and conditions
+** contained in the either Technology Preview License Agreement or the
+** Beta Release License Agreement.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Nokia gives you certain
+** additional rights. These rights are described in the Nokia Qt LGPL
+** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
+** package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3.0 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU General Public License version 3.0 requirements will be
+** met: http://www.gnu.org/copyleft/gpl.html.
+**
+** If you are unsure which license is appropriate for your use, please
+** contact the sales department at http://qt.nokia.com/contact.
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#include "qeventdispatcher_pepper_p.h"
+
+#include "qplatformdefs.h"
+#include "qapplication.h"
+#include "qwaitcondition.h"
+#include "qevent.h"
+#include "qmutex.h"
+#include "qobject.h"
+#include <errno.h>
+#include <stdio.h>
+
+#include <private/qapplication_p.h>
+#include <time.h>
+
+#include <nacl/nacl_npapi.h>
+#include <nacl/npapi_extensions.h>
+#include <nacl/npruntime.h>
+#include <nacl/npupp.h>
+
+
+QT_BEGIN_NAMESPACE
+
+QT_USE_NAMESPACE
+
+class QEventDispatcherPepperPrivate : public QEventDispatcherUNIXPrivate
+{
+ Q_DECLARE_PUBLIC(QEventDispatcherPepper)
+public:
+ inline QEventDispatcherPepperPrivate()
+ { }
+
+};
+
+bool QEventDispatcherPepper::hasPepperSupport()
+{
+ bool hasSupport = false;
+ fprintf(stderr, "hasPepperSupport %b\n", hasSupport);
+ return hasSupport;
+}
+
+QEventDispatcherPepper::QEventDispatcherPepper(QObject *parent)
+ : QEventDispatcherUNIX(*new QEventDispatcherPepperPrivate, parent)
+{ }
+
+QEventDispatcherPepper::~QEventDispatcherPepper()
+{ }
+
+
+bool QEventDispatcherPepper::processEvents(QEventLoop::ProcessEventsFlags flags)
+{
+}
+
+
+bool QEventDispatcherPepper::hasPendingEvents()
+{
+ extern uint qGlobalPostedEventsCount(); // from qapplication.cpp
+ return qGlobalPostedEventsCount();
+}
+
+void QEventDispatcherPepper::registerSocketNotifier(QSocketNotifier *notifier)
+{
+
+}
+
+void QEventDispatcherPepper::unregisterSocketNotifier(QSocketNotifier *notifier)
+{
+
+}
+
+void QEventDispatcherPepper::startingUp()
+{
+
+}
+
+void QEventDispatcherPepper::closingDown()
+{
+
+}
+
+void QEventDispatcherPepper::wakeUp()
+{
+
+}
+
+void QEventDispatcherPepper::interrupt()
+{
+
+}
+
+void QEventDispatcherPepper::flush()
+{
+ if(qApp)
+ qApp->sendPostedEvents();
+}
+
+QT_END_NAMESPACE