kopete/libkopete
videodevicepool.cpp
Go to the documentation of this file.
76 connect( Solid::DeviceNotifier::instance(), SIGNAL(deviceAdded(QString)), SLOT(deviceAdded(QString)) );
77 connect( Solid::DeviceNotifier::instance(), SIGNAL(deviceRemoved(QString)), SLOT(deviceRemoved(QString)) );
78 /* NOTE: No locking needed as long as we don't connect with Qt::ConnectionType = Qt::DirectConnection
81 foreach( Solid::Device device, Solid::Device::listFromType(Solid::DeviceInterface::Video, QString()) )
521 kDebug() << "Added input" << loop << ": " << m_videodevices[m_current_device]->m_input[loop].name
550 kDebug() << "Added signal standard" << loop << ": " << m_videodevices[m_current_device]->signalStandardName(1 << loop);
574 kDebug() << "Device name:" << config.readEntry( QString::fromLocal8Bit( "Device %1 Name" ).arg( currentdevice ), QString("NOT SAVED") );
609 const QString key_currentinput = QString::fromLocal8Bit( "Device %1 Current Input" ).arg( m_videodevices[m_current_device]->udi() );
619 const QString key_control_start = QString::fromLocal8Bit( "Device %1 Input %2 Control " ).arg( m_videodevices[m_current_device]->udi() ).arg( m_videodevices[m_current_device]->currentInput() );
665 const QString name = QString::fromLocal8Bit( "Device %1 Name" ).arg( m_videodevices[m_current_device]->udi() );
682 const QString key_currentinput = QString::fromLocal8Bit( "Device %1 Current Input" ).arg( m_videodevices[m_current_device]->udi() );
686 const QString key_control_start = QString::fromLocal8Bit( "Device %1 Input %2 Control " ).arg( m_videodevices[m_current_device]->udi() ).arg( m_videodevices[m_current_device]->currentInput() );
688 QList<NumericVideoControl> numCtrls = m_videodevices[m_current_device]->getSupportedNumericControls();
701 QList<BooleanVideoControl> boolCtrls = m_videodevices[m_current_device]->getSupportedBooleanControls();
705 if (EXIT_SUCCESS == m_videodevices[m_current_device]->getControlValue(boolCtrl.id, &ctrl_value))
714 QList<MenuVideoControl> menuCtrls = m_videodevices[m_current_device]->getSupportedMenuControls();
718 if (EXIT_SUCCESS == m_videodevices[m_current_device]->getControlValue(menuCtrl.id, &ctrl_value))
822 /* NOTE: The device we register has usually an empty vendor string and a less meaningfull product string.
void fillInputKComboBox(KComboBox *combobox)
Fills a combobox with the names of all available inputs for the currently selected device...
Definition: videodevicepool.cpp:508
int startCapturing()
Starts capturing from the currently selected video device.
Definition: videodevicepool.cpp:373
int setImageSize(int newwidth, int newheight)
Definition: videodevicepool.cpp:470
bool registerDevice(Solid::Device &dev)
Checks if the given device is a valid video device and adds it do the device list.
Definition: videodevicepool.cpp:816
int showDeviceCapabilities(int device=-1)
Definition: videodevicepool.cpp:743
QString currentDeviceUdi()
Returns the unique device identifier (UDI) of the currently selected device.
Definition: videodevicepool.cpp:228
QList< NumericVideoControl > getSupportedNumericControls()
Returns the supported numeric controls for the current input.
Definition: videodevicepool.cpp:284
Definition: videodevice.h:255
int setFileName(QString filename)
Definition: videodevice.cpp:303
int getImage(QImage *qimage)
Definition: videodevicepool.cpp:411
void deviceRegistered(const QString &udi)
Provisional signatures, probably more useful to indicate which device was registered.
QList< MenuVideoControl > getSupportedMenuControls()
Returns the supported menu-controls for the current input.
Definition: videodevicepool.cpp:310
void loadDeviceConfig()
Loads and applies the configuration for the currently selected device.
Definition: videodevicepool.cpp:602
Definition: videodevice.h:276
int inputs()
Returns the number of available inputs of the currently selected device.
Definition: videodevicepool.cpp:241
QList< BooleanVideoControl > getSupportedBooleanControls()
Returns the supported boolean controls for the current input.
Definition: videodevicepool.cpp:297
Definition: videodevice.h:267
void deviceAdded(const QString &udi)
Slot called when a new device is added to the system.
Definition: videodevicepool.cpp:760
int selectInput(int newinput)
Selects the input of the current video device.
Definition: videodevicepool.cpp:268
void saveCurrentDeviceConfig()
Saves the current device configuration.
Definition: videodevicepool.cpp:654
Definition: videodevice.h:245
void deviceRemoved(const QString &udi)
Removes the device with the specified UDI from the device pool.
Definition: videodevicepool.cpp:779
static VideoDevicePool * self()
Returns pointer to a common instance of the VideoDevicePool.
Definition: videodevicepool.cpp:56
This class allows kopete to check for the existence, open, configure, test, set parameters, grab frames from and close a given video capture card using the Video4Linux API.
Definition: videodevicepool.h:46
int stopCapturing()
Starts capturing from the currently selected video device.
Definition: videodevicepool.cpp:388
int open(int device=-1)
Opens the video device with the specified index. The previously opened device is closed before...
Definition: videodevicepool.cpp:119
QVector< VideoDevice * > m_videodevices
Definition: videodevicepool.h:93
int getControlValue(quint32 ctrl_id, qint32 *value)
Reads the value of a video-control.
Definition: videodevicepool.cpp:340
void fillStandardKComboBox(KComboBox *combobox)
Fills a combobox with the names of the available signal standards for the currently selected device...
Definition: videodevicepool.cpp:535
bool isOpen()
Returns true if the currently selected device is open and false othwerise.
Definition: videodevicepool.cpp:103
int setControlValue(quint32 ctrl_id, qint32 value)
Sets the value of a video-control.
Definition: videodevicepool.cpp:358
void deviceUnregistered(const QString &udi)
void fillDeviceKComboBox(KComboBox *combobox)
Fills a combobox with the names of all available video devices.
Definition: videodevicepool.cpp:485
QList< ActionVideoControl > getSupportedActionControls()
Returns the supported action-controls for the current input.
Definition: videodevicepool.cpp:323
int currentInput()
Returns the index of the currently selected input.
Definition: videodevicepool.cpp:254
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.