23 Commits

Author SHA1 Message Date
George Goldberg
c708cfbc16 Change -Ask before accepting uninvited connections- to just -Ask before accepting connections- and make it behave as expceted.
This is because we can't know until after the connection has been accepted whether it was invited or not, so the old code used the broken method of seeing if there were 0 or more invitations to tell.

BUG: 188676

svn path=/trunk/KDE/kdenetwork/krfb/; revision=1024354
2009-09-16 12:25:42 +00:00
George Goldberg
70c18c5c2f When we change the global can-control-keyboard-and-mouse property we should only apply this change to connections where the remote was initially permitted to control the keyboard and mouse.
Othwise we should just leave control disabled whatever happens.
This makes krfb err on the side of caution, so it is now much harder for the user
to accidentally give control of their desktop to someone they didn't want to give it to.

BUG:166447

svn path=/trunk/KDE/kdenetwork/krfb/; revision=1024346
2009-09-16 12:13:48 +00:00
George Goldberg
327070588c Set the control enabled state for new connections correctly when they are launched.
Still need to disallow connection becoming controllable if the prefernces are changed after they are launched as not controllable.

CCBUG: 166447

svn path=/trunk/KDE/kdenetwork/krfb/; revision=1024345
2009-09-16 12:13:43 +00:00
George Goldberg
90e352fb8f When a new connection comes in, only allow the option of letting the remote control keyboard and mouse if it is allowed in the krfb configuration.
CCBUG: 166447

svn path=/trunk/KDE/kdenetwork/krfb/; revision=1024344
2009-09-16 12:13:38 +00:00
George Goldberg
3c60d88afb Display notifications as popups. Also correct the unexpected connection notification name in the source.
BUG: 207565

svn path=/trunk/KDE/kdenetwork/krfb/; revision=1024312
2009-09-16 11:14:58 +00:00
George Goldberg
238e12a35a Set the clientGoneHook correctly for all cases where the connection is at least partially accepted.
CCBUG:207499

svn path=/trunk/KDE/kdenetwork/krfb/; revision=1024039
2009-09-15 20:57:51 +00:00
George Goldberg
cfb358a62f When the remote session is established after asking for confirmation locally, don't forget to emit the signal that the connection is established.
CCBUG:207499

svn path=/trunk/KDE/kdenetwork/krfb/; revision=1024038
2009-09-15 20:57:48 +00:00
Andrew Coles
04e5768db5 Proof-reading.
svn path=/trunk/KDE/kdenetwork/krfb/; revision=936908
2009-03-08 16:27:30 +00:00
Albert Astals Cid
a6f727d990 microoptimization
const & in foreach

svn path=/trunk/KDE/kdenetwork/krfb/; revision=772847
2008-02-09 15:56:10 +00:00
Urs Wolfer
24edd4302d Relicense GPLv2 only code to GPLv2+.
All these files have been added to SVN by Alessandro Praduroux. He agreed on this change.

CCMAIL: pradu@pradu.it

svn path=/trunk/KDE/kdenetwork/krfb/; revision=734376
2007-11-08 18:50:58 +00:00
Andreas Pakulat
f7b1527fb8 Fix includes
svn path=/trunk/KDE/kdenetwork/krfb/; revision=721980
2007-10-06 11:40:58 +00:00
Laurent Montel
9a8d94d26b Adapt to new KWarning/kFatal/kDebug api
svn path=/trunk/KDE/kdenetwork/krfb/; revision=695881
2007-08-03 07:19:24 +00:00
Alessandro Praduroux
c5a3a89721 - email invitation now working
- determine the peer address when we get a new connection
- use the configured port from kconfig insteand of the fixed :5900 value in 
  personal invitation dialog


svn path=/trunk/KDE/kdenetwork/krfb/; revision=662656
2007-05-08 20:37:36 +00:00
Alessandro Praduroux
6fd05b3a2a X11 framebuffer implementation based on XDamage and XShm completed.
Still has some weirdness when updating large portions of the screen 

svn path=/trunk/KDE/kdenetwork/krfb/; revision=654248
2007-04-15 15:53:18 +00:00
Alessandro Praduroux
47c089f937 Preliminary optional support for XDamage, checked both at compile and run time.
Uses less cpu than Qt approach, but visually sucks. I suspect there are too many updates sent to the client, I need to group the rects and create a bigger one when sending the event to the client. 

svn path=/trunk/KDE/kdenetwork/krfb/; revision=653073
2007-04-12 16:12:37 +00:00
Alessandro Praduroux
a7a7633438 remove unused files, ebn--
svn path=/trunk/KDE/kdenetwork/krfb/; revision=652659
2007-04-11 17:32:22 +00:00
Alessandro Praduroux
0bc68de645 correct handling of authentication and remote desktop control
svn path=/trunk/KDE/kdenetwork/krfb/; revision=652375
2007-04-10 20:40:44 +00:00
Alessandro Praduroux
67cac2140a use KConfig XT
svn path=/trunk/KDE/kdenetwork/krfb/; revision=651410
2007-04-07 16:16:51 +00:00
Alessandro Praduroux
cb1280f2b7 libvncserver wants to handle the tcp connection itself, so drop QTcpServer & friends
svn path=/trunk/KDE/kdenetwork/krfb/; revision=651193
2007-04-06 21:45:19 +00:00
Alessandro Praduroux
379d4d2fc0 When code starts to become too complex, add some new classes...
- FrameBuffer to encapsulate screen buffer and updates
- handle events
- avoid a timer for the rfb event loop, just use a real loop and qApp->processEvents()

svn path=/trunk/KDE/kdenetwork/krfb/; revision=650928
2007-04-05 20:21:15 +00:00
Alessandro Praduroux
e21768e2f6 why use a separate event loop when we have Qt one?
svn path=/trunk/KDE/kdenetwork/krfb/; revision=650878
2007-04-05 17:16:17 +00:00
Alessandro Praduroux
f048313d43 using QImage as framebuffer instead of XImage, but it's slow as hell
svn path=/trunk/KDE/kdenetwork/krfb/; revision=650595
2007-04-04 22:15:08 +00:00
Alessandro Praduroux
94d6110dcd - added single connection controller in separate thread
- added hooks to manage vnc events
- moved events out of rfbcontroller.cpp/.h into their own source file


svn path=/trunk/KDE/kdenetwork/krfb/; revision=650434
2007-04-04 14:57:27 +00:00