on bb34e07 help sign in
45 lines 1.2 kB history raw
1/*
2 * Copyright (C) 2019 UBports Foundation.
3 * Author(s): Marius Gripsgard <marius@ubports.com>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; version 3.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
18#include "xdgwatcher.h"
20XdgWatcher* XdgWatcher::s_xinstance = nullptr;
22XdgWatcher::XdgWatcher(QObject* parent)
23 : QObject(parent)
25 s_xinstance = this;
28XdgWatcher* XdgWatcher::instance()
30 return s_xinstance;
33void XdgWatcher::addMockApp(const QString &appId)
35 Q_EMIT appAdded(appId);
38void XdgWatcher::removeMockApp(const QString &appId)
40 Q_EMIT appRemoved(appId);
43const QString XdgWatcher::stripAppIdVersion(const QString rawAppID) {
44 return rawAppID;