File indexing completed on 2024-12-22 04:31:07

0001 /*
0002  *   Copyright 2018 Camilo Higuita <milo.h@aol.com>
0003  *
0004  *   This program is free software; you can redistribute it and/or modify
0005  *   it under the terms of the GNU Library General Public License as
0006  *   published by the Free Software Foundation; either version 2, or
0007  *   (at your option) any later version.
0008  *
0009  *   This program is distributed in the hope that it will be useful,
0010  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
0011  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0012  *   GNU General Public License for more details
0013  *
0014  *   You should have received a copy of the GNU Library General Public
0015  *   License along with this program; if not, write to the
0016  *   Free Software Foundation, Inc.,
0017  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
0018  */
0019 
0020 #include "mauilinux.h"
0021 
0022 #include <QDebug>
0023 
0024 MAUIKDE *MAUIKDE::qmlAttachedProperties(QObject *object)
0025 {
0026     Q_UNUSED(object)
0027     return MAUIKDE::instance();
0028 }
0029 
0030 MAUIKDE::MAUIKDE(QObject *parent)
0031     : AbstractPlatform(parent)
0032 {
0033 }
0034 
0035 
0036 void MAUIKDE::setColorScheme(const QString &schemeName)
0037 {
0038    Q_UNUSED(schemeName)
0039 }
0040 
0041 bool MAUIKDE::hasKeyboard()
0042 {
0043     return true;
0044 }
0045 
0046 bool MAUIKDE::hasMouse()
0047 {
0048     return true;
0049 }
0050 
0051 void MAUIKDE::shareFiles(const QList<QUrl> &urls)
0052 {
0053     Q_EMIT this->shareFilesRequest(QUrl::toStringList(urls));
0054 }
0055 
0056 void MAUIKDE::shareText(const QString &)
0057 {
0058 }
0059 
0060 
0061 bool MAUIKDE::darkModeEnabled()
0062 {
0063     return false;
0064 }