qTox
Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
|
#include <icoreextpacket.h>
Public Member Functions | |
ICoreExtPacket ()=default | |
virtual | ~ICoreExtPacket () |
ICoreExtPacket (const ICoreExtPacket &)=default | |
ICoreExtPacket & | operator= (const ICoreExtPacket &)=default |
ICoreExtPacket (ICoreExtPacket &&)=default | |
ICoreExtPacket & | operator= (ICoreExtPacket &&)=default |
virtual uint64_t | addExtendedMessage (QString message)=0 |
Adds message to packet. More... | |
virtual bool | send ()=0 |
Consumes the packet constructed with PacketBuilder packet and sends it to toxext. More... | |
Abstraction around the toxext packet. The toxext flow is to allow several extensions to tack onto the same packet before sending it to avoid needing the toxext overhead for every single extension. This abstraction models a toxext packet list.
Intent is to retrieve a ICoreExtPacket from an ICoreExtPacketAllocator, append all relevant extension data, and then finally send the packet. After sending the packet is no longer guaranteed to be valid.
Definition at line 36 of file icoreextpacket.h.
|
default |
|
virtualdefault |
|
default |
|
default |
|
pure virtual |
Adds message to packet.
Implemented in CoreExt::Packet.
|
default |
|
default |
|
pure virtual |
Consumes the packet constructed with PacketBuilder packet and sends it to toxext.
Implemented in CoreExt::Packet.