1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/xre/MozMeegoAppService.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,28 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* vim: set ts=2 et sw=2 tw=80: */ 1.6 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.9 + 1.10 +#ifndef MOZMEEGOAPPSERVICE_H 1.11 +#define MOZMEEGOAPPSERVICE_H 1.12 + 1.13 +#include <MApplicationService> 1.14 + 1.15 +/** 1.16 + * App service class, which prevents registration to d-bus 1.17 + * and allows multiple instances of application. This is 1.18 + * required for Mozillas remote service to work, because 1.19 + * it is initialized after MApplication. 1.20 + */ 1.21 +class MozMeegoAppService: public MApplicationService 1.22 +{ 1.23 + Q_OBJECT 1.24 +public: 1.25 + MozMeegoAppService(): MApplicationService(QString()) {} 1.26 +public Q_SLOTS: 1.27 + virtual QString registeredName() { return QString(); } 1.28 + virtual bool isRegistered() { return false; } 1.29 + virtual bool registerService() { return true; } 1.30 +}; 1.31 +#endif // MOZMEEGOAPPSERVICE_H