File indexing completed on 2024-05-05 04:34:54

0001 /* SPDX-FileCopyrightText: 2023 Noah Davis <noahadvs@gmail.com>
0002  * SPDX-License-Identifier: LGPL-2.0-or-later
0003  */
0004 
0005 #pragma once
0006 
0007 #include <QtGlobal>
0008 
0009 class PlasmaVersion
0010 {
0011 public:
0012     /**
0013      * Get the plasma version as an unsigned int.
0014      */
0015     static quint32 get();
0016 
0017     /**
0018      * Use this for plasama versions the same way you'd use QT_VERSION_CHECK()
0019      */
0020     static quint32 check(quint8 major, quint8 minor, quint8 patch);
0021 
0022 private:
0023     PlasmaVersion() = delete;
0024     ~PlasmaVersion() = delete;
0025     PlasmaVersion(const PlasmaVersion &) = delete;
0026     PlasmaVersion(PlasmaVersion &&) = delete;
0027     PlasmaVersion &operator=(const PlasmaVersion &) = delete;
0028     PlasmaVersion &operator=(PlasmaVersion &&) = delete;
0029 };