qTox  Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | Private Slots | Private Member Functions | Private Attributes | List of all members
NetCamView Class Reference

#include <netcamview.h>

Inheritance diagram for NetCamView:
Inheritance graph
Collaboration diagram for NetCamView:
Collaboration graph

Public Slots

void setShowMessages (bool show, bool notify=false)
 
void updateMuteVolButton (bool isMuted)
 
void updateMuteMicButton (bool isMuted)
 

Signals

void showMessageClicked ()
 
void videoCallEnd ()
 
void volMuteToggle ()
 
void micMuteToggle ()
 

Public Member Functions

 NetCamView (ToxPk friendPk, QWidget *parent=nullptr)
 
 ~NetCamView ()
 
virtual void show (VideoSource *source, const QString &title)
 
virtual void hide ()
 
void setSource (VideoSource *s)
 
void setTitle (const QString &title)
 
QSize getSurfaceMinSize ()
 

Protected Member Functions

void showEvent (QShowEvent *event)
 

Protected Attributes

QVBoxLayout * verLayout
 
VideoSurfacevideoSurface
 
QPushButton * enterFullScreenButton = nullptr
 

Private Slots

void updateRatio ()
 

Private Member Functions

void updateFrameSize (QSize size)
 
QPushButton * createButton (const QString &name, const QString &state)
 
void toggleFullScreen ()
 
void enterFullScreen ()
 
void exitFullScreen ()
 
void endVideoCall ()
 
void toggleVideoPreview ()
 
void toggleButtonState (QPushButton *btn)
 
void updateButtonState (QPushButton *btn, bool active)
 
void keyPressEvent (QKeyEvent *event)
 
void closeEvent (QCloseEvent *event)
 

Private Attributes

VideoSurfaceselfVideoSurface
 
MovableWidgetselfFrame
 
ToxPk friendPk
 
bool e
 
QVector< QMetaObject::Connection > connections
 
QHBoxLayout * buttonLayout = nullptr
 
QPushButton * toggleMessagesButton = nullptr
 
QFrame * buttonPanel = nullptr
 
QPushButton * videoPreviewButton = nullptr
 
QPushButton * volumeButton = nullptr
 
QPushButton * microphoneButton = nullptr
 
QPushButton * endVideoButton = nullptr
 
QPushButton * exitFullScreenButton = nullptr
 

Detailed Description

Definition at line 38 of file netcamview.h.

Constructor & Destructor Documentation

◆ NetCamView()

NetCamView::NetCamView ( ToxPk  friendPk,
QWidget *  parent = nullptr 
)

Definition at line 50 of file netcamview.cpp.

◆ ~NetCamView()

NetCamView::~NetCamView ( )

Definition at line 160 of file netcamview.cpp.

Member Function Documentation

◆ closeEvent()

void NetCamView::closeEvent ( QCloseEvent *  event)
private

Definition at line 347 of file netcamview.cpp.

Here is the call graph for this function:

◆ createButton()

QPushButton * NetCamView::createButton ( const QString &  name,
const QString &  state 
)
private

Definition at line 296 of file netcamview.cpp.

◆ endVideoCall()

void NetCamView::endVideoCall ( )
private

Definition at line 280 of file netcamview.cpp.

Here is the call graph for this function:

◆ enterFullScreen()

void NetCamView::enterFullScreen ( )
private

Definition at line 253 of file netcamview.cpp.

Here is the caller graph for this function:

◆ exitFullScreen()

void NetCamView::exitFullScreen ( )
private

Definition at line 271 of file netcamview.cpp.

Here is the caller graph for this function:

◆ getSurfaceMinSize()

QSize NetCamView::getSurfaceMinSize ( )

Definition at line 220 of file netcamview.cpp.

◆ hide()

void NetCamView::hide ( )
virtual

Definition at line 175 of file netcamview.cpp.

Here is the call graph for this function:

◆ keyPressEvent()

void NetCamView::keyPressEvent ( QKeyEvent *  event)
private

Definition at line 339 of file netcamview.cpp.

Here is the call graph for this function:

◆ micMuteToggle

void NetCamView::micMuteToggle ( )
signal
Here is the caller graph for this function:

◆ setShowMessages

void NetCamView::setShowMessages ( bool  show,
bool  notify = false 
)
slot

Definition at line 229 of file netcamview.cpp.

Here is the call graph for this function:

◆ setSource()

void NetCamView::setSource ( VideoSource s)

Definition at line 188 of file netcamview.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setTitle()

void NetCamView::setTitle ( const QString &  title)

Definition at line 193 of file netcamview.cpp.

Here is the caller graph for this function:

◆ show()

void NetCamView::show ( VideoSource source,
const QString &  title 
)
virtual

Definition at line 166 of file netcamview.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ showEvent()

void NetCamView::showEvent ( QShowEvent *  event)
protected

Definition at line 198 of file netcamview.cpp.

Here is the call graph for this function:

◆ showMessageClicked

void NetCamView::showMessageClicked ( )
signal
Here is the caller graph for this function:

◆ toggleButtonState()

void NetCamView::toggleButtonState ( QPushButton *  btn)
private

Definition at line 317 of file netcamview.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toggleFullScreen()

void NetCamView::toggleFullScreen ( )
private

Definition at line 244 of file netcamview.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toggleVideoPreview()

void NetCamView::toggleVideoPreview ( )
private

Definition at line 286 of file netcamview.cpp.

Here is the call graph for this function:

◆ updateButtonState()

void NetCamView::updateButtonState ( QPushButton *  btn,
bool  active 
)
private

Definition at line 328 of file netcamview.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateFrameSize()

void NetCamView::updateFrameSize ( QSize  size)
private

Definition at line 210 of file netcamview.cpp.

Here is the call graph for this function:

◆ updateMuteMicButton

void NetCamView::updateMuteMicButton ( bool  isMuted)
slot

Definition at line 312 of file netcamview.cpp.

Here is the call graph for this function:

◆ updateMuteVolButton

void NetCamView::updateMuteVolButton ( bool  isMuted)
slot

Definition at line 307 of file netcamview.cpp.

Here is the call graph for this function:

◆ updateRatio

void NetCamView::updateRatio ( )
privateslot

Definition at line 204 of file netcamview.cpp.

Here is the call graph for this function:

◆ videoCallEnd

void NetCamView::videoCallEnd ( )
signal
Here is the caller graph for this function:

◆ volMuteToggle

void NetCamView::volMuteToggle ( )
signal
Here is the caller graph for this function:

Member Data Documentation

◆ buttonLayout

QHBoxLayout* NetCamView::buttonLayout = nullptr
private

Definition at line 90 of file netcamview.h.

◆ buttonPanel

QFrame* NetCamView::buttonPanel = nullptr
private

Definition at line 92 of file netcamview.h.

◆ connections

QVector<QMetaObject::Connection> NetCamView::connections
private

Definition at line 89 of file netcamview.h.

◆ e

bool NetCamView::e
private

Definition at line 88 of file netcamview.h.

◆ endVideoButton

QPushButton* NetCamView::endVideoButton = nullptr
private

Definition at line 96 of file netcamview.h.

◆ enterFullScreenButton

QPushButton* NetCamView::enterFullScreenButton = nullptr
protected

Definition at line 57 of file netcamview.h.

◆ exitFullScreenButton

QPushButton* NetCamView::exitFullScreenButton = nullptr
private

Definition at line 97 of file netcamview.h.

◆ friendPk

ToxPk NetCamView::friendPk
private

Definition at line 87 of file netcamview.h.

◆ microphoneButton

QPushButton* NetCamView::microphoneButton = nullptr
private

Definition at line 95 of file netcamview.h.

◆ selfFrame

MovableWidget* NetCamView::selfFrame
private

Definition at line 86 of file netcamview.h.

◆ selfVideoSurface

VideoSurface* NetCamView::selfVideoSurface
private

Definition at line 85 of file netcamview.h.

◆ toggleMessagesButton

QPushButton* NetCamView::toggleMessagesButton = nullptr
private

Definition at line 91 of file netcamview.h.

◆ verLayout

QVBoxLayout* NetCamView::verLayout
protected

Definition at line 55 of file netcamview.h.

◆ videoPreviewButton

QPushButton* NetCamView::videoPreviewButton = nullptr
private

Definition at line 93 of file netcamview.h.

◆ videoSurface

VideoSurface* NetCamView::videoSurface
protected

Definition at line 56 of file netcamview.h.

◆ volumeButton

QPushButton* NetCamView::volumeButton = nullptr
private

Definition at line 94 of file netcamview.h.


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