Wavelength
Privacy-focused, cross-platform, and open-source communication application
Loading...
Searching...
No Matches
WavelengthInfo Struct Reference

Structure holding information about a specific wavelength (frequency). More...

#include <wavelength_registry.h>

Collaboration diagram for WavelengthInfo:

Public Attributes

QDateTime created_at = QDateTime::currentDateTime()
 Timestamp when this wavelength information was created or added to the registry locally.
 
QString frequency
 The unique identifier (name) of the wavelength.
 
QString host_id
 The unique client ID of the user hosting the wavelength.
 
int host_port = 0
 The port number the host is listening on.
 
bool is_closing = false
 Flag indicating if the wavelength is currently in the process of being closed.
 
bool is_host = false
 True if the current user is the host of this wavelength.
 
bool is_password_protected = false
 True if the wavelength requires a password to join.
 
QString password
 The password for the wavelength (if protected).
 
QPointer< QWebSocket > socket = nullptr
 QPointer to the WebSocket connection associated with this wavelength. Automatically nullifies if the socket is deleted.
 

Detailed Description

Structure holding information about a specific wavelength (frequency).

Contains details like password protection status, host information, the associated WebSocket connection, and state flags.

Member Data Documentation

◆ created_at

QDateTime WavelengthInfo::created_at = QDateTime::currentDateTime()

Timestamp when this wavelength information was created or added to the registry locally.

◆ frequency

QString WavelengthInfo::frequency

The unique identifier (name) of the wavelength.

◆ host_id

QString WavelengthInfo::host_id

The unique client ID of the user hosting the wavelength.

◆ host_port

int WavelengthInfo::host_port = 0

The port number the host is listening on.

◆ is_closing

bool WavelengthInfo::is_closing = false

Flag indicating if the wavelength is currently in the process of being closed.

◆ is_host

bool WavelengthInfo::is_host = false

True if the current user is the host of this wavelength.

◆ is_password_protected

bool WavelengthInfo::is_password_protected = false

True if the wavelength requires a password to join.

◆ password

QString WavelengthInfo::password

The password for the wavelength (if protected).

◆ socket

QPointer<QWebSocket> WavelengthInfo::socket = nullptr

QPointer to the WebSocket connection associated with this wavelength. Automatically nullifies if the socket is deleted.


The documentation for this struct was generated from the following file: