diff options
author | Jon Medhurst | 2013-06-17 07:29:43 -0500 |
---|---|---|
committer | Jon Medhurst | 2013-06-17 07:29:43 -0500 |
commit | 567aa4e79aa4450eb32528b6acda62f18ae76596 (patch) | |
tree | 747c381b968e6d044cdaefa4a64c5295566e2764 /daemon/Counter.h | |
parent | 4187fbf69e3cd436cfd3c93948492296e99e918c (diff) | |
parent | f15a1807ecf7af6dd0cac9e175ff00bf06d7c304 (diff) | |
download | arm-ds5-gator-567aa4e79aa4450eb32528b6acda62f18ae76596.tar.gz arm-ds5-gator-567aa4e79aa4450eb32528b6acda62f18ae76596.tar.xz arm-ds5-gator-567aa4e79aa4450eb32528b6acda62f18ae76596.zip |
Merge branch 'master' into android
Diffstat (limited to 'daemon/Counter.h')
-rw-r--r-- | daemon/Counter.h | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/daemon/Counter.h b/daemon/Counter.h index 041020b..231a85d 100644 --- a/daemon/Counter.h +++ b/daemon/Counter.h | |||
@@ -24,52 +24,25 @@ public: | |||
24 | 24 | ||
25 | void clear () { | 25 | void clear () { |
26 | mType[0] = '\0'; | 26 | mType[0] = '\0'; |
27 | mTitle[0] = '\0'; | ||
28 | mName[0] = '\0'; | ||
29 | mDescription[0] = '\0'; | ||
30 | mDisplay[0] = '\0'; | ||
31 | mUnits[0] = '\0'; | ||
32 | mModifier = 1; | ||
33 | mEnabled = false; | 27 | mEnabled = false; |
34 | mEvent = 0; | 28 | mEvent = 0; |
35 | mCount = 0; | 29 | mCount = 0; |
36 | mKey = 0; | 30 | mKey = 0; |
37 | mPerCPU = false; | ||
38 | mEBSCapable = false; | ||
39 | mAverageSelection = false; | ||
40 | mDriver = NULL; | 31 | mDriver = NULL; |
41 | } | 32 | } |
42 | 33 | ||
43 | void setType(const char *const type) { strncpy(mType, type, sizeof(mType)); mType[sizeof(mType) - 1] = '\0'; } | 34 | void setType(const char *const type) { strncpy(mType, type, sizeof(mType)); mType[sizeof(mType) - 1] = '\0'; } |
44 | void setTitle(const char *const title) { strncpy(mTitle, title, sizeof(mTitle)); mTitle[sizeof(mTitle) - 1] = '\0'; } | ||
45 | void setName(const char *const name) { strncpy(mName, name, sizeof(mName)); mName[sizeof(mName) - 1] = '\0'; } | ||
46 | void setDescription(const char *const description) { strncpy(mDescription, description, sizeof(mDescription)); mDescription[sizeof(mDescription) - 1] = '\0'; } | ||
47 | void setDisplay(const char *const display) { strncpy(mDisplay, display, sizeof(mDisplay)); mDisplay[sizeof(mDisplay) - 1] = '\0'; } | ||
48 | void setUnits(const char *const units) { strncpy(mUnits, units, sizeof(mUnits)); mUnits[sizeof(mUnits) - 1] = '\0'; } | ||
49 | void setModifier(const int modifier) { mModifier = modifier; } | ||
50 | void setEnabled(const bool enabled) { mEnabled = enabled; } | 35 | void setEnabled(const bool enabled) { mEnabled = enabled; } |
51 | void setEvent(const int event) { mEvent = event; } | 36 | void setEvent(const int event) { mEvent = event; } |
52 | void setCount(const int count) { mCount = count; } | 37 | void setCount(const int count) { mCount = count; } |
53 | void setKey(const int key) { mKey = key; } | 38 | void setKey(const int key) { mKey = key; } |
54 | void setPerCPU(const bool perCPU) { mPerCPU = perCPU; } | ||
55 | void setEBSCapable(const bool ebsCapable) { mEBSCapable = ebsCapable; } | ||
56 | void setAverageSelection(const bool averageSelection) { mAverageSelection = averageSelection; } | ||
57 | void setDriver(Driver *const driver) { mDriver = driver; } | 39 | void setDriver(Driver *const driver) { mDriver = driver; } |
58 | 40 | ||
59 | const char *getType() const { return mType;} | 41 | const char *getType() const { return mType;} |
60 | const char *getTitle() const { return mTitle; } | ||
61 | const char *getName() const { return mName; } | ||
62 | const char *getDescription() const { return mDescription; } | ||
63 | const char *getDisplay() const { return mDisplay; } | ||
64 | const char *getUnits() const { return mUnits; } | ||
65 | int getModifier() const { return mModifier; } | ||
66 | bool isEnabled() const { return mEnabled; } | 42 | bool isEnabled() const { return mEnabled; } |
67 | int getEvent() const { return mEvent; } | 43 | int getEvent() const { return mEvent; } |
68 | int getCount() const { return mCount; } | 44 | int getCount() const { return mCount; } |
69 | int getKey() const { return mKey; } | 45 | int getKey() const { return mKey; } |
70 | bool isPerCPU() const { return mPerCPU; } | ||
71 | bool isEBSCapable() const { return mEBSCapable; } | ||
72 | bool isAverageSelection() const { return mAverageSelection; } | ||
73 | Driver *getDriver() const { return mDriver; } | 46 | Driver *getDriver() const { return mDriver; } |
74 | 47 | ||
75 | private: | 48 | private: |
@@ -78,19 +51,10 @@ private: | |||
78 | Counter & operator=(const Counter &); | 51 | Counter & operator=(const Counter &); |
79 | 52 | ||
80 | char mType[MAX_STRING_LEN]; | 53 | char mType[MAX_STRING_LEN]; |
81 | char mTitle[MAX_STRING_LEN]; | ||
82 | char mName[MAX_STRING_LEN]; | ||
83 | char mDescription[MAX_DESCRIPTION_LEN]; | ||
84 | char mDisplay[MAX_STRING_LEN]; | ||
85 | char mUnits[MAX_STRING_LEN]; | ||
86 | int mModifier; | ||
87 | bool mEnabled; | 54 | bool mEnabled; |
88 | int mEvent; | 55 | int mEvent; |
89 | int mCount; | 56 | int mCount; |
90 | int mKey; | 57 | int mKey; |
91 | bool mPerCPU; | ||
92 | bool mEBSCapable; | ||
93 | bool mAverageSelection; | ||
94 | Driver *mDriver; | 58 | Driver *mDriver; |
95 | }; | 59 | }; |
96 | 60 | ||