Debian Codegraph @

HercConfiguration/VisualizedDeviceEntry.h

raw symbols SCIP
1 /*
2 * File: VisualizedDeviceEntry.h
3 *
4 * Author: Jacob Dekel
5 * Created on: Aug 7, 2009
6 *
7 * Copyright (c) 2009-2013 Jacob Dekel
8 * $Id$
9 *
10 * This is the base class for all configuration device entries
11 * This program is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program. If not, see <http://www.gnu.org/licenses/>.
23 *
24 */
25
26 #ifndef DEVICEENTRY_H_
27 #define DEVICEENTRY_H_
28
29 #include "DeviceTypes.h"
30
31 #include <QPixmap>
32 #include <QIcon>
33 #include <QStandardItem>
34 #include <string>
35
36 class VisualizedDeviceEntry
37 {
38 public:
39 VisualizedDeviceEntry(int number, DeviceTypes::Type type, const std::string& definition);
40 VisualizedDeviceEntry();
41 virtual ~VisualizedDeviceEntry();
42
43 inline int getDeviceNumber(){ return mNumber; }
44 inline int getLineNumber(){ return mLine; }
45 inline DeviceTypes::Type getType() { return mType; }
46 inline QPixmap * getPixmap() { return mPixmap; }
47 inline QIcon * getIcon() { return mIcon; }
48 inline QStandardItem * getItem() { return mItem; }
49 inline std::string getDefinition() { return mDefinition; }
50 inline bool traced() { return mTraced; }
51 inline void setLineNumber(int lineNumber) { mLine = lineNumber; }
52 inline void setPixmap(QPixmap * w) { mPixmap=w; }
53 inline void setIcon(QIcon * w) { mIcon=w; }
54 inline void setItem(QStandardItem * w) { mItem=w; }
55 inline void setTraced(bool traced) { mTraced = traced; }
56
57 private:
58 int mNumber;
59 int mLine;
60 DeviceTypes::Type mType;
61 std::string mDefinition;
62 QPixmap * mPixmap;
63 QIcon * mIcon;
64 QStandardItem * mItem;
65 bool mTraced;
66 };
67 #endif /* DEVICEENTRY_H_ */