4#include <NDEVR/Device.h>
55 QByteArray
desHash(QByteArray challenge, QString passStr);
58 uint04 makeU32(quint8 lowest, quint8 low, quint8 high, quint8 highest);
63 void onServerMessage();
95 static constexpr uint01 s_screen_count = 2;
109 void commit(
const QRegion& region);
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:68
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:64
Vector< 3, fltp08 > size() const
Definition Model.cpp:223
Definition TcpServer.h:14
Represents a timestamp with utilities for manipulation and conversion.
Definition Time.h:54
An element of a vector space. An element of the real coordinate space Rn Basis vector,...
Definition Vector.hpp:62
Definition VncClientWidget.h:24
Buffer< VncScreen > m_screens
Definition VncClientWidget.h:73
virtual TimeSpan updateInterval() const override
Definition VncClientWidget.cpp:57
void readFrameBufferMessage()
Definition VncClientWidget.cpp:899
uint04 makeU32(quint16 l, quint16 h)
Definition VncClientWidget.cpp:669
void sendKeyEvent(bool is_pressed, QKeyEvent *event)
Definition VncClientWidget.cpp:1159
bool m_supports_continuous_updates
Definition VncClientWidget.h:86
void sendMouseEvent(const MouseEvent &event)
Definition VncClientWidget.cpp:573
fltp04 m_jpg_quality
Definition VncClientWidget.h:81
PixelFormat m_pixel_format
Definition VncClientWidget.h:74
~VncDevice()
Definition VncClientWidget.cpp:52
void sendRequestDesktopSize(QSize size, fltp08 scale_factor=1.0)
Definition VncClientWidget.cpp:256
Time m_last_full_refresh_time
Definition VncClientWidget.h:69
Buffer< bool > m_key_down_events
Definition VncClientWidget.h:76
void tearDownTcp()
Definition VncClientWidget.cpp:405
void update() override
Definition VncClientWidget.cpp:110
static quint32 TranslateRfbKey(int key, bool modifier)
Definition VncClientWidget.cpp:689
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)
Definition VncClientWidget.cpp:199
BitFlag m_mouse_button_flag
Definition VncClientWidget.h:77
VncDevice(VncClientWidget *parent)
Definition VncClientWidget.cpp:41
void disconnectFromVncServer()
Definition VncClientWidget.cpp:551
int m_port
Definition VncClientWidget.h:79
void waitToRead(uint04 size) const
Definition VncClientWidget.cpp:470
void sendUpdateFrameBufferRequest(bool force_refresh_all)
Definition VncClientWidget.cpp:239
void sendContinuousUpdateRequest(bool enable)
Definition VncClientWidget.cpp:222
QSize m_frame_size
Definition VncClientWidget.h:68
void requestFullRefresh()
Definition VncClientWidget.cpp:567
bool m_has_sent_frame_request
Definition VncClientWidget.h:82
bool postEvent(QEvent *event)
Definition VncClientWidget.cpp:624
void sendEncodings()
Definition VncClientWidget.cpp:424
QImage m_copy_image
Definition VncClientWidget.h:78
bool m_request_full_refresh
Definition VncClientWidget.h:84
bool m_supports_extended_size
Definition VncClientWidget.h:87
void postKeyEvent(QKeyEvent *event, bool is_down)
Definition VncClientWidget.cpp:629
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)
Definition VncClientWidget.cpp:1129
bool sendCommand(const char *const command, uint04 min_response_size, uint04 retry_count)
Definition VncClientWidget.cpp:636
bool m_is_continuous_mode
Definition VncClientWidget.h:85
VncClientWidget * m_widget
Definition VncClientWidget.h:66
bool isConnectedToServer()
Definition VncClientWidget.cpp:541
bool connectToVncServer()
Definition VncClientWidget.cpp:69
QTcpSocket * m_socket
Definition VncClientWidget.h:67
NDEVRMouseManager m_mouse_manager
Definition VncClientWidget.h:65
uint02 makeU16(quint8 l, quint8 h)
Definition VncClientWidget.cpp:661
String m_password
Definition VncClientWidget.h:71
bool setupVncConnection(const String &password)
Definition VncClientWidget.cpp:298
bool m_request_client_resize
Definition VncClientWidget.h:89
float fltp04
Defines an alias representing a 4 byte floating-point number.
Definition BaseValues.hpp:157
uint8_t uint01
-Defines an alias representing a 1 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:98
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:120
uint16_t uint02
-Defines an alias representing a 2 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:109
double fltp08
Defines an alias representing an 8 byte floating-point number.
Definition BaseValues.hpp:181
Definition VncClientWidget.h:17
uint04 id
Definition VncClientWidget.h:18
QRect rect
Definition VncClientWidget.h:19
uint04 flags
Definition VncClientWidget.h:20