RunicVTT Open Source Virtual Tabletop for TTRPG using P2P
Loading...
Searching...
No Matches
PendingImage Struct Reference

#include <NetworkManager.h>

Collaboration diagram for PendingImage:

Public Member Functions

bool isComplete () const
 

Public Attributes

msg::ImageOwnerKind kind {}
 
uint64_t id = 0
 
uint64_t boardId = 0
 
std::string name
 
std::optional< msg::MarkerMetamarkerMeta
 
std::optional< msg::BoardMetaboardMeta
 
uint64_t total = 0
 
uint64_t received = 0
 
std::vector< uint8_t > buf
 
bool commitRequested = false
 

Detailed Description

Definition at line 43 of file NetworkManager.h.

Member Function Documentation

◆ isComplete()

bool PendingImage::isComplete ( ) const
inline

Definition at line 60 of file NetworkManager.h.

61 {
62 return total == received && total > 0;
63 }
uint64_t received

Member Data Documentation

◆ boardId

uint64_t PendingImage::boardId = 0

Definition at line 47 of file NetworkManager.h.

◆ boardMeta

std::optional<msg::BoardMeta> PendingImage::boardMeta

Definition at line 52 of file NetworkManager.h.

◆ buf

std::vector<uint8_t> PendingImage::buf

Definition at line 56 of file NetworkManager.h.

◆ commitRequested

bool PendingImage::commitRequested = false

Definition at line 58 of file NetworkManager.h.

◆ id

uint64_t PendingImage::id = 0

Definition at line 46 of file NetworkManager.h.

◆ kind

msg::ImageOwnerKind PendingImage::kind {}

Definition at line 45 of file NetworkManager.h.

45{};

◆ markerMeta

std::optional<msg::MarkerMeta> PendingImage::markerMeta

Definition at line 51 of file NetworkManager.h.

◆ name

std::string PendingImage::name

Definition at line 48 of file NetworkManager.h.

◆ received

uint64_t PendingImage::received = 0

Definition at line 55 of file NetworkManager.h.

◆ total

uint64_t PendingImage::total = 0

Definition at line 54 of file NetworkManager.h.


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