• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

kopete/kopete

  • sources
  • kde-4.12
  • kdenetwork
  • kopete
  • kopete
  • config
  • avdevice
avdeviceconfig.h
Go to the documentation of this file.
1 /*
2  avdeviceconfig.h - Kopete Video Device Configuration Panel
3 
4  Copyright (c) 2005-2006 by Cláudio da Silveira Pinheiro <taupter@gmail.com>
5  Copyright (c) 2010 by Frank Schaefer <fschaefer.oss@googlemail.com>
6 
7  Kopete (c) 2002-2003 by the Kopete developers <kopete-devel@kde.org>
8 
9  *************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  *************************************************************************
17 */
18 
19 #ifndef AVDEVICECONFIG_H
20 #define AVDEVICECONFIG_H
21 
22 #include <kcmodule.h>
23 #include <qimage.h>
24 #include <qpixmap.h>
25 #include <qtimer.h>
26 
27 #include "avdevice/videodevicepool.h"
28 #include "ui_avdeviceconfig_videodevice.h"
29 
30 class QTabWidget;
31 
32 //class Ui_AVDeviceConfig_VideoDevice;
33 //class Ui_AVDeviceConfig_AudioDevice;
34 
38 class AVDeviceConfig : public KCModule
39 {
40 Q_OBJECT
41 public:
42  AVDeviceConfig(QWidget *parent, const QVariantList &args);
43  ~AVDeviceConfig();
44  virtual void save();
45  virtual void load();
46 
47 private slots:
48  void slotSettingsChanged(bool);
49  void slotValueChanged(int);
50  void slotDeviceKComboBoxChanged(int);
51  void slotInputKComboBoxChanged(int);
52  void slotStandardKComboBoxChanged(int);
53  void slotUpdateImage();
54  void changeVideoControlValue(unsigned int id, int value = 0);
55  void resetControls();
56  void deviceRegistered( const QString & );
57  void deviceUnregistered( const QString & );
58  void updateVideoDevicePool();
59 
60 private:
61  class VideoControlValue
62  {
63  public:
64  VideoControlValue() : id(0), value(0) {};
65  VideoControlValue(quint32 id, qint32 value) : id(id), value(value) {};
66  quint32 id;
67  qint32 value;
68  };
69 
70 // QTabWidget* mAVDeviceTabCtl;
71  Ui_AVDeviceConfig_VideoDevice *mPrfsVideoDevice;
72 // AVDeviceConfig_AudioDevice *mPrfsAudioDevice;
73  Kopete::AV::VideoDevicePool *mVideoDevicePool;
74  QImage qimage;
75  QPixmap qpixmap;
76  QTimer qtimer;
77  QString capturingDevice_udi;
78  QList<QWidget*> ctrlWidgets;
79  QList<VideoControlValue> ctrl_values_bak;
80 
81  void setupControls();
82  void clearControlGUIElements();
83  void addSliderControlElement(int cid, QString title, int min, int max, int step, int value);
84  void addCheckBoxControlElement(int cid, QString title, bool value);
85  void addPopupMenuControlElement(int cid, QString title, QStringList options, int menuindex);
86  void addButtonControlElement(int cid, QString title);
87  void startCapturing();
88  void stopCapturing();
89 
90 protected:
91  virtual void showEvent(QShowEvent *event);
92  virtual void hideEvent(QHideEvent *event);
93 };
94 
95 #endif
QWidget
AVDeviceConfig
Definition: avdeviceconfig.h:38
AVDeviceConfig::AVDeviceConfig
AVDeviceConfig(QWidget *parent, const QVariantList &args)
AVDeviceConfig::hideEvent
virtual void hideEvent(QHideEvent *event)
Definition: avdeviceconfig.cpp:454
AVDeviceConfig::showEvent
virtual void showEvent(QShowEvent *event)
Definition: avdeviceconfig.cpp:447
AVDeviceConfig::~AVDeviceConfig
~AVDeviceConfig()
Definition: avdeviceconfig.cpp:69
AVDeviceConfig::save
virtual void save()
Definition: avdeviceconfig.cpp:279
AVDeviceConfig::load
virtual void load()
Definition: avdeviceconfig.cpp:289
KCModule
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kopete/kopete

Skip menu "kopete/kopete"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal