author | Brendan Donegan <brendand@symbian.org> |
Thu, 01 Jul 2010 14:51:21 +0100 | |
branch | nvmemory |
changeset 81 | 0f0bbe5dfe4b |
parent 52 | 0dfaca43d90e |
child 124 | 606eafc6d6a8 |
permissions | -rw-r--r-- |
52
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
1 |
/* |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
2 |
* Copyright (c) 2010 ISB. |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
3 |
* All rights reserved. |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
4 |
* This component and the accompanying materials are made available |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
5 |
* under the terms of the License "Eclipse Public License v1.0" |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
6 |
* which accompanies this distribution, and is available |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
8 |
* |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
9 |
* Initial Contributors: |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
10 |
* ISB - initial contribution. |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
11 |
* |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
12 |
* Contributors: |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
13 |
* |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
14 |
* Description: USB driver for test |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
15 |
* |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
16 |
*/ |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
17 |
#ifndef __deviceIF_H__ |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
18 |
#define __deviceIF_H__ |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
19 |
|
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
20 |
#include <e32cmn.h> |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
21 |
#include <e32ver.h> |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
22 |
|
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
23 |
#define BUFSIZE (100*1024) |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
24 |
|
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
25 |
/** |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
26 |
User interface for 'WebcameraDevice' |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
27 |
Define of the RBusLogicalChannel that is used in the application |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
28 |
*/ |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
29 |
class RWebcameraDevice : public RBusLogicalChannel |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
30 |
{ |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
31 |
public: |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
32 |
/** |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
33 |
Structure for holding driver capabilities information |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
34 |
*/ |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
35 |
class TCaps |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
36 |
{ |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
37 |
public: |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
38 |
TVersion iVersion; |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
39 |
}; |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
40 |
/** |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
41 |
Structure for holding driver configuration data |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
42 |
*/ |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
43 |
class TConfig |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
44 |
{ |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
45 |
public: |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
46 |
TInt iPddBufferSize; /**< Size of the PDD's data buffer (not modifiable) */ |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
47 |
//RArray<TSize> iImageSizes /**< size the PDD support*/ //TODO:implement |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
48 |
}; |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
49 |
typedef TPckgBuf<TConfig> TConfigBuf; |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
50 |
|
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
51 |
public: |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
52 |
/** |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
53 |
Opens a logical channel to the driver |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
54 |
|
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
55 |
@return One of the system wide error codes. |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
56 |
*/ |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
57 |
inline TInt Open(); |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
58 |
/** |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
59 |
Gets the current configuration settings. |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
60 |
|
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
61 |
@param aConfig A structure which will be filled with the configuration settings. |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
62 |
|
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
63 |
@return KErrNone |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
64 |
*/ |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
65 |
inline TInt GetConfig(TConfigBuf& aConfig); |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
66 |
/** |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
67 |
Sets the current configuration settings. |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
68 |
|
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
69 |
@param aConfig The new configuration settings to be used. |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
70 |
|
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
71 |
@return KErrInUse if there are outstanding data transfer requests. |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
72 |
KErrArgument if any configuration values are invalid. |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
73 |
KErrNone otherwise |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
74 |
*/ |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
75 |
inline TInt SetConfig(const TConfigBuf& aConfig); |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
76 |
/** |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
77 |
Request data from device. |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
78 |
Only one send request may be pending at any time. |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
79 |
|
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
80 |
@param aStatus The request to be signalled when the data has been sent. |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
81 |
The result value will be set to KErrNone on success; |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
82 |
or set to one of the system wide error codes when an error occurs. |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
83 |
@param aData A descriptor containing the data to send. |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
84 |
*/ |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
85 |
inline void StartViewFinder(TRequestStatus& aStatus,TDes8& aBuffer); |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
86 |
/** |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
87 |
Cancels a previous getdata request. |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
88 |
*/ |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
89 |
inline void StartViewFinderCancel(); |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
90 |
/** |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
91 |
Cancels a previous getdata request and notice device not to send data |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
92 |
*/ |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
93 |
inline void StopViewFinder(); |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
94 |
/** |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
95 |
Request data(Capture data) from device. |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
96 |
Only one send request may be pending at any time. |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
97 |
|
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
98 |
@param aStatus The request to be signalled when the data has been sent. |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
99 |
The result value will be set to KErrNone on success; |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
100 |
or set to one of the system wide error codes when an error occurs. |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
101 |
@param aData A descriptor containing the data to send. |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
102 |
*/ |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
103 |
inline void Capture(TRequestStatus& aStatus,TDes8& aBuffer); |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
104 |
/** |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
105 |
Cancels a previous getCapturedata request. |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
106 |
*/ |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
107 |
inline void CaptureCancel(); |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
108 |
/** |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
109 |
Returns the driver's name |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
110 |
*/ |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
111 |
inline static const TDesC& Name(); |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
112 |
/** |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
113 |
Returns the version number of the driver |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
114 |
*/ |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
115 |
inline static TVersion VersionRequired(); |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
116 |
|
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
117 |
public: |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
118 |
/** |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
119 |
Enumeration of Control messages. |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
120 |
*/ |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
121 |
enum TControl |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
122 |
{ |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
123 |
EGetConfig, |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
124 |
ESetConfig |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
125 |
}; |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
126 |
/** |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
127 |
Enumeration of Request messages. |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
128 |
*/ |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
129 |
enum TRequest |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
130 |
{ |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
131 |
EStart, |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
132 |
ECapture, |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
133 |
ENumRequests, |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
134 |
EAllRequests = (1<<ENumRequests)-1 |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
135 |
}; |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
136 |
|
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
137 |
// Kernel side LDD channel is a friend |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
138 |
friend class DDriver1Channel; |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
139 |
}; |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
140 |
|
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
141 |
// Inline functions |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
142 |
#include <webcamera_driver.inl> |
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
143 |
|
0dfaca43d90e
Added web camera drivers and QEMU plug-in for obtaining and transferring dummy data.
Masaki Hosaka <hosaka@isb.co.jp>
parents:
diff
changeset
|
144 |
#endif |