diff options
author | Kang Lin <kl222@126.com> | 2024-07-30 12:53:52 +0800 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2024-08-30 12:24:17 +0200 |
commit | 1b0387a36cf5f22a34b955d9c3f7ff0860e7467c (patch) | |
tree | c9bd6d1faa6bec8bd9b1fb6e4315de7489ca61d9 /tests/perf/decperf.cxx | |
parent | 9df4f39c77aa66da992c7632d4ad5847e63d9f16 (diff) | |
download | tigervnc-1b0387a36cf5f22a34b955d9c3f7ff0860e7467c.tar.gz tigervnc-1b0387a36cf5f22a34b955d9c3f7ff0860e7467c.zip |
Move getUserPasswd()/showMsgBox() to CConnection
Problems with the original code: A process can only establish one connection.
After modification, multiple connections can be supported.
Diffstat (limited to 'tests/perf/decperf.cxx')
-rw-r--r-- | tests/perf/decperf.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/perf/decperf.cxx b/tests/perf/decperf.cxx index ef53a686..fb2390be 100644 --- a/tests/perf/decperf.cxx +++ b/tests/perf/decperf.cxx @@ -75,6 +75,8 @@ public: void setColourMapEntries(int, int, uint16_t*) override; void bell() override; void serverCutText(const char*) override; + virtual void getUserPasswd(bool secure, std::string *user, std::string *password) override; + virtual bool showMsgBox(rfb::MsgBoxFlags flags, const char *title, const char *text) override; public: double cpuTime; @@ -82,6 +84,7 @@ public: protected: rdr::FileInStream *in; DummyOutStream *out; + }; DummyOutStream::DummyOutStream() @@ -174,6 +177,15 @@ void CConn::serverCutText(const char*) { } +void CConn::getUserPasswd(bool, std::string *, std::string *) +{ +} + +bool CConn::showMsgBox(rfb::MsgBoxFlags, const char *, const char *) +{ + return true; +} + struct stats { double decodeTime; |