Some type casting issues
[emufront] / src / dataobjects / emufrontobject.h
1 #ifndef EMUFRONTOBJECT_H
2 #define EMUFRONTOBJECT_H
3
4 #include <QObject>
5
6 class EmuFrontObject : public QObject
7 {
8 public:
9     EmuFrontObject();
10     EmuFrontObject(int id, QString name);
11
12     // No need for these as long we use QString (see Implicit Data Sharing)
13     //EmuFrontObject(const EmuFrontObject &);
14     //virtual ~EmuFrontObject();
15     //EmuFrontObject &operator=(const EmuFrontObject &);
16
17     virtual const QString getName() const
18     { return name; }
19     virtual int getId() const
20     { return id; }
21     virtual void setName(QString name)
22     { this->name = name; };
23     virtual void setId(int id)
24     { this->id = id; }
25
26 protected:
27     int id;
28     QString name;
29 };
30
31 #endif // EMUFRONTOBJECT_H