File indexing completed on 2024-04-28 11:24:38
0001 /* 0002 SPDX-FileCopyrightText: 2012 Jasem Mutlaq <mutlaqja@ikarustech.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef DEVICEINFO_H 0008 #define DEVICEINFO_H 0009 0010 #include <basedevice.h> 0011 0012 #include "driverinfo.h" 0013 0014 /** 0015 * @class DeviceInfo 0016 * DeviceInfo is simple class to hold DriverInfo and INDI::BaseDevice associated with a particular device. 0017 * 0018 * @author Jasem Mutlaq 0019 */ 0020 class DeviceInfo 0021 { 0022 public: 0023 DeviceInfo(const QSharedPointer<DriverInfo> &, INDI::BaseDevice ibd); 0024 0025 const QString &getDeviceName() const 0026 { 0027 return m_Name; 0028 } 0029 const QSharedPointer<DriverInfo> &getDriverInfo() 0030 { 0031 return m_Driver; 0032 } 0033 INDI::BaseDevice getBaseDevice() 0034 { 0035 return dp; 0036 } 0037 0038 private: 0039 QSharedPointer<DriverInfo> m_Driver; 0040 INDI::BaseDevice dp; 0041 QString m_Name; 0042 }; 0043 0044 #endif // DEVICEINFO_H