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

This form contains all group invites you received. More...

#include <groupinviteform.h>

Inheritance diagram for GroupInviteForm:
Inheritance graph
Collaboration diagram for GroupInviteForm:
Collaboration graph

Signals

void groupCreate (uint8_t type)
 
void groupInviteAccepted (const GroupInvite &inviteInfo)
 
void groupInvitesSeen ()
 

Public Member Functions

 GroupInviteForm ()
 
 ~GroupInviteForm ()
 
void show (ContentLayout *contentLayout)
 Shows the form. More...
 
bool addGroupInvite (const GroupInvite &inviteInfo)
 Adds group invite. More...
 
bool isShown () const
 Detects that form is shown. More...
 

Protected Member Functions

void showEvent (QShowEvent *event) final
 

Private Member Functions

void retranslateUi ()
 
void deleteInviteWidget (const GroupInvite &inviteInfo)
 Deletes accepted/declined group invite widget. More...
 

Private Attributes

QWidget * headWidget
 
QLabel * headLabel
 
QPushButton * createButton
 
QGroupBox * inviteBox
 
QList< GroupInviteWidget * > invites
 
QScrollArea * scroll
 

Detailed Description

This form contains all group invites you received.

Definition at line 40 of file groupinviteform.h.

Constructor & Destructor Documentation

◆ GroupInviteForm()

GroupInviteForm::GroupInviteForm ( )

Definition at line 48 of file groupinviteform.cpp.

Here is the call graph for this function:

◆ ~GroupInviteForm()

GroupInviteForm::~GroupInviteForm ( )

Definition at line 82 of file groupinviteform.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ addGroupInvite()

bool GroupInviteForm::addGroupInvite ( const GroupInvite inviteInfo)

Adds group invite.

Parameters
inviteInfoObject which contains info about group invitation
Returns
true if notification is needed, false otherwise

Definition at line 117 of file groupinviteform.cpp.

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

◆ deleteInviteWidget()

void GroupInviteForm::deleteInviteWidget ( const GroupInvite inviteInfo)
private

Deletes accepted/declined group invite widget.

Parameters
inviteInfoInvite information of accepted/declined widget

Definition at line 154 of file groupinviteform.cpp.

Here is the caller graph for this function:

◆ groupCreate

void GroupInviteForm::groupCreate ( uint8_t  type)
signal
Here is the caller graph for this function:

◆ groupInviteAccepted

void GroupInviteForm::groupInviteAccepted ( const GroupInvite inviteInfo)
signal
Here is the caller graph for this function:

◆ groupInvitesSeen

void GroupInviteForm::groupInvitesSeen ( )
signal
Here is the caller graph for this function:

◆ isShown()

bool GroupInviteForm::isShown ( ) const

Detects that form is shown.

Returns
True if form is visible

Definition at line 91 of file groupinviteform.cpp.

Here is the caller graph for this function:

◆ retranslateUi()

void GroupInviteForm::retranslateUi ( )
private

Definition at line 165 of file groupinviteform.cpp.

Here is the caller graph for this function:

◆ show()

void GroupInviteForm::show ( ContentLayout contentLayout)

Shows the form.

Parameters
contentLayoutMain layout that contains all components of the form

Definition at line 104 of file groupinviteform.cpp.

Here is the caller graph for this function:

◆ showEvent()

void GroupInviteForm::showEvent ( QShowEvent *  event)
finalprotected

Definition at line 144 of file groupinviteform.cpp.

Member Data Documentation

◆ createButton

QPushButton* GroupInviteForm::createButton
private

Definition at line 66 of file groupinviteform.h.

◆ headLabel

QLabel* GroupInviteForm::headLabel
private

Definition at line 65 of file groupinviteform.h.

◆ headWidget

QWidget* GroupInviteForm::headWidget
private

Definition at line 64 of file groupinviteform.h.

◆ inviteBox

QGroupBox* GroupInviteForm::inviteBox
private

Definition at line 67 of file groupinviteform.h.

◆ invites

QList<GroupInviteWidget*> GroupInviteForm::invites
private

Definition at line 68 of file groupinviteform.h.

◆ scroll

QScrollArea* GroupInviteForm::scroll
private

Definition at line 69 of file groupinviteform.h.


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