Diffstat (limited to 'noncore/comm/keypebble/krfbcanvas.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/comm/keypebble/krfbcanvas.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/noncore/comm/keypebble/krfbcanvas.cpp b/noncore/comm/keypebble/krfbcanvas.cpp index bc71c90..75cba68 100644 --- a/noncore/comm/keypebble/krfbcanvas.cpp +++ b/noncore/comm/keypebble/krfbcanvas.cpp | |||
@@ -1,64 +1,55 @@ | |||
1 | #include "krfbconnection.h" | 1 | #include "krfbconnection.h" |
2 | #include "krfbcanvas.h" | 2 | #include "krfbcanvas.h" |
3 | #include "krfbserver.h" | ||
4 | #include "krfbbuffer.h" | 3 | #include "krfbbuffer.h" |
5 | 4 | ||
6 | #include <qpe/config.h> | ||
7 | #include <qpe/qpeapplication.h> | 5 | #include <qpe/qpeapplication.h> |
8 | 6 | ||
9 | #include <qapplication.h> | ||
10 | #include <qclipboard.h> | 7 | #include <qclipboard.h> |
11 | #include <qaction.h> | ||
12 | #include <qpixmap.h> | ||
13 | #include <qpoint.h> | ||
14 | #include <qapplication.h> | ||
15 | #include <qmainwindow.h> | ||
16 | #include <qiconset.h> | ||
17 | 8 | ||
18 | KRFBCanvas::KRFBCanvas( QWidget *parent, const char *name ) | 9 | KRFBCanvas::KRFBCanvas( QWidget *parent, const char *name ) |
19 | : QScrollView( parent, name ) | 10 | : QScrollView( parent, name ) |
20 | { | 11 | { |
21 | connection_ = new KRFBConnection(); | 12 | connection_ = new KRFBConnection(); |
22 | connect( connection_, SIGNAL( loggedIn() ), | 13 | connect( connection_, SIGNAL( loggedIn() ), |
23 | this, SLOT( loggedIn() ) ); | 14 | this, SLOT( loggedIn() ) ); |
24 | 15 | ||
25 | loggedIn_ = false; | 16 | loggedIn_ = false; |
26 | 17 | ||
27 | //QPEApplication::setStylusOperation(viewport(), QPEApplication::RightOnHold); | 18 | //QPEApplication::setStylusOperation(viewport(), QPEApplication::RightOnHold); |
28 | 19 | ||
29 | viewport()->setFocusPolicy( QWidget::StrongFocus ); | 20 | viewport()->setFocusPolicy( QWidget::StrongFocus ); |
30 | viewport()->setFocus(); | 21 | viewport()->setFocus(); |
31 | 22 | ||
32 | nextRightClick=0; | 23 | nextRightClick=0; |
33 | nextDoubleClick=0; | 24 | nextDoubleClick=0; |
34 | } | 25 | } |
35 | 26 | ||
36 | KRFBCanvas::~KRFBCanvas() | 27 | KRFBCanvas::~KRFBCanvas() |
37 | { | 28 | { |
38 | } | 29 | } |
39 | 30 | ||
40 | 31 | ||
41 | void KRFBCanvas::openConnection(KRFBServer server) | 32 | void KRFBCanvas::openConnection(KRFBServer server) |
42 | { | 33 | { |
43 | 34 | ||
44 | 35 | ||
45 | QCString host = server.hostname.latin1(); | 36 | QCString host = server.hostname.latin1(); |
46 | password=server.password; | 37 | password=server.password; |
47 | connection_->connectTo( server); | 38 | connection_->connectTo( server); |
48 | } | 39 | } |
49 | 40 | ||
50 | 41 | ||
51 | void KRFBCanvas::openURL( const QUrl &url ) | 42 | void KRFBCanvas::openURL( const QUrl &url ) |
52 | { | 43 | { |
53 | if ( loggedIn_ ) { | 44 | if ( loggedIn_ ) { |
54 | qWarning( "openURL invoked when logged in\n" ); | 45 | qWarning( "openURL invoked when logged in\n" ); |
55 | return; | 46 | return; |
56 | } | 47 | } |
57 | 48 | ||
58 | QCString host = url.host().latin1(); | 49 | QCString host = url.host().latin1(); |
59 | int display = url.port(); | 50 | int display = url.port(); |
60 | 51 | ||
61 | // connection_->connectTo( host, display ); | 52 | // connection_->connectTo( host, display ); |
62 | } | 53 | } |
63 | 54 | ||
64 | void KRFBCanvas::closeConnection() | 55 | void KRFBCanvas::closeConnection() |