Kstars

profileinfo.h
1 /*
2  SPDX-FileCopyrightText: 2012 Jasem Mutlaq <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include <QMap>
10 #include <QString>
11 #include <QJsonObject>
12 
13 class ProfileInfo
14 {
15  public:
16  ProfileInfo(int id, const QString &name);
17  ~ProfileInfo() = default;
18 
19  // Is connection local or remote
20  bool isLocal()
21  {
22  return host.isEmpty();
23  }
24  QJsonObject toJson() const;
25 
26  QString mount() const;
27  QString ccd() const;
28  QString guider() const;
29  QString focuser() const;
30  QString filter() const;
31  QString dome() const;
32  QString ao() const;
33  QString weather() const;
34  QString aux1() const;
35  QString aux2() const;
36  QString aux3() const;
37  QString aux4() const;
38  QString remoteDrivers() const;
39 
40  QString name;
41  QString host;
42  QString city;
43  QString province;
45  int guidertype { 0 };
46  int guiderport { 0 };
47  int primaryscope { 0 };
48  int guidescope { 0 };
49  int indihub { 0 };
50  QString remotedrivers;
51  QString guiderhost;
52  QByteArray scripts;
53  int id { 0 };
54  int port { -1 };
55  bool autoConnect { false };
56  bool portSelector {false};
57  int INDIWebManagerPort { -1 };
58  QMap<QString, QString> drivers;
59 };
KI18NLOCALEDATA_EXPORT KCountry country(const char *ianaId)
KIOCORE_EXPORT SimpleJob * mount(bool ro, const QByteArray &fstype, const QString &dev, const QString &point, JobFlags flags=DefaultFlags)
QFuture< void > filter(Sequence &sequence, KeepFunctor filterFunction)
ScriptableExtension * host() const
const char * name(StandardAction id)
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 12 2022 04:00:56 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.