Instrument Neutral Distributed Interface INDI 2.2.5
baseclientqt.h
Go to the documentation of this file.
1/*******************************************************************************
2 Copyright(c) 2016 Jasem Mutlaq. All rights reserved.
3
4 INDI Qt Client
5
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License version 2 as published by the Free Software Foundation.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
19*******************************************************************************/
20
21#pragma once
22
23#include "abstractbaseclient.h"
24
25#include <QObject>
26
43namespace INDI
44{
45class BaseClientQtPrivate;
46}
47class INDI::BaseClientQt : public QObject, public INDI::AbstractBaseClient
48{
49 Q_OBJECT
50 DECLARE_PRIVATE_D(d_ptr_indi, BaseClientQt)
51
52 public:
53 BaseClientQt(QObject *parent = Q_NULLPTR);
54 virtual ~BaseClientQt();
55
56 public:
61 bool connectServer() override;
62
67 bool disconnectServer(int exit_code = 0) override;
68
69 private:
70 void enableDirectBlobAccess(const char * dev = nullptr, const char * prop = nullptr) = delete; // not implemented
71};
std::unique_ptr< AbstractBaseClientPrivate > d_ptr_indi
Class to provide basic client functionality based on Qt5 toolkit and is therefore suitable for cross-...
bool disconnectServer(int exit_code=0) override
Disconnect from INDI server. Any devices previously created will be deleted and memory cleared.
bool connectServer() override
Connect to INDI server.
Namespace to encapsulate INDI client, drivers, and mediator classes.