equal
deleted
inserted
replaced
|
1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // e32test\mmu\d_import.h |
|
15 // |
|
16 // |
|
17 |
|
18 #ifndef __D_IMPORT_H__ |
|
19 #define __D_IMPORT_H__ |
|
20 |
|
21 #include <e32cmn.h> |
|
22 #ifndef __KERNEL_MODE__ |
|
23 #include <e32std.h> |
|
24 #endif |
|
25 |
|
26 #include "d_export.h" |
|
27 |
|
28 _LIT(KImportTestLddName,"d_import"); |
|
29 |
|
30 class RImportLdd : public RBusLogicalChannel |
|
31 { |
|
32 public: |
|
33 enum TControl |
|
34 { |
|
35 ERunImport, |
|
36 }; |
|
37 |
|
38 #ifndef __KERNEL_MODE__ |
|
39 public: |
|
40 inline TInt Open() |
|
41 { |
|
42 TInt r=User::LoadLogicalDevice(KImportTestLddName); |
|
43 if(r==KErrNone || r==KErrAlreadyExists) |
|
44 r=DoCreate(KImportTestLddName,TVersion(),KNullUnit,NULL,NULL,EOwnerProcess,ETrue); |
|
45 return r; |
|
46 }; |
|
47 inline TInt RunImport(TUint aNum0, TUint aNum1) |
|
48 { return DoControl(ERunImport, (TAny*)aNum0, (TAny*)aNum1); } |
|
49 #endif |
|
50 }; |
|
51 |
|
52 |
|
53 #endif |