3
* Copyright 2013 Canonical Ltd.
4
* Author: Manuel de la Pena <manuel.delapena@canonical.com>
5
* Author: Diego Sarmentero <diego.sarmentero@canonical.com>
7
* This program is free software: you can redistribute it and/or modify it
8
* under the terms of the GNU General Public License version 3, as published
9
* by the Free Software Foundation.
11
* This program is distributed in the hope that it will be useful, but
12
* WITHOUT ANY WARRANTY; without even the implied warranties of
13
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
14
* PURPOSE. See the GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License along
17
* with this program. If not, see <http://www.gnu.org/licenses/>.
19
* In addition, as a special exception, the copyright holders give
20
* permission to link the code of portions of this program with the
21
* OpenSSL library under certain conditions as described in each
22
* individual source file, and distribute linked combinations
24
* You must obey the GNU General Public License in all respects
25
* for all of the code used other than OpenSSL. If you modify
26
* file(s) with this exception, you may extend this exception to your
27
* version of the file(s), but you are not obligated to do so. If you
28
* do not wish to do so, delete this exception statement from your
29
* version. If you delete this exception statement from all source
30
* files in the program, then also delete it here.
33
#include "dbus_helper.h"
38
// required for the init
39
int DBusHelper::DBUS_STRING_MAP_ID = 0;
40
int DBusHelper::DBUS_OBJECTPATH_MAP_ID = 1;
42
DBusHelper::_init DBusHelper::_initializer;
44
DBusHelper::DBusHelper(QObject *parent) :
50
QVariant DBusHelper::getVariant(DBusStringHash hash)
52
return QVariant(DBUS_STRING_MAP_ID, &hash);