| 1 | // SPDX-FileCopyrightText: 2021 Alexander Lohnau <alexander.lohnau@gmx.de> |
| 2 | // SPDX-License-Identifier: LGPL-2.0-or-later |
| 3 | |
| 4 | #include <QStringList> |
| 5 | |
| 6 | #include "kcoreaddons_export.h" |
| 7 | |
| 8 | /*! |
| 9 | * \namespace KRuntimePlatform |
| 10 | * \inmodule KCoreAddons |
| 11 | * \brief Utility functions around the runtime platform. |
| 12 | */ |
| 13 | namespace KRuntimePlatform |
| 14 | { |
| 15 | /*! |
| 16 | * Returns the runtime platform, e.g.\ "desktop" or "tablet, touch". The first entry/ies in the list relate to the platform |
| 17 | * formfactor and the last is the input method specialization. |
| 18 | * |
| 19 | * If the string is empty, there is no specified runtime platform and a traditional desktop environment may be assumed. |
| 20 | * |
| 21 | * The value is read using the PLASMA_PLATFORM env variable |
| 22 | * \since 5.97 |
| 23 | */ |
| 24 | KCOREADDONS_EXPORT QStringList runtimePlatform(); |
| 25 | } |
| 26 | |