MauiKit Controls

abstractplatform.h
1#pragma once
2#include <QList>
3#include <QObject>
4#include <QString>
5#include <QUrl>
6
7#include "mauikit_export.h"
8
9/**
10 * @brief The AbstractPlatform class
11 * Defines abstract methods and properties that are common to be implemeted by each different platform Maui supports.
12 * For detailed information check each platform own's implementation
13 */
14class MAUIKIT_EXPORT AbstractPlatform : public QObject
15{
16 Q_OBJECT
17 Q_PROPERTY(bool darkModeEnabled READ darkModeEnabled NOTIFY darkModeEnabledChanged)
18
19public:
20 explicit AbstractPlatform(QObject *parent = nullptr);
21
22public Q_SLOTS:
23
24 /**
25 * @brief shareFiles
26 * @param urls
27 */
28 virtual void shareFiles(const QList<QUrl> &urls) = 0;
29
30 /**
31 * @brief shareText
32 * @param urls
33 */
34 virtual void shareText(const QString &urls) = 0;
35
36 /**
37 * @brief hasKeyboard
38 * @return
39 */
40 virtual bool hasKeyboard() = 0;
41
42 /**
43 * @brief hasMouse
44 * @return
45 */
46 virtual bool hasMouse() = 0;
47
48 virtual void notify(const QString &title, const QString &message, const QString &icon, const QString &imageUrl);
49
50 virtual bool darkModeEnabled() = 0;
51
53 void hasKeyboardChanged();
54 void hasMouseChanged();
55 void shareFilesRequest(QStringList urls);
56 void darkModeEnabledChanged();
57};
The AbstractPlatform class Defines abstract methods and properties that are common to be implemeted b...
virtual bool hasMouse()=0
hasMouse
virtual void shareText(const QString &urls)=0
shareText
virtual void shareFiles(const QList< QUrl > &urls)=0
shareFiles
virtual bool hasKeyboard()=0
hasKeyboard
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:46:39 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.