File indexing completed on 2024-04-14 03:42:13

0001 /*
0002     SPDX-FileCopyrightText: 2020 Jasem Mutlaq <mutlaqja@ikarustech.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <QString>
0010 
0011 namespace INDIHub
0012 {
0013 enum
0014 {
0015     None,
0016     Solo,
0017     Share,
0018     Robotic
0019 };
0020 
0021 QString toString(uint8_t mode)
0022 {
0023     if (mode == Solo)
0024         return "solo";
0025     else if (mode == Share)
0026         return "share";
0027     else if (mode == Robotic)
0028         return "robotic";
0029     else
0030         return "none";
0031 }
0032 }