-
Notifications
You must be signed in to change notification settings - Fork 1
/
profileinfo.h
63 lines (55 loc) · 1.62 KB
/
profileinfo.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/* Profile Info
Copyright (C) 2012 Jasem Mutlaq ([email protected])
This application is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
*/
#pragma once
#include <QMap>
#include <QString>
#include <QJsonObject>
class ProfileInfo
{
public:
ProfileInfo(int id, const QString &name);
~ProfileInfo() = default;
// Is connection local or remote
bool isLocal()
{
return host.isEmpty();
}
QJsonObject toJson() const;
QString mount() const;
QString ccd() const;
QString guider() const;
QString focuser() const;
QString filter() const;
QString dome() const;
QString ao() const;
QString weather() const;
QString aux1() const;
QString aux2() const;
QString aux3() const;
QString aux4() const;
QString remoteDrivers() const;
QString name;
QString host;
QString city;
QString province;
QString country;
int guidertype { 0 };
int guiderport { 0 };
int primaryscope { 0 };
int guidescope { 0 };
int indihub { 0 };
QString remotedrivers;
QString guiderhost;
int id { 0 };
int port { -1 };
bool autoConnect { false };
bool isStellarMate { false };
int INDIWebManagerPort { -1 };
// driver[role] = label
QMap<QString, QString> drivers;
};