mobile: add qmlprefs class

add class to cmake and pro
register class

Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
jan Iversen 2018-06-12 10:29:40 +02:00 committed by Dirk Hohndel
parent 54db1309a0
commit d0e9f62624
6 changed files with 55 additions and 0 deletions

View file

@ -0,0 +1,21 @@
// SPDX-License-Identifier: GPL-2.0
#include "qmlprefs.h"
QMLPrefs *QMLPrefs::m_instance = NULL;
QMLPrefs::QMLPrefs()
{
if (!m_instance)
m_instance = this;
}
QMLPrefs::~QMLPrefs()
{
m_instance = NULL;
}
QMLPrefs *QMLPrefs::instance()
{
return m_instance;
}