File indexing completed on 2024-04-14 05:24:49

0001 /*
0002     SPDX-FileCopyrightText: 2020 Michail Vourlakos <mvourlakos@gmail.com>
0003     SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 
0006 #ifndef LATTEAPPLOCALTYPES_H
0007 #define LATTEAPPLOCALTYPES_H
0008 
0009 // Qt
0010 #include <QObject>
0011 
0012 //! These are LatteApp::Types that will be used ONLY from Latte App c++ implementation.
0013 //! Such types are irrelevant and not used from plasma applets.
0014 
0015 namespace Latte {
0016 namespace ImportExport {
0017 Q_NAMESPACE
0018 
0019 enum State
0020 {
0021     FailedState = 0,
0022     UpdatedState = 2,
0023     InstalledState = 4
0024 };
0025 Q_ENUM_NS(State);
0026 
0027 }
0028 }
0029 
0030 namespace Latte {
0031 namespace MemoryUsage {
0032 
0033 enum LayoutsMemory
0034 {
0035     Current = -1, /*current layouts memory usage*/
0036     SingleLayout = 0,  /* a single Layout is loaded in each time */
0037     MultipleLayouts  /* multiple layouts are loaded on runtime,based on Activities and one central layout for the rest unassigned Activities */
0038 };
0039 
0040 }
0041 }
0042 
0043 namespace Latte {
0044 namespace MultipleLayouts {
0045 
0046 enum Status
0047 {
0048     Uninitialized = -1,
0049     Paused,
0050     Running
0051 };
0052 
0053 }
0054 }
0055 
0056 //! These are LatteApp::Types that will be used from Latte App c++ implementation AND
0057 //! Latte containment qml. Such types are irrelevant and not used from plasma applets.
0058 
0059 namespace Latte {
0060 namespace Settings {
0061 Q_NAMESPACE
0062 
0063 enum MouseSensitivity
0064 {
0065     LowMouseSensitivity = 0,
0066     MediumMouseSensitivity,
0067     HighMouseSensitivity
0068 };
0069 Q_ENUM_NS(MouseSensitivity);
0070 
0071 }
0072 }
0073 
0074 #endif