|
1 // Copyright (c) 2006-2010 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 "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 // |
|
15 |
|
16 #ifndef VIRTUALVIDEOHWDEVICE_H |
|
17 #define VIRTUALVIDEOHWDEVICE_H |
|
18 |
|
19 #include <kernel/kernel.h> |
|
20 #include <kernel/kern_priv.h> |
|
21 #include "virtualvideohwdeviceinterface.h" |
|
22 |
|
23 class DVirtualVideoHwInterface; |
|
24 class DDeviceReqHandler; |
|
25 |
|
26 _LIT( KVirtualVideoHwDevicePanic, "DVVideoHwDevice" ); |
|
27 |
|
28 /** |
|
29 * Logical device driver for the virtual Video peripheral used in the |
|
30 * platform simulator. |
|
31 */ |
|
32 class DVirtualVideoHwDevice : public DLogicalDevice, |
|
33 public MVirtualVideoHwDeviceInterface |
|
34 { |
|
35 public: |
|
36 |
|
37 /** |
|
38 * Default constructor. |
|
39 */ |
|
40 DVirtualVideoHwDevice(); |
|
41 |
|
42 /** |
|
43 * Destructor. |
|
44 */ |
|
45 virtual ~DVirtualVideoHwDevice(); |
|
46 |
|
47 public: // From DLogicalDevice |
|
48 |
|
49 /** |
|
50 * Second stage constructor. |
|
51 * @see DLogicalDevice::Install |
|
52 */ |
|
53 virtual TInt Install(); |
|
54 |
|
55 /** |
|
56 * Gets the driver's capabilities. |
|
57 * @see DLogicalDevice::GetCaps |
|
58 */ |
|
59 virtual void GetCaps( TDes8& aDes ) const; |
|
60 |
|
61 /** |
|
62 * Called by the kernel's device driver framework to create |
|
63 * a Logical Channel. |
|
64 * @see DLogicalDevice::Create |
|
65 */ |
|
66 virtual TInt Create( DLogicalChannelBase*& aChannel ); |
|
67 |
|
68 private: // From MVirtualVideoHwDeviceInterface |
|
69 |
|
70 private: |
|
71 |
|
72 // Interface to the hardware |
|
73 DVirtualVideoHwInterface* iHwInterface; |
|
74 |
|
75 // DFC queue |
|
76 TDfcQue* iDfcQ; |
|
77 |
|
78 // Request handler |
|
79 DDeviceReqHandler* iDeviceReqHandler; |
|
80 }; |
|
81 |
|
82 #endif // VIRTUALVIDEOHWDEVICE_H |