equal
deleted
inserted
replaced
|
1 // ltkhal.h |
|
2 // |
|
3 // Copyright (c) 2010 Accenture. All rights reserved. |
|
4 // This component and the accompanying materials are made available |
|
5 // under the terms of the "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 // Accenture - Initial contribution |
|
11 // |
|
12 #ifndef LTKHAL_H |
|
13 #define LTKHAL_H |
|
14 |
|
15 #include <e32base.h> |
|
16 |
|
17 namespace LtkUtils |
|
18 { |
|
19 NONSHARABLE_CLASS(CHalAttribute) : public CBase |
|
20 { |
|
21 public: |
|
22 CHalAttribute(TInt aAttribute, TInt aDeviceNumber, TInt aValue, TInt aError, const TDesC& aAttributeName, HBufC* aDescription); |
|
23 IMPORT_C ~CHalAttribute(); |
|
24 |
|
25 TInt iAttribute; |
|
26 TInt iDeviceNumber; |
|
27 TInt iValue; |
|
28 TInt iError; // If not KErrNone, iValue will not be valid |
|
29 const TDesC& iAttributeName; |
|
30 HBufC* iDescription; |
|
31 }; |
|
32 |
|
33 IMPORT_C void GetHalInfoL(RPointerArray<CHalAttribute>& aAttributes); |
|
34 IMPORT_C CHalAttribute* GetHalInfoL(TInt aAttribute); |
|
35 IMPORT_C CHalAttribute* GetHalInfoL(TInt aDeviceNumber, TInt aAttribute); |
|
36 |
|
37 IMPORT_C CHalAttribute* GetHalInfoForValueL(TInt aDeviceNumber, TInt aAttribute, TInt aValue); |
|
38 } |
|
39 |
|
40 #endif |