dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
idevice.h
Go to the documentation of this file.
1 
12 /*
13  * This program is free software; you can redistribute it and/or modify
14  * it under the terms of the GNU General Public License as published by
15  * the Free Software Foundation; either version 3 of the License, or
16  * (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful, but
19  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
20  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  * for more details.
22  *
23  * You should have received a copy of the GNU General Public License along
24  * with this program; if not, see <http://www.gnu.org/licenses/>
25  */
26 #ifndef IDEVICE_H
27 #define IDEVICE_H
28 
29 #include <QObject>
30 #include "core_global.h"
31 
32 namespace Core {
33 
45 class CORE_EXPORT IDevice : public QObject
46 {
47  Q_OBJECT
48 public:
49  QString getName() const { return name; }
50  void setName(QString theName) { name = theName; }
51  QString getDisplayName() const { return displayName; }
52  void setDisplayName(QString dn) { displayName = dn; }
53 
54  /*
55  bool operator==(const IDevice *idv) const {
56  return name == idv->getName() && displayName == idv->getDisplayName();
57  }
58  */
59 
60  bool equals(const IDevice *idv) const
61  {
62  return name == idv->getName() && displayName == idv->getDisplayName();
63  }
64 
65 private:
66  QString name;
67  QString displayName;
68 };
69 }
70 
71 #endif // IDEVICE_H
QString getName() const
Definition: idevice.h:49
void setName(QString theName)
Definition: idevice.h:50
void setDisplayName(QString dn)
Definition: idevice.h:52
bool equals(const IDevice *idv) const
Definition: idevice.h:60
QString getDisplayName() const
Definition: idevice.h:51