diff -r 0dfaca43d90e -r 606eafc6d6a8 baseport/syborg/webcamera/webcamera_device.h --- a/baseport/syborg/webcamera/webcamera_device.h Wed Mar 24 13:46:59 2010 +0900 +++ b/baseport/syborg/webcamera/webcamera_device.h Mon Oct 18 19:39:25 2010 +0900 @@ -24,71 +24,76 @@ class DWebcameraLogicalChannelBase : public DLogicalChannel -{ + { public: /** - Called by PDD from ISR to indicate that a get oneflame operation has completed. + Called by PDD from ISR to indicate that a get oneflame operation has completed. */ - virtual void GetOneFlameComplete(TInt aResult)=0; - /** - call to the function if one Capture image is received. - */ - virtual void CaptureComplete(TInt aResult)=0; - /** - call to the function if one flame is received. - */ + virtual void GetOneFlameComplete(TInt aResult) = 0; /** call to the function if one Capture image is received. */ - virtual void DoCaptureComplete()=0; - + virtual void DoCaptureComplete() = 0; + public: - /** - * pointer to client. - */ - DThread* iClient; -}; + /** + pointer to client. + */ + DThread* iClient; + }; class DWebcameraDriverBase : public DBase -{ + { public: - /** - Enumeration of stop modes. - */ - enum TUSBStopMode - { - USB_ViewerFinder =0, - USB_capture =1, - USB_cancel =2 + /** + Enumeration of stop modes. + */ + enum TUSBStopMode + { + USB_ViewerFinder = 0, + USB_capture = 1, + USB_cancel = 2 + }; + + /** + PowerOn. + */ + virtual TInt PowerOn(TAny* aHeaderPtr) = 0; + + /** + InitViewFinder. + */ + virtual TInt InitViewFinder() = 0; + + /** + request. + */ + virtual TInt StartViewerFinder(TAny* aDataPtr, TInt aSize) = 0; + + /** + Enumeration of stop modes. + */ + virtual void Stop(TUSBStopMode aMode) = 0; + + /** + */ + virtual void Disconnect() = 0; + +//virtual void Caps(TDes8 &aCaps) const; + +public: + /** + pointer to logic channel. + */ + DWebcameraLogicalChannelBase* iLdd; + /** + Linear Addresses of Peripherals. + */ + TLinAddr iPortAddr; + /** + interrupt number. + */ + TInt iIrq; }; - /** - request. - */ - virtual TInt StartViewerFinder(TUint aBuffer,TInt aSize)=0; - /** - Enumeration of stop modes. - */ - virtual TInt StartCapture(TUint aBuffer,TInt aSize)=0; - /** - Enumeration of stop modes. - */ - virtual void Stop(TUSBStopMode aMode)=0; -//virtual void Caps(TDes8 &aCaps) const; - -public: - /** - * pointer to logic channel. - */ - DWebcameraLogicalChannelBase* iLdd; - /** - * Linear Addresses of Peripherals. - */ - TLinAddr iPortAddr; - /** - * interrupt number. - */ - TInt iIrq; - -}; #endif