Marble

MarbleGlobal.cpp
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2009 Torsten Rahn <tackat@kde.org>
4//
5
6#include "MarbleGlobal.h"
7#include "MarbleGlobal_p.h"
8
9
10namespace Marble
11{
12
13MarbleGlobalPrivate::MarbleGlobalPrivate()
14 : m_profiles(MarbleGlobal::Default)
15{
16#ifdef Q_OS_ANDROID
17 m_profiles |= MarbleGlobal::SmallScreen;
18 m_profiles |= MarbleGlobal::HighResolution;
19#endif
20
21}
22
23MarbleGlobalPrivate::~MarbleGlobalPrivate()
24{
25}
26
27MarbleGlobal::MarbleGlobal()
28 : d ( new MarbleGlobalPrivate )
29{
30}
31
32MarbleGlobal::~MarbleGlobal()
33{
34 delete d;
35}
36
37MarbleGlobal * MarbleGlobal::getInstance()
38{
39 static MarbleGlobal instance;
40 return &instance;
41}
42
43MarbleLocale * MarbleGlobal::locale() const
44{
45 return &d->m_locale;
46}
47
48MarbleGlobal::Profiles MarbleGlobal::profiles() const {
49 return d->m_profiles;
50}
51
52void MarbleGlobal::setProfiles( MarbleGlobal::Profiles profiles ) {
53 d->m_profiles = profiles;
54}
55
56MarbleGlobal::Profiles MarbleGlobal::detectProfiles()
57{
58 return getInstance()->profiles();
59}
60
61}
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jun 7 2024 12:03:13 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.