javauis/eswt_akn/org.eclipse.ercp.swt.s60/native/src/swtmobiledevice.cpp
branchRCL_3
changeset 60 6c158198356e
parent 19 04becd199f91
equal deleted inserted replaced
59:e5618cc85d74 60:6c158198356e
     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>
    14 #include <aknsoundsystem.h>
    15 #include <aknsoundsystem.h>
    15 #include <aknappui.h>
    16 #include <aknappui.h>
    16 #include <aknenv.h>
    17 #include <aknenv.h>
    17 #include "swtmobiledevice.h"
    18 #include "swtmobiledevice.h"
    18 
    19 
    46 
    47 
    47 // ---------------------------------------------------------------------------
    48 // ---------------------------------------------------------------------------
    48 // CSwtMobileDevice::GetHwInputs
    49 // CSwtMobileDevice::GetHwInputs
    49 // ---------------------------------------------------------------------------
    50 // ---------------------------------------------------------------------------
    50 //
    51 //
    51 void CSwtMobileDevice::GetHwInputs(
    52 void CSwtMobileDevice::GetHwInputsL(
    52     RArray<CSwtMobileDevice::TSwtHwInput>& aInputs)
    53     RArray<CSwtMobileDevice::TSwtHwInput>& aInputs)
    53 {
    54 {
    54     TInt mask;
    55     TInt mask;
    55     TSwtHwInput tempInput;
    56     TSwtHwInput tempInput;
    56 
    57 
    66         else
    67         else
    67         {
    68         {
    68             tempInput.iLocation = MSwtMobileDevice::ELocal;
    69             tempInput.iLocation = MSwtMobileDevice::ELocal;
    69         }
    70         }
    70         tempInput.iType = MSwtInput::ESoftKeys;
    71         tempInput.iType = MSwtInput::ESoftKeys;
    71         aInputs.Append(tempInput);
    72         aInputs.AppendL(tempInput);
    72         tempInput.iType = MSwtInput::EFullKeyboard;
    73         tempInput.iType = MSwtInput::EFullKeyboard;
    73         aInputs.Append(tempInput);
    74         aInputs.AppendL(tempInput);
    74     }
    75     }
    75 
    76 
    76     if (mask & EKeyboard_Keypad)
    77     if (mask & EKeyboard_Keypad)
    77     {
    78     {
    78         if (mask & EKeyboard_Full)
    79         if (mask & EKeyboard_Full)
    82         else
    83         else
    83         {
    84         {
    84             tempInput.iLocation = MSwtMobileDevice::ELocal;
    85             tempInput.iLocation = MSwtMobileDevice::ELocal;
    85         }
    86         }
    86         tempInput.iType = MSwtInput::ESoftKeys;
    87         tempInput.iType = MSwtInput::ESoftKeys;
    87         aInputs.Append(tempInput);
    88         aInputs.AppendL(tempInput);
    88         tempInput.iType = MSwtInput::EKeyPad;
    89         tempInput.iType = MSwtInput::EKeyPad;
    89         aInputs.Append(tempInput);
    90         aInputs.AppendL(tempInput);
    90     }
    91     }
    91 }
    92 }
    92 
    93 
    93 // ---------------------------------------------------------------------------
    94 // ---------------------------------------------------------------------------
    94 // CSwtMobileDevice::CSwtMobileDevice
    95 // CSwtMobileDevice::CSwtMobileDevice