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

#include <toxuri.h>

Inheritance diagram for ToxURIDialog:
Inheritance graph
Collaboration diagram for ToxURIDialog:
Collaboration graph

Public Member Functions

 ToxURIDialog (QWidget *parent, Core &_core)
 
QString getRequestMessage ()
 
bool handleToxURI (const QString &toxURI)
 Shows a dialog asking whether or not to add this tox address as a friend. More...
 

Private Member Functions

void setUserId (const QString &userId)
 

Private Attributes

QPlainTextEdit * messageEdit
 
QLabel * friendsLabel
 
QLineEdit * userIdEdit
 
Corecore
 

Detailed Description

Definition at line 31 of file toxuri.h.

Constructor & Destructor Documentation

◆ ToxURIDialog()

ToxURIDialog::ToxURIDialog ( QWidget *  parent,
Core _core 
)
explicit

Definition at line 75 of file toxuri.cpp.

Member Function Documentation

◆ getRequestMessage()

QString ToxURIDialog::getRequestMessage ( )

Definition at line 118 of file toxuri.cpp.

Here is the caller graph for this function:

◆ handleToxURI()

bool ToxURIDialog::handleToxURI ( const QString &  toxURI)

Shows a dialog asking whether or not to add this tox address as a friend.

Note
Will wait until the core is ready first.
Parameters
toxURITox URI to try to add.
Returns
True, if tox URI is correct, false otherwise.

Definition at line 41 of file toxuri.cpp.

Here is the call graph for this function:

◆ setUserId()

void ToxURIDialog::setUserId ( const QString &  userId)
private

Definition at line 69 of file toxuri.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ core

Core& ToxURIDialog::core
private

Definition at line 46 of file toxuri.h.

◆ friendsLabel

QLabel* ToxURIDialog::friendsLabel
private

Definition at line 44 of file toxuri.h.

◆ messageEdit

QPlainTextEdit* ToxURIDialog::messageEdit
private

Definition at line 43 of file toxuri.h.

◆ userIdEdit

QLineEdit* ToxURIDialog::userIdEdit
private

Definition at line 45 of file toxuri.h.


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