aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/maemo/maemo-common.h
diff options
context:
space:
mode:
Diffstat (limited to 'backends/platform/maemo/maemo-common.h')
-rw-r--r--backends/platform/maemo/maemo-common.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/backends/platform/maemo/maemo-common.h b/backends/platform/maemo/maemo-common.h
index cd4bb3b027..453c70c45f 100644
--- a/backends/platform/maemo/maemo-common.h
+++ b/backends/platform/maemo/maemo-common.h
@@ -28,10 +28,10 @@
namespace Maemo {
enum ModelType {
- kModelType770 = 1,
- kModelTypeN800 = 2,
- kModelTypeN810 = 4,
- kModelTypeN900 = 8,
+ kModelType770 = 1 << 0,
+ kModelTypeN800 = 1 << 1,
+ kModelTypeN810 = 1 << 2,
+ kModelTypeN900 = 1 << 3,
kModelTypeInvalid = 0
};
@@ -39,16 +39,17 @@ struct Model {
const char *hwId;
ModelType modelType;
const char *hwAlias;
- bool hwKeyboard;
+ bool hasHwKeyboard;
+ bool hasMenuKey;
};
static const Model models[] = {
- {"SU-18", kModelType770, "770", false},
- {"RX-34", kModelTypeN800, "N800", false},
- {"RX-44", kModelTypeN810, "N810", true},
- {"RX-48", kModelTypeN810, "N810W", true},
- {"RX-51", kModelTypeN900, "N900", true},
- {0, kModelTypeInvalid, 0, true}
+ {"SU-18", kModelType770, "770", false, true},
+ {"RX-34", kModelTypeN800, "N800", false, true},
+ {"RX-44", kModelTypeN810, "N810", true, true},
+ {"RX-48", kModelTypeN810, "N810W", true, true},
+ {"RX-51", kModelTypeN900, "N900", true, false},
+ {0, kModelTypeInvalid, 0, true, true}
};
enum CustomEventType {