Logo Search packages:      
Sourcecode: camstream version File versions  Download package

CWebCamViewer Class Reference

Inheritance diagram for CWebCamViewer:

CCamWindow

List of all members.


Detailed Description

A class for the usual webcam activity: take pictures, save them do disk and/or upload to a server.

Definition at line 27 of file WebCamViewer.h.


Public Member Functions

 CWebCamViewer (CVideoDevice *video, const QSize &hint_size, QWidget *parent=0, const char *name=0)
virtual void showMaximized ()
 public slots

Protected Slots

void CallAdjustSize ()
 Work around for adjustSize().
void DeviceChangedSize (const QSize &size)
void DeviceError (int err_no)

Protected Member Functions

void RecalcTotalViewSize ()
 Calculate the total required viewing area, based on video image and 'last snapshot'.

Private Types

enum  {
  pbt_controls, pbt_config, pbt_showsnap, pbt_snapshot,
  pbt_timesnap, pbt_sound, pbt_MAX
}

Private Slots

void ClickedConfigurationDlg ()
void ClickedSettingsDlg ()
void ClickedShowLastSnapshot ()
void ClickedSoundOnOff ()
void ClickedTimeSnapDlg ()
void ConfigurationDlgClosed ()
void FTPChangeState (int command, int new_state, int result, const QString &server_msg)
void NextFTPCommand ()
void SettingsDlgClosed ()
void StartTimeSnap ()
void StopTimeSnap ()
void TakeSnapshot ()
 Takes an image from the video stream, saves it in the snapshot imagebuffer, starts FTP upload.
void TimeSnapDlgClosed ()
void TimeSnapTick ()

Private Member Functions

void StartFTPUpload (const QString &, bool)
void StopFTP ()
void TriggerNextFTPCommand ()

Private Attributes

QPixmap ButtonPix [pbt_MAX]
QToolButton * pButton [pbt_MAX]
CSnapshotSettingsDlg * pConfiguration
 Configuration dialog.
CBasicPanelpLastSnapshot
 Extra panel that shows the last snapshot.
CVideoSettingsDlg * pSettings
 Settings dialog.
QLabel * pSnapLabel
QTimer * pSnapTimer
CTimeSnapDlg * pTimeSnapDlg
enum CWebCamViewer:: { ... }  PushButtons
CVideoDevicepVideo
 The video device.
CCamPanelpViewer
 The main image viewer.
SVideoOptionspVOptions
 Our options.
QTimer * SizeTimer
 Helper timer for adjustSize().
int SnapCounter
int SnapInterval
struct {
   QList< FTPCommandStruct >   Commands
   bool   DelAfter
   bool   ErrorCondition
   QString   LocalFile
   CFTPClient *   pClient
   QString   RemoteFile
   QTime   StartTime
Upload

Classes

struct  FTPCommandStruct
 Upload data. More...

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index