00001 #ifndef VIDEOCOLLECTOR_HPP 00002 #define VIDEOCOLLECTOR_HPP 00003 00004 #include <qlist.h> 00005 00006 #if HAVE_CONFIG_H 00007 #include "config.h" 00008 #endif 00009 00010 #include "VideoDevice.h" 00011 00012 class CVideoCollector 00013 { 00014 private: 00015 static CVideoCollector *Collector; 00016 QList<CVideoDevice> Devices; 00017 00018 CVideoCollector(); 00019 void Scan(); 00020 00021 public: 00022 static CVideoCollector *Instance(); 00023 00024 int NumberOfVideoDevices(); 00025 CVideoDevice *GetVideoDevice(int n); 00026 }; 00027 00028 #endif