1
0
mirror of https://invent.kde.org/network/krfb synced 2024-07-03 00:18:36 +00:00
Commit Graph

919 Commits

Author SHA1 Message Date
George Kiagiadakis
486b16c357 Change the way rfb events are handled so that they are properly integrated with the Qt event mechanism.
Changes include:
- Use a QSocketNotifier on each rfb socket that we know about, so
  that we don't have to poll the sockets using a timer.
- Use a server registration mechanism in RfbServerManager so that
  the manager can update all the servers at once and delete them
  properly before shutting down.
- Send updates to the clients periodically from the server manager
  and start/stop the update timer when clients connect/disconnect.
  This makes cpu usage drop dramatically when krfb is idle listening
  for incoming connections.
- Let RfbServer handle the screen pointer.
- Other minor adjustments (sorry for not making a separate commit)

svn path=/trunk/KDE/kdenetwork/krfb/; revision=1195287
2010-11-10 18:57:20 +00:00
George Kiagiadakis
8126d36f15 Split two event-loop related functions out of the rfbProcessEvents() mechanism.
This is required to be able to do proper event loop integration with Qt.
Idea was taken from vino's libvncserver fork.

svn path=/trunk/KDE/kdenetwork/krfb/; revision=1195286
2010-11-10 18:57:17 +00:00
George Kiagiadakis
78b649f39f Prefer the local rfb/rfb.h header now.
svn path=/trunk/KDE/kdenetwork/krfb/; revision=1195285
2010-11-10 18:57:15 +00:00
George Kiagiadakis
cf0548f348 Fix compilation in c89 mode.
svn path=/trunk/KDE/kdenetwork/krfb/; revision=1195284
2010-11-10 18:57:13 +00:00
George Kiagiadakis
fac983d5a4 Import a fork of libvncserver 0.9.7.
This is currently required to be able to split off the event processing code
in small functions so that it is possible to integrate libvncserver's event
loop code with Qt's event loop properly. This is also what vino does; the whole
event loop integration idea was taken from there.

svn path=/trunk/KDE/kdenetwork/krfb/; revision=1195283
2010-11-10 18:57:07 +00:00
George Kiagiadakis
8ffe4d2ded Fix remote cursor not working. BUG: 207706
svn path=/trunk/KDE/kdenetwork/krfb/; revision=1195282
2010-11-10 18:56:59 +00:00
George Kiagiadakis
5dd01e87b6 Do not require a password in tube connections.
svn path=/trunk/KDE/kdenetwork/krfb/; revision=1195281
2010-11-10 18:56:57 +00:00
George Kiagiadakis
f19f108a4e Fix the socket helper port functions.
The returned port needs conversion from network byte
order to host byte order before it can be used.

svn path=/trunk/KDE/kdenetwork/krfb/; revision=1195280
2010-11-10 18:56:55 +00:00
George Kiagiadakis
4742556c51 Implement telepathy tubes support.
svn path=/trunk/KDE/kdenetwork/krfb/; revision=1195279
2010-11-10 18:56:53 +00:00
George Kiagiadakis
bed6086fe7 Do not free the cursor when freeing a screen.
svn path=/trunk/KDE/kdenetwork/krfb/; revision=1195278
2010-11-10 18:56:50 +00:00
George Kiagiadakis
2c5cbc755e Refactor the whole system for handling servers and clients.
The new design is very similar to the old one, it's just a bit
more clean imho. Known regression is that the invitations server
is no longer updated when the setting to require a password or not
is changed - I will fix that later.

svn path=/trunk/KDE/kdenetwork/krfb/; revision=1195277
2010-11-10 18:56:47 +00:00
George Kiagiadakis
fb4b28b250 Refactor the events handling code.
svn path=/trunk/KDE/kdenetwork/krfb/; revision=1195267
2010-11-10 17:49:01 +00:00
George Kiagiadakis
cbb9102445 Make the about dialog non-modal so that it doesn't freeze the image on the remote side.
svn path=/trunk/KDE/kdenetwork/krfb/; revision=1195266
2010-11-10 17:48:59 +00:00
George Kiagiadakis
897734b4d6 Remove more unused stuff from the TrayIcon.
svn path=/trunk/KDE/kdenetwork/krfb/; revision=1195265
2010-11-10 17:48:57 +00:00
George Kiagiadakis
83ac8619ed Remove the unused action to show the manage invitations dialog from the tray icon.
svn path=/trunk/KDE/kdenetwork/krfb/; revision=1195264
2010-11-10 17:48:54 +00:00
Pavel Heimlich
0230d66584 need strings.h for bzero. Fixes build with Sun Studio
svn path=/trunk/KDE/kdenetwork/krfb/; revision=1190402
2010-10-27 14:42:10 +00:00
George Goldberg
c74886dfe7 Apply KDELibs code style with astyle to clear up the mess that was there before.
svn path=/trunk/KDE/kdenetwork/krfb/; revision=1189254
2010-10-24 11:21:53 +00:00
George Goldberg
ff019b99cd Reorganise krfb codebase to make it easier to work with.
svn path=/trunk/KDE/kdenetwork/krfb/; revision=1189252
2010-10-24 11:21:41 +00:00
George Goldberg
4f78b51022 Fix all the #includes to not be complete chaos.
svn path=/trunk/KDE/kdenetwork/krfb/; revision=1189037
2010-10-23 19:30:42 +00:00
George Goldberg
29d9b92b06 Make a wrapper for rfb.h to workaround the problems with TRUE and FALSE being redefined.
Fixes the last of gkiagia's review comments.

svn path=/trunk/KDE/kdenetwork/krfb/; revision=1189036
2010-10-23 19:30:38 +00:00
George Goldberg
87f1f85913 Remove unused KRfbServerPrivate class.
Fixes one of gkiagia's review comments.

svn path=/trunk/KDE/kdenetwork/krfb/; revision=1189035
2010-10-23 19:30:36 +00:00
George Goldberg
cc1f23f23e checkPassword() is not needed by the AbstractConnectionController, so move it to KRfbConnectionController and make it static.
Fixes one of gkiagia's review comments.

svn path=/trunk/KDE/kdenetwork/krfb/; revision=1189034
2010-10-23 19:30:35 +00:00
George Goldberg
a8da333e3b Make RFB server and COnnectionCOntroller classes abstract and make one implementation of them for the standard rfb use case.
svn path=/trunk/KDE/kdenetwork/krfb/; revision=1189033
2010-10-23 19:30:32 +00:00
George Goldberg
47e2db27de KrfbServer is now no longer a singleton.
This means that theoretically we can have more than one actual rfb server running at once.
In practice, some work is still needed like making KrfbServer and ConnectionController into abstract base classes
that the normal rfb server and the tubes rfb server can inherit from.
The configuration also needs fixing to apply to individual servers, not all of them.

svn path=/trunk/KDE/kdenetwork/krfb/; revision=1189032
2010-10-23 19:30:29 +00:00
Laurent Montel
893afe07eb Install as programs
svn path=/trunk/KDE/kdenetwork/krfb/; revision=1187755
2010-10-20 11:41:29 +00:00
David Faure
b0c10700e8 Make executable the Type=Application .desktop files we install,
so that they can be used even from a KDE running in another prefix (http://markmail.org/message/4p3krovtnzwx35zd)

svn path=/trunk/KDE/kdenetwork/krfb/; revision=1182577
2010-10-05 00:54:04 +00:00
George Goldberg
410567156d Fix out-of-kdenetwork build to actually work.
svn path=/trunk/KDE/kdenetwork/krfb/; revision=1180685
2010-09-28 15:42:17 +00:00
Script Kiddy
739c655ec7 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdenetwork/krfb/; revision=1180160
2010-09-27 08:20:45 +00:00
Script Kiddy
7fa12d44dd SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdenetwork/krfb/; revision=1174792
2010-09-13 08:29:34 +00:00
Albert Astals Cid
62df847d4f do not rely on extract-messages.sh doing the work for us
svn path=/trunk/KDE/kdenetwork/krfb/; revision=1166377
2010-08-21 16:54:07 +00:00
Script Kiddy
e16b1c0007 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdenetwork/krfb/; revision=1166284
2010-08-21 12:09:56 +00:00
George Goldberg
51ffeee4ce Fix build on Solaris due to missing include.
Thanks to tropikhajma for the patch.

BUG:243863

svn path=/trunk/KDE/kdenetwork/krfb/; revision=1164726
2010-08-17 14:51:51 +00:00
George Goldberg
ebbaa32be7 Fix shift modifier key not working when pressed on remote keyboard.
Patch by Dariusz Mikulski.

BUG:182073

svn path=/trunk/KDE/kdenetwork/krfb/; revision=1164722
2010-08-17 14:37:40 +00:00
Script Kiddy
f4e9a6446a SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdenetwork/krfb/; revision=1150501
2010-07-16 06:36:00 +00:00
Script Kiddy
c6a6483e08 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdenetwork/krfb/; revision=1144031
2010-06-29 10:28:32 +00:00
Urs Wolfer
ba4db500fa optimizegraphics: Losslessly optimized PNG and SVGZ files with "optipng -o5" and "advdef -z -4".
Reduced disk space: 6972KB (6MB)

svn path=/trunk/KDE/kdenetwork/doc/krfb/; revision=1140837
2010-06-21 16:09:35 +00:00
Script Kiddy
4f27519f9a SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdenetwork/krfb/; revision=1131897
2010-05-29 06:55:11 +00:00
Script Kiddy
bda8f4435d SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdenetwork/krfb/; revision=1121395
2010-05-01 06:36:53 +00:00
Burkhard Lück
3647d0d92d typo fix
svn path=/trunk/KDE/kdenetwork/doc/krfb/; revision=1120699
2010-04-29 18:07:52 +00:00
Script Kiddy
a0c6b3c630 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdenetwork/krfb/; revision=1099171
2010-03-05 02:03:40 +00:00
Script Kiddy
199cb9388a SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdenetwork/krfb/; revision=1097849
2010-03-02 09:28:28 +00:00
Script Kiddy
b59d693625 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdenetwork/krfb/; revision=1088676
2010-02-11 11:03:48 +00:00
Burkhard Lück
cb0a342417 doc update
svn path=/trunk/KDE/kdenetwork/doc/krfb/; revision=1088393
2010-02-10 17:53:36 +00:00
Script Kiddy
64c8641b69 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdenetwork/krfb/; revision=1088277
2010-02-10 13:09:37 +00:00
Script Kiddy
edd0454c1e SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdenetwork/krfb/; revision=1085573
2010-02-05 13:34:31 +00:00
Script Kiddy
f43432f309 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdenetwork/krfb/; revision=1070324
2010-01-05 10:44:52 +00:00
Script Kiddy
7a43a5813a SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdenetwork/krfb/; revision=1066904
2009-12-28 10:28:59 +00:00
Script Kiddy
6ef5d8e1a8 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdenetwork/krfb/; revision=1066529
2009-12-27 10:22:17 +00:00
Script Kiddy
c9091ee2bb SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdenetwork/krfb/; revision=1065983
2009-12-25 09:48:59 +00:00
Script Kiddy
c52b0f31b5 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdenetwork/krfb/; revision=1065459
2009-12-23 11:06:37 +00:00