KVIrc 5.2.6
Developer APIs
DccVideoWindow Class Reference

#include <DccVideoWindow.h>

+ Inheritance diagram for DccVideoWindow:

Public Member Functions

 DccVideoWindow (DccDescriptor *dcc, const char *name)
 
 ~DccVideoWindow ()
 
- Public Member Functions inherited from DccWindow
virtual const char * dccMarshalOutputContextString ()
 
virtual KviWindowdccMarshalOutputWindow ()
 
 DccWindow (KviWindow::Type eType, const char *name, DccDescriptor *d)
 
DccDescriptordescriptor ()
 
virtual DccThreadgetSlaveThread ()
 
const DccMarshalmarshal ()
 
 ~DccWindow ()
 
- Public Member Functions inherited from KviWindow
virtual bool activityMeter (unsigned int *puActivityValue, unsigned int *puActivityTemperature)
 
virtual void applyOptions ()
 
virtual QFrame * buttonContainer ()
 
KviIrcConnectionconnection ()
 Returns the current IRC connection (if any)
 
KviConsoleWindowconsole () const
 Returns the console that this window belongs to.
 
KviIrcContextcontext ()
 
void contextPopup ()
 
QString decodeText (const char *pcText)
 
virtual QTextCodec * defaultTextCodec ()
 
void delayedAutoRaise ()
 
void delayedClose ()
 
void demandAttention ()
 Notify the window manager that this window demands attention.
 
QByteArray encodeText (const QString &szText)
 
void forceTextCodec (QTextCodec *pCodec)
 
virtual void getConfigGroupName (QString &szBuffer)
 
void getDefaultLogFileName (QString &szBuffer)
 
void getDefaultLogFileName (QString &szBuffer, QDate date, bool bGzip, unsigned int uDatetimeFormat)
 
virtual void getWindowListTipText (QString &szBuffer)
 
bool hasAttention (AttentionLevel eLevel=VisibleAndActive)
 Returns whether this window is the active one.
 
virtual bool highlightMe (unsigned int uValue)
 
virtual bool highlightMeter (unsigned int *puValue)
 
QString id () const
 Returns the global ID of this window.
 
KviInputinput () const
 
void internalOutput (KviIrcView *pView, int iMsgType, const kvi_wchar_t *pwText, int iFlags=0, const QDateTime &datetime=QDateTime())
 
bool isChannel () const
 
bool isConsole () const
 
bool isDocked () const
 
bool isQuery () const
 
 KviWindow (Type eType, const QString &szName, KviConsoleWindow *pConsole=nullptr)
 Constructs the window object.
 
virtual KviIrcViewlastClickedView () const
 Returns the KviIrcView that was last clicked in this window.
 
const QString & lastLineOfText ()
 
const QString & lastMessageText ()
 
void listWindowTypes ()
 
QTextEncoder * makeEncoder ()
 
unsigned long int numericId () const
 Returns the global ID of this window.
 
virtual void output (int iMsgType, const char *pcFormat,...)
 
virtual void output (int iMsgType, const kvi_wchar_t *pwFormat,...)
 
void output (int iMsgType, const QDateTime &datetime, const char *pcFormat,...)
 
void output (int iMsgType, const QDateTime &datetime, const kvi_wchar_t *pwFormat,...)
 
void output (int iMsgType, const QDateTime &datetime, QString szFmt,...)
 
virtual void output (int iMsgType, QString szFmt,...)
 
virtual void outputNoFmt (int iMsgType, const char *pcText, int iFlags=0, const QDateTime &datetime=QDateTime())
 
virtual void outputNoFmt (int iMsgType, const kvi_wchar_t *pwText, int iFlags=0, const QDateTime &datetime=QDateTime())
 
virtual void outputNoFmt (int iMsgType, const QString &szText, int iFlags=0, const QDateTime &datetime=QDateTime())
 
virtual KviWindowoutputProxy ()
 
void pasteLastLog ()
 Pastes the most recent channel log into the buffer.
 
virtual const QString & plainTextCaption ()
 
void setFixedCaption (const QString &szCaption)
 
void setProgress (int iProgress)
 Sets the progress for the WindowList item.
 
bool setTextEncoding (const QString &szTextEncoding)
 
void setWindowName (const QString &szName)
 Sets the name of the window.
 
void setWindowTitle (QString &szTitle)
 
KviTalSplittersplitter () const
 Returns the splitter of this window.
 
QTextCodec * textCodec ()
 
const QString & textEncoding () const
 
virtual void toggleButtonContainer ()
 
Type type () const
 Returns the type of the window.
 
virtual const char * typeString ()
 Returns a descriptive name of the window type.
 
void unhighlight ()
 
void updateBackgrounds (QObject *pObj=nullptr)
 
virtual void updateCaption ()
 
virtual void updateIcon ()
 
KviIrcViewview () const
 Returns the KviIrcView of this window.
 
KviWindowListItemwindowListItem () const
 Returns the windowList item.
 
const QString & windowName () const
 Returns the name of this window.
 
 ~KviWindow ()
 Destroys the window object.
 
- Public Member Functions inherited from DccMarshalOutputContext
 DccMarshalOutputContext ()
 
virtual ~DccMarshalOutputContext ()
 

Protected Slots

void connected ()
 
void connectionInProgress ()
 
void displayCameraError ()
 
void handleMarshalError (KviError::Code eError)
 
void initializeLocalCamera ()
 
void setCamera (const QCameraDevice &cameraDevice)
 
void setMuted (bool)
 
void slotUpdateImage ()
 
void startCamera ()
 
void startOrStopTalking (bool bStart)
 
void stopCamera ()
 
void textViewRightClicked ()
 
void updateCameraActive (bool active)
 
void updateCameraDevice (int idx)
 
void updateCameras ()
 
- Protected Slots inherited from KviWindow
void childDestroyed ()
 
void cryptControllerFinished ()
 
void cryptSessionInfoDestroyed ()
 
void systemTextEncodingPopupActivated (QAction *pAction)
 
void textEncodingButtonClicked ()
 
void toggleCryptController ()
 

Protected Member Functions

bool event (QEvent *e) override
 
void fillCaptionBuffers () override
 
void getBaseLogFileName (QString &buffer) override
 
const QString & localNick () override
 
QPixmap * myIconPtr () override
 
void ownAction (const QString &text) override
 
void ownMessage (const QString &text, bool bUserFeedback=true) override
 
void resizeEvent (QResizeEvent *) override
 
QSize sizeHint () const override
 
void startConnection ()
 
void startTalking ()
 
void stopTalking ()
 
const QString & target () override
 
void triggerCreationEvents () override
 
void triggerDestructionEvents () override
 
- Protected Member Functions inherited from KviWindow
void childEvent (QChildEvent *pEvent) override
 
void childInserted (QWidget *pObject)
 
void childRemoved (QWidget *pObject)
 
virtual void childrenTreeChanged (QWidget *pAdded)
 
void closeEvent (QCloseEvent *pEvent) override
 
void createCryptControllerButton (QWidget *pPar)
 
void createSystemTextEncodingPopup ()
 
void createTextEncodingButton (QWidget *pPar)
 
QToolButton * createToolButton (QWidget *pPar, const char *pcName, KviIconManager::SmallIcon eIcon, const QString &szToolTip, bool bOn)
 
virtual void createWindowListItem ()
 
virtual void destroyWindowListItem ()
 
bool eventFilter (QObject *pObject, QEvent *pEvent) override
 
void fillSingleColorCaptionBuffers (const QString &szName)
 
void focusInEvent (QFocusEvent *) override
 
bool focusNextPrevChild (bool bNext) override
 
void inputMethodEvent (QInputMethodEvent *e) override
 
virtual void loadProperties (KviConfigurationFile *pCfg)
 
virtual void lostUserFocus ()
 
void moveEvent (QMoveEvent *pEvent) override
 
virtual void preprocessMessage (QString &szMessage)
 
virtual void saveProperties (KviConfigurationFile *pCfg)
 
void setType (Type eType)
 
virtual void youAreDocked ()
 
virtual void youAreUndocked ()
 
- Protected Member Functions inherited from DccMarshalOutputContext

Protected Attributes

QScopedPointer< QAudioInput > m_audioInput
 
QScopedPointer< QCamera > m_camera
 
QMediaCaptureSession m_captureSession
 
QMediaDevices m_devices
 
QComboBox * m_pCDevices
 
QWidget * m_pContainerWidget
 
KviThemedLabelm_pLabel
 
QGridLayout * m_pLayout
 
QVideoWidget * m_pLocalCamera
 
QVideoWidget * m_pRemoteCamera
 
DccVideoThreadm_pSlaveThread
 
QLabel * m_pVideoLabel
 
QString m_szLocalNick
 
QString m_szTarget
 
QTimer m_Timer
 
QByteArray m_tmpTextDataOut
 
- Protected Attributes inherited from DccWindow
DccDescriptorm_pDescriptor
 
DccMarshalm_pMarshal
 
- Protected Attributes inherited from KviWindow
bool m_bIsDocked
 
bool m_bProcessingInputEvent
 
Type m_eType
 
KviTalHBoxm_pButtonBox
 
KviConsoleWindowm_pConsole
 
QWidget * m_pFocusHandler
 
QToolButton * m_pHideToolsButton
 
KviInputm_pInput
 
KviIrcViewm_pIrcView
 
QWidget * m_pLastFocusedChild
 
KviTalSplitterm_pSplitter
 
QTextCodec * m_pTextCodec
 
QToolButton * m_pTextEncodingButton
 
KviWindowListItemm_pWindowListItem
 
QString m_szName
 
QString m_szPlainTextCaption
 
QString m_szTextEncoding
 
unsigned long int m_uId
 

Friends

class DccVideoThread
 

Additional Inherited Members

- Public Types inherited from KviWindow
enum  ActivityTemperature {
  Ice = 0 , VeryCold = 1 , Cold = 2 , Undefined = 3 ,
  Hot = 4 , VeryHot = 5 , Fire = 6
}
 Holds the activity meter in temperature scale. More...
 
enum  ActivityValue {
  None = 0 , VeryLow = 1 , Low = 2 , Medium = 3 ,
  High = 4 , VeryHigh = 5
}
 Holds the activity meter in value scale. More...
 
enum  AttentionLevel { VisibleAndActive = 0 , MainWindowIsVisible = 1 }
 attention levels usable in hasAttention() More...
 
enum  Type {
  Console = 0 , Channel = 1 , Query = 2 , DeadChannel = 3 ,
  DeadQuery = 4 , Editor = 5 , Help = 6 , Terminal = 7 ,
  SocketSpy = 8 , Links = 9 , List = 10 , DccChat = 11 ,
  DccTransfer = 12 , DccCanvas = 13 , DccVoice = 14 , DccVideo = 15 ,
  UserWindow = 16 , Tool = 17 , IOGraph = 18 , DirBrowser = 19 ,
  ScriptEditor = 20 , ScriptObject = 21 , LogView = 22 , Offer = 23 ,
  Debug = 24 , Unknown = 25 , TypeCount = 26
}
 Holds the types of a window; these are used by the KVIrc core and distributed modules. More...
 
- Public Slots inherited from KviWindow
void autoRaise ()
 
void dock ()
 
void reloadImages ()
 
void savePropertiesAsDefault ()
 
void undock ()
 
- Signals inherited from KviWindow
void windowNameChanged ()
 
- Static Protected Attributes inherited from KviWindow
static const char * m_typeTable [TypeCount]
 
- Properties inherited from KviWindow
int KviProperty_ChildFocusOwner
 

Constructor & Destructor Documentation

◆ DccVideoWindow()

◆ ~DccVideoWindow()

Member Function Documentation

◆ connected

◆ connectionInProgress

◆ displayCameraError

void DccVideoWindow::displayCameraError ( )
protectedslot

References m_camera.

Referenced by setCamera().

◆ event()

◆ fillCaptionBuffers()

void DccVideoWindow::fillCaptionBuffers ( )
overrideprotectedvirtual

◆ getBaseLogFileName()

void DccVideoWindow::getBaseLogFileName ( QString & buffer)
overrideprotectedvirtual

◆ handleMarshalError

void DccVideoWindow::handleMarshalError ( KviError::Code eError)
protectedslot

◆ initializeLocalCamera

void DccVideoWindow::initializeLocalCamera ( )
protectedslot

◆ localNick()

const QString & DccVideoWindow::localNick ( )
overrideprotectedvirtual

◆ myIconPtr()

QPixmap * DccVideoWindow::myIconPtr ( )
overrideprotectedvirtual

◆ ownAction()

◆ ownMessage()

◆ resizeEvent()

void DccVideoWindow::resizeEvent ( QResizeEvent * )
overrideprotected

◆ setCamera

void DccVideoWindow::setCamera ( const QCameraDevice & cameraDevice)
protectedslot

◆ setMuted

void DccVideoWindow::setMuted ( bool muted)
protectedslot

References m_captureSession.

◆ sizeHint()

QSize DccVideoWindow::sizeHint ( ) const
overrideprotected

◆ slotUpdateImage

void DccVideoWindow::slotUpdateImage ( )
protectedslot

◆ startCamera

void DccVideoWindow::startCamera ( )
protectedslot

References m_camera.

◆ startConnection()

◆ startOrStopTalking

void DccVideoWindow::startOrStopTalking ( bool bStart)
protectedslot

References startTalking(), and stopTalking().

◆ startTalking()

void DccVideoWindow::startTalking ( )
protected

◆ stopCamera

void DccVideoWindow::stopCamera ( )
protectedslot

References m_camera.

◆ stopTalking()

void DccVideoWindow::stopTalking ( )
protected

◆ target()

const QString & DccVideoWindow::target ( )
overrideprotectedvirtual

◆ textViewRightClicked

void DccVideoWindow::textViewRightClicked ( )
protectedslot

◆ triggerCreationEvents()

void DccVideoWindow::triggerCreationEvents ( )
overrideprotectedvirtual

◆ triggerDestructionEvents()

void DccVideoWindow::triggerDestructionEvents ( )
overrideprotectedvirtual

◆ updateCameraActive

void DccVideoWindow::updateCameraActive ( bool active)
protectedslot

Referenced by DccVideoWindow(), and setCamera().

◆ updateCameraDevice

void DccVideoWindow::updateCameraDevice ( int idx)
protectedslot

References m_pCDevices, and setCamera().

Referenced by initializeLocalCamera().

◆ updateCameras

void DccVideoWindow::updateCameras ( )
protectedslot

References m_pCDevices.

Referenced by initializeLocalCamera().

Friends And Related Symbol Documentation

◆ DccVideoThread

friend class DccVideoThread
friend

Referenced by connected().

Member Data Documentation

◆ m_audioInput

QScopedPointer<QAudioInput> DccVideoWindow::m_audioInput
protected

Referenced by initializeLocalCamera().

◆ m_camera

QScopedPointer<QCamera> DccVideoWindow::m_camera
protected

◆ m_captureSession

QMediaCaptureSession DccVideoWindow::m_captureSession
protected

◆ m_devices

QMediaDevices DccVideoWindow::m_devices
protected

Referenced by initializeLocalCamera().

◆ m_pCDevices

QComboBox* DccVideoWindow::m_pCDevices
protected

◆ m_pContainerWidget

QWidget* DccVideoWindow::m_pContainerWidget
protected

Referenced by DccVideoWindow(), and sizeHint().

◆ m_pLabel

KviThemedLabel* DccVideoWindow::m_pLabel
protected

Referenced by DccVideoWindow().

◆ m_pLayout

QGridLayout* DccVideoWindow::m_pLayout
protected

Referenced by DccVideoWindow(), and ~DccVideoWindow().

◆ m_pLocalCamera

QVideoWidget* DccVideoWindow::m_pLocalCamera
protected

◆ m_pRemoteCamera

QVideoWidget* DccVideoWindow::m_pRemoteCamera
protected

◆ m_pSlaveThread

◆ m_pVideoLabel

QLabel* DccVideoWindow::m_pVideoLabel
protected

Referenced by DccVideoWindow(), and ~DccVideoWindow().

◆ m_szLocalNick

QString DccVideoWindow::m_szLocalNick
protected

Referenced by localNick().

◆ m_szTarget

QString DccVideoWindow::m_szTarget
protected

Referenced by target().

◆ m_Timer

QTimer DccVideoWindow::m_Timer
protected

Referenced by DccVideoWindow().

◆ m_tmpTextDataOut

QByteArray DccVideoWindow::m_tmpTextDataOut
protected

Referenced by ownAction(), and ownMessage().


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