2#include "VNCInterface/Headers/VncDefines.h"
4#include <NDEVR/Device.h>
55 QByteArray
desHash(QByteArray challenge, QString passStr);
63 void onServerMessage();
95 static constexpr uint01 s_screen_count = 2;
120 QImage m_screen_buffer[s_screen_count];
121 uint01 m_screen_index = 0;
A bitset that stores 8 bits (elements with only two possible values: 0 or 1, true or false,...
Definition BitFlag.hpp:55
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:56
A root class which describes some physical object, such as a Motor, Sensor, or Connection....
Definition Device.h:52
A class which describes a user key press.
Definition Event.h:49
Vector< 3, fltp08 > size() const
The core String class for the NDEVR API.
Definition String.h:69
A TcpServer allows the software to recieve socket connections from external sources.
Definition TcpServer.h:17
Represents a timestamp with utilities for manipulation and conversion.
Definition Time.h:54
Stores a time span, or difference between two times, with an optional start time.
Definition TimeSpan.h:46
A fixed-size array with better performance compared to dynamic containers.
Definition Vector.hpp:60
Definition VncClientWidget.h:24
Buffer< VncScreen > m_screens
Definition VncClientWidget.h:73
void readFrameBufferMessage()
uint04 makeU32(quint16 l, quint16 h)
void sendKeyEvent(bool is_pressed, QKeyEvent *event)
bool m_supports_continuous_updates
Definition VncClientWidget.h:86
void sendMouseEvent(const MouseEvent &event)
fltp04 m_jpg_quality
Definition VncClientWidget.h:81
PixelFormat m_pixel_format
Definition VncClientWidget.h:74
void sendRequestDesktopSize(QSize size, fltp08 scale_factor=1.0)
Time m_last_full_refresh_time
Definition VncClientWidget.h:69
Buffer< bool > m_key_down_events
Definition VncClientWidget.h:76
String m_connection
Definition VncClientWidget.h:72
bool m_is_ready
Definition VncClientWidget.h:90
Buffer< KeyEvent > m_key_events
Definition VncClientWidget.h:75
QByteArray desHash(QByteArray challenge, QString passStr)
BitFlag m_mouse_button_flag
Definition VncClientWidget.h:77
VncDevice(VncClientWidget *parent)
void disconnectFromVncServer()
int m_port
Definition VncClientWidget.h:79
uint04 makeU32(quint8 lowest, quint8 low, quint8 high, quint8 highest)
void waitToRead(uint04 size) const
void sendUpdateFrameBufferRequest(bool force_refresh_all)
void sendContinuousUpdateRequest(bool enable)
QSize m_frame_size
Definition VncClientWidget.h:68
void requestFullRefresh()
bool m_has_sent_frame_request
Definition VncClientWidget.h:82
bool postEvent(QEvent *event)
QImage m_copy_image
Definition VncClientWidget.h:78
bool m_request_full_refresh
Definition VncClientWidget.h:84
static quint32 TranslateRfbKey(int key, bool modifier)
bool m_supports_extended_size
Definition VncClientWidget.h:87
void postKeyEvent(QKeyEvent *event, bool is_down)
bool m_setup_connection
Definition VncClientWidget.h:83
bool m_request_disconnect
Definition VncClientWidget.h:88
Time m_last_refresh_time
Definition VncClientWidget.h:70
void setFrameBufferSize(const QSize &size)
bool sendCommand(const char *const command, uint04 min_response_size, uint04 retry_count)
bool m_is_continuous_mode
Definition VncClientWidget.h:85
VncClientWidget * m_widget
Definition VncClientWidget.h:66
bool isConnectedToServer()
void sendKeyEvent(bool is_pressed, const KeyEvent &event)
bool connectToVncServer()
QTcpSocket * m_socket
Definition VncClientWidget.h:67
NDEVRMouseManager m_mouse_manager
Definition VncClientWidget.h:65
uint02 makeU16(quint8 l, quint8 h)
String m_password
Definition VncClientWidget.h:71
bool setupVncConnection(const String &password)
bool m_request_client_resize
Definition VncClientWidget.h:89
bool connectToVncServer(const String &ip, const String &password, int port=5900)
virtual TimeSpan updateInterval() const override
float fltp04
Defines an alias representing a 4 byte floating-point number Bit layout is as follows: -Sign: 1 bit a...
Definition BaseValues.hpp:127
uint8_t uint01
-Defines an alias representing a 1 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:80
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:96
uint16_t uint02
-Defines an alias representing a 2 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:88
double fltp08
Defines an alias representing an 8 byte floating-point number.
Definition BaseValues.hpp:149
Definition VncClientWidget.h:17
uint04 id
Definition VncClientWidget.h:18
QRect rect
Definition VncClientWidget.h:19
uint04 flags
Definition VncClientWidget.h:20