Marble

MarbleGlobal.cpp
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2009 Torsten Rahn <[email protected]>
4 //
5 
6 #include "MarbleGlobal.h"
7 #include "MarbleGlobal_p.h"
8 
9 
10 namespace Marble
11 {
12 
13 MarbleGlobalPrivate::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 
23 MarbleGlobalPrivate::~MarbleGlobalPrivate()
24 {
25 }
26 
27 MarbleGlobal::MarbleGlobal()
28  : d ( new MarbleGlobalPrivate )
29 {
30 }
31 
32 MarbleGlobal::~MarbleGlobal()
33 {
34  delete d;
35 }
36 
37 MarbleGlobal * MarbleGlobal::getInstance()
38 {
39  static MarbleGlobal instance;
40  return &instance;
41 }
42 
43 MarbleLocale * MarbleGlobal::locale() const
44 {
45  return &d->m_locale;
46 }
47 
48 MarbleGlobal::Profiles MarbleGlobal::profiles() const {
49  return d->m_profiles;
50 }
51 
52 void MarbleGlobal::setProfiles( MarbleGlobal::Profiles profiles ) {
53  d->m_profiles = profiles;
54 }
55 
56 MarbleGlobal::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-2023 The KDE developers.
Generated on Mon Oct 2 2023 03:52:09 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.