MauiKit Controls

mauilinux.h
1/*
2 * Copyright 2018 Camilo Higuita <milo.h@aol.com>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Library General Public License as
6 * published by the Free Software Foundation; either version 2, or
7 * (at your option) any later version.
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 Library General Public
15 * License along with this program; if not, write to the
16 * Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 */
19
20#pragma once
21
22#include <QObject>
23#include <QQmlEngine>
24#include <QVariantList>
25
26#include "fmh.h"
27
28#include "abstractplatform.h"
29
30/**
31 * @brief The MAUIKDE class
32 */
34{
36QML_NAMED_ELEMENT(KDE)
37 QML_SINGLETON
38 QML_UNCREATABLE("Cannot be created Style")
39
40public:
41 static MAUIKDE *qmlAttachedProperties(QObject *object);
42 static MAUIKDE *instance()
43 {
44 static MAUIKDE kde;
45 return &kde;
46 }
47
48 MAUIKDE(const MAUIKDE &) = delete;
49 MAUIKDE &operator=(const MAUIKDE &) = delete;
50 MAUIKDE(MAUIKDE &&) = delete;
51 MAUIKDE &operator=(MAUIKDE &&) = delete;
52
53private:
54 MAUIKDE(QObject *parent = nullptr);
55
56public Q_SLOTS:
57 /**
58 * @brief setColorScheme
59 * @param schemeName
60 * @param bg
61 * @param fg
62 */
63 static void setColorScheme(const QString &schemeName);
64
65 void shareFiles(const QList<QUrl> &urls) override final;
66 void shareText(const QString &text) override final;
67 bool hasKeyboard() override final;
68 bool hasMouse() override final;
69
70 // AbstractPlatform interface
71public Q_SLOTS:
72 bool darkModeEnabled() override final;
73};
74
The AbstractPlatform class Defines abstract methods and properties that are common to be implemeted b...
The MAUIKDE class.
Definition mauilinux.h:34
static void setColorScheme(const QString &schemeName)
setColorScheme
Definition mauilinux.cpp:36
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:56:16 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.