Changeset View
Changeset View
Standalone View
Standalone View
vnc/vncclientthread.h
Show First 20 Lines • Show All 105 Lines • ▼ Show 20 Line(s) | 95 | public: | |||
---|---|---|---|---|---|
106 | const QImage image(int x = 0, int y = 0, int w = 0, int h = 0); | 106 | const QImage image(int x = 0, int y = 0, int w = 0, int h = 0); | ||
107 | void setImage(const QImage &img); | 107 | void setImage(const QImage &img); | ||
108 | void emitUpdated(int x, int y, int w, int h); | 108 | void emitUpdated(int x, int y, int w, int h); | ||
109 | void emitGotCut(const QString &text); | 109 | void emitGotCut(const QString &text); | ||
110 | void stop(); | 110 | void stop(); | ||
111 | void setHost(const QString &host); | 111 | void setHost(const QString &host); | ||
112 | void setPort(int port); | 112 | void setPort(int port); | ||
113 | void setQuality(RemoteView::Quality quality); | 113 | void setQuality(RemoteView::Quality quality); | ||
114 | void setDevicePixelRatio(qreal dpr); | ||||
114 | void setPassword(const QString &password) { | 115 | void setPassword(const QString &password) { | ||
115 | m_password = password; | 116 | m_password = password; | ||
116 | } | 117 | } | ||
117 | const QString password() const { | 118 | const QString password() const { | ||
118 | return m_password; | 119 | return m_password; | ||
119 | } | 120 | } | ||
120 | void setUsername(const QString &username) { | 121 | void setUsername(const QString &username) { | ||
121 | m_username = username; | 122 | m_username = username; | ||
▲ Show 20 Lines • Show All 53 Lines • ▼ Show 20 Line(s) | 154 | private: | |||
175 | QImage m_image; | 176 | QImage m_image; | ||
176 | rfbClient *cl; | 177 | rfbClient *cl; | ||
177 | QString m_host; | 178 | QString m_host; | ||
178 | QString m_password; | 179 | QString m_password; | ||
179 | QString m_username; | 180 | QString m_username; | ||
180 | int m_port; | 181 | int m_port; | ||
181 | QMutex mutex; | 182 | QMutex mutex; | ||
182 | RemoteView::Quality m_quality; | 183 | RemoteView::Quality m_quality; | ||
184 | qreal m_devicePixelRatio; | ||||
183 | ColorDepth m_colorDepth; | 185 | ColorDepth m_colorDepth; | ||
184 | QQueue<ClientEvent* > m_eventQueue; | 186 | QQueue<ClientEvent* > m_eventQueue; | ||
185 | //color table for 8bit indexed colors | 187 | //color table for 8bit indexed colors | ||
186 | QVector<QRgb> m_colorTable; | 188 | QVector<QRgb> m_colorTable; | ||
187 | QString outputErrorMessageString; | 189 | QString outputErrorMessageString; | ||
188 | 190 | | |||
189 | volatile bool m_stopped; | 191 | volatile bool m_stopped; | ||
190 | volatile bool m_passwordError; | 192 | volatile bool m_passwordError; | ||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |