equal
deleted
inserted
replaced
9 * Nokia Corporation - S60 implementation |
9 * Nokia Corporation - S60 implementation |
10 *******************************************************************************/ |
10 *******************************************************************************/ |
11 |
11 |
12 |
12 |
13 #include <hal.h> |
13 #include <hal.h> |
14 #include <e32svr.h> |
|
15 #include <aknsoundsystem.h> |
14 #include <aknsoundsystem.h> |
16 #include <aknappui.h> |
15 #include <aknappui.h> |
17 #include <aknenv.h> |
16 #include <aknenv.h> |
18 #include "swtmobiledevice.h" |
17 #include "swtmobiledevice.h" |
19 |
18 |
47 |
46 |
48 // --------------------------------------------------------------------------- |
47 // --------------------------------------------------------------------------- |
49 // CSwtMobileDevice::GetHwInputs |
48 // CSwtMobileDevice::GetHwInputs |
50 // --------------------------------------------------------------------------- |
49 // --------------------------------------------------------------------------- |
51 // |
50 // |
52 void CSwtMobileDevice::GetHwInputsL( |
51 void CSwtMobileDevice::GetHwInputs( |
53 RArray<CSwtMobileDevice::TSwtHwInput>& aInputs) |
52 RArray<CSwtMobileDevice::TSwtHwInput>& aInputs) |
54 { |
53 { |
55 TInt mask; |
54 TInt mask; |
56 TSwtHwInput tempInput; |
55 TSwtHwInput tempInput; |
57 |
56 |
67 else |
66 else |
68 { |
67 { |
69 tempInput.iLocation = MSwtMobileDevice::ELocal; |
68 tempInput.iLocation = MSwtMobileDevice::ELocal; |
70 } |
69 } |
71 tempInput.iType = MSwtInput::ESoftKeys; |
70 tempInput.iType = MSwtInput::ESoftKeys; |
72 aInputs.AppendL(tempInput); |
71 aInputs.Append(tempInput); |
73 tempInput.iType = MSwtInput::EFullKeyboard; |
72 tempInput.iType = MSwtInput::EFullKeyboard; |
74 aInputs.AppendL(tempInput); |
73 aInputs.Append(tempInput); |
75 } |
74 } |
76 |
75 |
77 if (mask & EKeyboard_Keypad) |
76 if (mask & EKeyboard_Keypad) |
78 { |
77 { |
79 if (mask & EKeyboard_Full) |
78 if (mask & EKeyboard_Full) |
83 else |
82 else |
84 { |
83 { |
85 tempInput.iLocation = MSwtMobileDevice::ELocal; |
84 tempInput.iLocation = MSwtMobileDevice::ELocal; |
86 } |
85 } |
87 tempInput.iType = MSwtInput::ESoftKeys; |
86 tempInput.iType = MSwtInput::ESoftKeys; |
88 aInputs.AppendL(tempInput); |
87 aInputs.Append(tempInput); |
89 tempInput.iType = MSwtInput::EKeyPad; |
88 tempInput.iType = MSwtInput::EKeyPad; |
90 aInputs.AppendL(tempInput); |
89 aInputs.Append(tempInput); |
91 } |
90 } |
92 } |
91 } |
93 |
92 |
94 // --------------------------------------------------------------------------- |
93 // --------------------------------------------------------------------------- |
95 // CSwtMobileDevice::CSwtMobileDevice |
94 // CSwtMobileDevice::CSwtMobileDevice |