|
1 /* |
|
2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #include "CHidDriverPlugin.h" |
|
21 |
|
22 CHidDriverPlugin* CHidDriverPlugin::NewL(MDriverAccess* /*aHid*/) |
|
23 { |
|
24 CHidDriverPlugin* self = new (ELeave) CHidDriverPlugin(); |
|
25 return self; |
|
26 } |
|
27 |
|
28 |
|
29 CHidDriverPlugin::CHidDriverPlugin() : CHidDriver() |
|
30 { |
|
31 } |
|
32 |
|
33 TInt CHidDriverPlugin::CanHandleReportL(CReportRoot* aReportDescriptor) |
|
34 { |
|
35 return KErrNone; |
|
36 } |
|
37 |
|
38 TInt CHidDriverPlugin::DataIn(CHidTransport::THidChannelType aChannel, |
|
39 const TDesC8& aPayload) |
|
40 { |
|
41 return KErrNone; |
|
42 } |
|
43 |
|
44 void CHidDriverPlugin::Disconnected(TInt aReason) |
|
45 { |
|
46 |
|
47 } |
|
48 void CHidDriverPlugin::InitialiseL(TInt aConnectionId) |
|
49 { |
|
50 |
|
51 } |
|
52 void CHidDriverPlugin::StartL(TInt aConnectionId) |
|
53 { |
|
54 |
|
55 } |
|
56 void CHidDriverPlugin::Stop() |
|
57 { |
|
58 |
|
59 } |
|
60 void CHidDriverPlugin::CommandResult(TInt aCmdAck) |
|
61 { |
|
62 |
|
63 } |
|
64 TInt CHidDriverPlugin::SupportedFieldCount() |
|
65 { |
|
66 return KErrNone; |
|
67 } |
|
68 void CHidDriverPlugin::SetInputHandlingReg(CHidInputDataHandlingReg* aHandlingReg) |
|
69 { |
|
70 ///////todo!! |
|
71 aHandlingReg->AddHandledEvent(1,1); |
|
72 TBool allowed = aHandlingReg->AllowedToHandleEvent(1,1); |
|
73 if(allowed == EFalse) |
|
74 { |
|
75 //User::Leave(1); |
|
76 } |
|
77 allowed = aHandlingReg->AllowedToHandleEvent(2,2); |
|
78 if(allowed != EFalse) |
|
79 { |
|
80 //User::Leave(1); |
|
81 } |
|
82 |
|
83 } |
|
84 |
|
85 |
|
86 // End of File |