|
1 /* |
|
2 * Copyright (c) 2004 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: Hardware device base class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 // INCLUDE FILES |
|
24 #include "asrshwdevice.h" |
|
25 |
|
26 // ============================ MEMBER FUNCTIONS =============================== |
|
27 |
|
28 // ----------------------------------------------------------------------------- |
|
29 // CASRSHwDevice::CASRSHwDevice |
|
30 // C++ default constructor can NOT contain any code, that |
|
31 // might leave. |
|
32 // ----------------------------------------------------------------------------- |
|
33 // |
|
34 CASRSHwDevice::CASRSHwDevice() |
|
35 { |
|
36 } |
|
37 |
|
38 // ----------------------------------------------------------------------------- |
|
39 // CASRSHwDevice::ConstructL |
|
40 // Symbian 2nd phase constructor can leave. |
|
41 // ----------------------------------------------------------------------------- |
|
42 // |
|
43 void CASRSHwDevice::ConstructL() |
|
44 { |
|
45 } |
|
46 |
|
47 // ----------------------------------------------------------------------------- |
|
48 // CASRSHwDevice::NewL |
|
49 // Two-phased constructor. |
|
50 // ----------------------------------------------------------------------------- |
|
51 // |
|
52 EXPORT_C CASRSHwDevice* CASRSHwDevice::NewL() |
|
53 { |
|
54 CASRSHwDevice* self = new( ELeave ) CASRSHwDevice; |
|
55 |
|
56 CleanupStack::PushL( self ); |
|
57 self->ConstructL(); |
|
58 CleanupStack::Pop(); |
|
59 |
|
60 return self; |
|
61 } |
|
62 |
|
63 |
|
64 // ----------------------------------------------------------------------------- |
|
65 // CASRSHwDevice::~CASRSHwDevice |
|
66 // Destructor |
|
67 // ----------------------------------------------------------------------------- |
|
68 // |
|
69 EXPORT_C CASRSHwDevice::~CASRSHwDevice() |
|
70 { |
|
71 |
|
72 } |
|
73 |
|
74 // ----------------------------------------------------------------------------- |
|
75 // CASRSHwDevice::InitializeL() |
|
76 // do nothing |
|
77 // (other items were commented in a header). |
|
78 // ----------------------------------------------------------------------------- |
|
79 // |
|
80 EXPORT_C void CASRSHwDevice::InitializeL() |
|
81 { |
|
82 // nothing |
|
83 } |
|
84 |
|
85 // ----------------------------------------------------------------------------- |
|
86 // CASRSHwDevice::Clear() |
|
87 // do nothing |
|
88 // (other items were commented in a header). |
|
89 // ----------------------------------------------------------------------------- |
|
90 // |
|
91 EXPORT_C void CASRSHwDevice::Clear() |
|
92 { |
|
93 // nothing |
|
94 } |
|
95 |
|
96 // ----------------------------------------------------------------------------- |
|
97 // CASRSHwDevice::CustomInterface() |
|
98 // return empty interface |
|
99 // (other items were commented in a header). |
|
100 // ----------------------------------------------------------------------------- |
|
101 // |
|
102 EXPORT_C TAny* CASRSHwDevice::CustomInterface( TUid /*aInterfaceId*/ ) |
|
103 { |
|
104 return NULL; |
|
105 } |
|
106 |