michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- michael@0: * vim: sw=4 ts=4 et : 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 NESTEDLOOPTIMER_H michael@0: #define NESTEDLOOPTIMER_H michael@0: michael@0: #include michael@0: michael@0: class QTimer; michael@0: michael@0: namespace mozilla { michael@0: namespace plugins { michael@0: michael@0: class PluginModuleChild; michael@0: michael@0: class NestedLoopTimer: public QObject michael@0: { michael@0: Q_OBJECT michael@0: public: michael@0: NestedLoopTimer(PluginModuleChild *pmc); michael@0: michael@0: virtual ~NestedLoopTimer(); michael@0: michael@0: public Q_SLOTS: michael@0: virtual void timeOut(); michael@0: virtual void processSomeEvents(); michael@0: michael@0: private: michael@0: PluginModuleChild *mModule; michael@0: QTimer *mQTimer; michael@0: }; michael@0: michael@0: } /* namespace plugins */ michael@0: } /* namespace mozilla */ michael@0: michael@0: #undef slots michael@0: michael@0: #endif