Kstars

indihub.h
1 /*
2  SPDX-FileCopyrightText: 2020 Jasem Mutlaq <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include <QString>
10 
11 namespace INDIHub
12 {
13 enum
14 {
15  None,
16  Solo,
17  Share,
18  Robotic
19 };
20 
21 QString toString(uint8_t mode)
22 {
23  if (mode == Solo)
24  return "solo";
25  else if (mode == Share)
26  return "share";
27  else if (mode == Robotic)
28  return "robotic";
29  else
30  return "none";
31 }
32 }
char * toString(const T &value)
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 12 2022 04:00:54 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.