michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* vim: set ts=2 et sw=2 tw=80: */ 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 MOZMEEGOAPPSERVICE_H michael@0: #define MOZMEEGOAPPSERVICE_H michael@0: michael@0: #include michael@0: michael@0: /** michael@0: * App service class, which prevents registration to d-bus michael@0: * and allows multiple instances of application. This is michael@0: * required for Mozillas remote service to work, because michael@0: * it is initialized after MApplication. michael@0: */ michael@0: class MozMeegoAppService: public MApplicationService michael@0: { michael@0: Q_OBJECT michael@0: public: michael@0: MozMeegoAppService(): MApplicationService(QString()) {} michael@0: public Q_SLOTS: michael@0: virtual QString registeredName() { return QString(); } michael@0: virtual bool isRegistered() { return false; } michael@0: virtual bool registerService() { return true; } michael@0: }; michael@0: #endif // MOZMEEGOAPPSERVICE_H