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

#include <chatformheader.h>

Inheritance diagram for ChatFormHeader:
Inheritance graph
Collaboration diagram for ChatFormHeader:
Collaboration graph

Public Types

enum  CallButtonState {
  CallButtonState::Disabled = 0, CallButtonState::Avaliable = 1, CallButtonState::InCall = 2, CallButtonState::Outgoing = 3,
  CallButtonState::Incoming = 4
}
 
enum  ToolButtonState { ToolButtonState::Disabled = 0, ToolButtonState::Off = 1, ToolButtonState::On = 2 }
 
enum  Mode { None = 0, Audio = 1, Video = 2, AV = Audio | Video }
 

Public Slots

void reloadTheme ()
 

Signals

void callTriggered ()
 
void videoCallTriggered ()
 
void micMuteToggle ()
 
void volMuteToggle ()
 
void nameChanged (const QString &name)
 
void callAccepted ()
 
void callRejected ()
 

Public Member Functions

 ChatFormHeader (QWidget *parent=nullptr)
 
 ~ChatFormHeader ()
 
void setName (const QString &newName)
 
void setMode (Mode mode)
 
void showOutgoingCall (bool video)
 
void createCallConfirm (bool video)
 
void showCallConfirm ()
 
void removeCallConfirm ()
 
void updateExtensionSupport (ExtensionSet extensions)
 
void updateCallButtons (bool online, bool audio, bool video=false)
 
void updateMuteMicButton (bool active, bool inputMuted)
 
void updateMuteVolButton (bool active, bool outputMuted)
 
void setAvatar (const QPixmap &img)
 
QSize getAvatarSize () const
 
void addWidget (QWidget *widget, int stretch=0, Qt::Alignment alignment=Qt::Alignment())
 
void addLayout (QLayout *layout)
 
void addStretch ()
 

Private Slots

void retranslateUi ()
 
void updateButtonsView ()
 

Private Attributes

Mode mode
 
MaskablePixmapWidgetavatar
 
QVBoxLayout * headTextLayout
 
QHBoxLayout * nameLine
 
ExtensionStatusextensionStatus
 
CroppingLabelnameLabel
 
QPushButton * callButton
 
QPushButton * videoButton
 
QPushButton * volButton
 
QPushButton * micButton
 
CallButtonState callState
 
CallButtonState videoState
 
ToolButtonState volState
 
ToolButtonState micState
 
std::unique_ptr< CallConfirmWidgetcallConfirm
 

Detailed Description

Definition at line 38 of file chatformheader.h.

Member Enumeration Documentation

◆ CallButtonState

Enumerator
Disabled 
Avaliable 
InCall 
Outgoing 
Incoming 

Definition at line 42 of file chatformheader.h.

◆ Mode

Enumerator
None 
Audio 
Video 
AV 

Definition at line 54 of file chatformheader.h.

◆ ToolButtonState

Enumerator
Disabled 
Off 
On 

Definition at line 49 of file chatformheader.h.

Constructor & Destructor Documentation

◆ ChatFormHeader()

ChatFormHeader::ChatFormHeader ( QWidget *  parent = nullptr)

Definition at line 111 of file chatformheader.cpp.

◆ ~ChatFormHeader()

ChatFormHeader::~ChatFormHeader ( )
default

Member Function Documentation

◆ addLayout()

void ChatFormHeader::addLayout ( QLayout *  layout)

Definition at line 317 of file chatformheader.cpp.

◆ addStretch()

void ChatFormHeader::addStretch ( )

Definition at line 322 of file chatformheader.cpp.

◆ addWidget()

void ChatFormHeader::addWidget ( QWidget *  widget,
int  stretch = 0,
Qt::Alignment  alignment = Qt::Alignment() 
)

Definition at line 312 of file chatformheader.cpp.

◆ callAccepted

void ChatFormHeader::callAccepted ( )
signal
Here is the caller graph for this function:

◆ callRejected

void ChatFormHeader::callRejected ( )
signal
Here is the caller graph for this function:

◆ callTriggered

void ChatFormHeader::callTriggered ( )
signal

◆ createCallConfirm()

void ChatFormHeader::createCallConfirm ( bool  video)

Definition at line 218 of file chatformheader.cpp.

Here is the caller graph for this function:

◆ getAvatarSize()

QSize ChatFormHeader::getAvatarSize ( ) const

Definition at line 298 of file chatformheader.cpp.

◆ micMuteToggle

void ChatFormHeader::micMuteToggle ( )
signal

◆ nameChanged

void ChatFormHeader::nameChanged ( const QString &  name)
signal

◆ reloadTheme

void ChatFormHeader::reloadTheme ( )
slot

Definition at line 303 of file chatformheader.cpp.

Here is the call graph for this function:

◆ removeCallConfirm()

void ChatFormHeader::removeCallConfirm ( )

Definition at line 232 of file chatformheader.cpp.

Here is the caller graph for this function:

◆ retranslateUi

void ChatFormHeader::retranslateUi ( )
privateslot

Definition at line 193 of file chatformheader.cpp.

Here is the caller graph for this function:

◆ setAvatar()

void ChatFormHeader::setAvatar ( const QPixmap &  img)

Definition at line 293 of file chatformheader.cpp.

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

◆ setMode()

void ChatFormHeader::setMode ( ChatFormHeader::Mode  mode)

Definition at line 182 of file chatformheader.cpp.

◆ setName()

void ChatFormHeader::setName ( const QString &  newName)

Definition at line 175 of file chatformheader.cpp.

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

◆ showCallConfirm()

void ChatFormHeader::showCallConfirm ( )

Definition at line 226 of file chatformheader.cpp.

Here is the caller graph for this function:

◆ showOutgoingCall()

void ChatFormHeader::showOutgoingCall ( bool  video)

Definition at line 211 of file chatformheader.cpp.

Here is the caller graph for this function:

◆ updateButtonsView

void ChatFormHeader::updateButtonsView ( )
privateslot

Definition at line 201 of file chatformheader.cpp.

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

◆ updateCallButtons()

void ChatFormHeader::updateCallButtons ( bool  online,
bool  audio,
bool  video = false 
)

Definition at line 242 of file chatformheader.cpp.

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

◆ updateExtensionSupport()

void ChatFormHeader::updateExtensionSupport ( ExtensionSet  extensions)

Definition at line 237 of file chatformheader.cpp.

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

◆ updateMuteMicButton()

void ChatFormHeader::updateMuteMicButton ( bool  active,
bool  inputMuted 
)

Definition at line 269 of file chatformheader.cpp.

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

◆ updateMuteVolButton()

void ChatFormHeader::updateMuteVolButton ( bool  active,
bool  outputMuted 
)

Definition at line 281 of file chatformheader.cpp.

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

◆ videoCallTriggered

void ChatFormHeader::videoCallTriggered ( )
signal

◆ volMuteToggle

void ChatFormHeader::volMuteToggle ( )
signal

Member Data Documentation

◆ avatar

MaskablePixmapWidget* ChatFormHeader::avatar
private

Definition at line 105 of file chatformheader.h.

◆ callButton

QPushButton* ChatFormHeader::callButton
private

Definition at line 111 of file chatformheader.h.

◆ callConfirm

std::unique_ptr<CallConfirmWidget> ChatFormHeader::callConfirm
private

Definition at line 121 of file chatformheader.h.

◆ callState

CallButtonState ChatFormHeader::callState
private

Definition at line 116 of file chatformheader.h.

◆ extensionStatus

ExtensionStatus* ChatFormHeader::extensionStatus
private

Definition at line 108 of file chatformheader.h.

◆ headTextLayout

QVBoxLayout* ChatFormHeader::headTextLayout
private

Definition at line 106 of file chatformheader.h.

◆ micButton

QPushButton* ChatFormHeader::micButton
private

Definition at line 114 of file chatformheader.h.

◆ micState

ToolButtonState ChatFormHeader::micState
private

Definition at line 119 of file chatformheader.h.

◆ mode

Mode ChatFormHeader::mode
private

Definition at line 104 of file chatformheader.h.

◆ nameLabel

CroppingLabel* ChatFormHeader::nameLabel
private

Definition at line 109 of file chatformheader.h.

◆ nameLine

QHBoxLayout* ChatFormHeader::nameLine
private

Definition at line 107 of file chatformheader.h.

◆ videoButton

QPushButton* ChatFormHeader::videoButton
private

Definition at line 112 of file chatformheader.h.

◆ videoState

CallButtonState ChatFormHeader::videoState
private

Definition at line 117 of file chatformheader.h.

◆ volButton

QPushButton* ChatFormHeader::volButton
private

Definition at line 113 of file chatformheader.h.

◆ volState

ToolButtonState ChatFormHeader::volState
private

Definition at line 118 of file chatformheader.h.


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