X-Git-Url: http://git.maemo.org/git/?p=presencevnc;a=blobdiff_plain;f=src%2Fvncview.h;h=82de5931899bb0a375237341f6465d0f1dc38a37;hp=e87e84ea0685475ef0a49df81f63c07e3b72db13;hb=41bbfc24088b49a15ee31a810798d408de11dfc1;hpb=1f5865a0b89e740646d907488aa389ea2a25b6cc diff --git a/src/vncview.h b/src/vncview.h index e87e84e..82de593 100644 --- a/src/vncview.h +++ b/src/vncview.h @@ -27,7 +27,7 @@ #include "remoteview.h" #include "vncclientthread.h" -class KConfigGroup{}; +class KConfigGroup {}; #include @@ -43,23 +43,23 @@ public: explicit VncView(QWidget *parent = 0, const KUrl &url = KUrl(), RemoteView::Quality quality = RemoteView::Medium, int listen_port = 0); ~VncView(); - QSize framebufferSize(); + QSize framebufferSize() const; QSize sizeHint() const; QSize minimumSizeHint() const; - bool isQuitting(); - qreal zoomFactor() { return m_horizontalFactor;} //assumes fixed aspect ratio + bool isQuitting() const; + qreal zoomFactor() const { return m_horizontalFactor;} //assumes fixed aspect ratio void reloadSettings(); bool start(); bool supportsScaling() const; bool supportsLocalCursor() const; - + void setQuality(int q); void setViewOnly(bool viewOnly); void showDotCursor(DotCursorState state); void useFastTransformations(bool enabled); - QPoint cursorPosition() { return QPoint(cursor_x, cursor_y); } + QPoint cursorPosition() const { return QPoint(cursor_x, cursor_y); } void setDisplayOff(bool off) { display_off = off; } - + public slots: void setZoomLevel(int level = -1); //'level' doesn't correspond to actual magnification, though mapping is done here void sendKey(Qt::Key key); @@ -98,7 +98,7 @@ private: void keyEventHandler(QKeyEvent *e); void unpressModifiers(); void wheelEventHandler(QWheelEvent *event); - + private slots: void mouseEventHandler(QMouseEvent *event = 0);