Kstars

deviceinfo.h
1 /*
2  SPDX-FileCopyrightText: 2012 Jasem Mutlaq <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #ifndef DEVICEINFO_H
8 #define DEVICEINFO_H
9 
10 #include <basedevice.h>
11 
12 #include "driverinfo.h"
13 
14 /**
15  * @class DeviceInfo
16  * DeviceInfo is simple class to hold DriverInfo and INDI::BaseDevice associated with a particular device.
17  *
18  * @author Jasem Mutlaq
19  */
21 {
22  public:
23  DeviceInfo(const QSharedPointer<DriverInfo> &, INDI::BaseDevice ibd);
24 
25  const QString &getDeviceName() const
26  {
27  return m_Name;
28  }
29  const QSharedPointer<DriverInfo> &getDriverInfo()
30  {
31  return m_Driver;
32  }
33  INDI::BaseDevice getBaseDevice()
34  {
35  return dp;
36  }
37 
38  private:
40  INDI::BaseDevice dp;
41  QString m_Name;
42 };
43 
44 #endif // DEVICEINFO_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Sep 27 2023 04:02:09 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.