Instrument Neutral Distributed Interface INDI  1.9.5
indipropertytext.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2021 by Pawel Soja <kernel32.pl@gmail.com>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Lesser General Public
6  License as published by the Free Software Foundation; either
7  version 2.1 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Lesser General Public License for more details.
13 
14  You should have received a copy of the GNU Lesser General Public
15  License along with this library; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 
19 #pragma once
20 
21 #include "indipropertybasic.h"
22 
23 namespace INDI
24 {
25 
26 class PropertyTextPrivate;
27 class PropertyText: public INDI::PropertyBasic<IText>
28 {
29  DECLARE_PRIVATE(PropertyText)
30 public:
31  PropertyText(size_t count);
32  ~PropertyText();
33 
34 public:
35  bool update(const char * const texts[], const char * const names[], int n);
36 
37  void fill(
38  const char *device, const char *name, const char *label, const char *group,
39  IPerm permission, double timeout, IPState state
40  );
41 };
42 
43 }
INDI::PropertyText
Definition: indipropertytext.h:27
IPState
IPState
Property state.
Definition: indiapi.h:158
INDI::PropertyText::fill
void fill(const char *device, const char *name, const char *label, const char *group, IPerm permission, double timeout, IPState state)
Definition: indipropertytext.cpp:45
indipropertybasic.h
INDI::PropertyText::~PropertyText
~PropertyText()
Definition: indipropertytext.cpp:36
device
hid_device * device
Definition: activefocuser_utils.cpp:92
IPerm
IPerm
Permission hint, with respect to client.
Definition: indiapi.h:181
INDI::PropertyText::update
bool update(const char *const texts[], const char *const names[], int n)
Definition: indipropertytext.cpp:39
name
const char * name
Definition: indiserver.c:116
INDI
Namespace to encapsulate INDI client, drivers, and mediator classes.
Definition: AlignmentSubsystemForClients.cpp:11
INDI::PropertyBasic
Definition: indipropertybasic.h:37
INDI::PropertyText::PropertyText
PropertyText(size_t count)
Definition: indipropertytext.cpp:32