Solid
webcamwatcher.h
Go to the documentation of this file.00001 /* This file is part of the KDE project 00002 Copyright (C) 2007 Will Stephenson <wstephenson@kde.org> 00003 00004 This program is free software; you can redistribute it and/or modify 00005 it under the terms of the GNU General Public License as published by 00006 the Free Software Foundation; either version 2 of the License or ( at 00007 your option ) version 3 or, at the discretion of KDE e.V. ( which shall 00008 act as a proxy as in section 14 of the GPLv3 ), any later version. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License along 00016 with this program; if not, write to the Free Software Foundation, Inc., 00017 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 00018 */ 00019 00020 #ifndef WEBCAMWATCHER_H 00021 #define WEBCAMWATCHER_H 00022 00023 #include <QObject> 00024 #include <QStringList> 00025 00026 namespace Solid 00027 { 00028 class Device; 00029 } // namespace Solid 00030 00031 class WebcamWatcher : public QObject 00032 { 00033 Q_OBJECT 00034 public: 00035 WebcamWatcher( QObject * parent = 0 ); 00036 ~WebcamWatcher(); 00037 protected: 00038 void getDetails( const Solid::Device & dev ); 00039 protected slots: 00040 void deviceAdded( const QString& udi ); 00041 void deviceRemoved( const QString& udi ); 00042 private: 00043 QStringList m_videoDevices; 00044 }; 00045 00046 #endif