Instrument Neutral Distributed Interface INDI 2.2.5
qhycfw1.h
Go to the documentation of this file.
1/*******************************************************************************
2 Copyright(c) 2017 Jasem Mutlaq. All rights reserved.
3
4 Tru Technology Filter Wheel
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 "indifilterwheel.h"
24
26{
27 public:
28 QHYCFW1();
29 virtual void ISGetProperties(const char *dev) override;
30 bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override;
31
32 protected:
33 const char *getDefaultName() override;
34 virtual bool initProperties() override;
35
36 virtual bool saveConfigItems(FILE *fp) override;
37
38 virtual bool Handshake() override
39 {
40 return true;
41 }
42 virtual bool SelectFilter(int) override;
43
44 private:
45 INumber MaxFilterN[1];
46 INumberVectorProperty MaxFilterNP;
47};
virtual bool SelectFilter(int) override
Select a new filter position.
Definition qhycfw1.cpp:96
virtual bool Handshake() override
perform handshake with device to check communication
Definition qhycfw1.h:38
QHYCFW1()
Definition qhycfw1.cpp:33
bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n) override
Process the client newNumber command.
Definition qhycfw1.cpp:145
virtual void ISGetProperties(const char *dev) override
define the driver's properties to the client. Usually, only a minimum set of properties are defined t...
Definition qhycfw1.cpp:44
const char * getDefaultName() override
Definition qhycfw1.cpp:39
virtual bool initProperties() override
Initialize properties initial state and value. The child class must implement this function.
Definition qhycfw1.cpp:79
virtual bool saveConfigItems(FILE *fp) override
saveConfigItems Save specific properties in the provide config file handler. Child class usually over...
Definition qhycfw1.cpp:168
One number descriptor.
Number vector property descriptor.
Definition indiapi.h:317