X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fvncview.h;h=0c3a22ea179fa0d584a0903989c99b1bd4ad43d5;hb=cec1e74674ff4e42e82c1333514efe4ce077ae6c;hp=cc2a74619371dd2ab85f5729264c5cf1b8640454;hpb=632fee1dbf90da2ee297424ad46b0a2628f67c04;p=presencevnc diff --git a/src/vncview.h b/src/vncview.h index cc2a746..0c3a22e 100644 --- a/src/vncview.h +++ b/src/vncview.h @@ -30,6 +30,7 @@ class KConfigGroup{}; #include +#include extern "C" { #include @@ -40,14 +41,15 @@ class VncView: public RemoteView Q_OBJECT public: - explicit VncView(QWidget *parent = 0, const KUrl &url = KUrl(), RemoteView::Quality quality = RemoteView::Medium); + explicit VncView(QWidget *parent = 0, const KUrl &url = KUrl(), RemoteView::Quality quality = RemoteView::Medium, int listen_port = 0); ~VncView(); QSize framebufferSize(); QSize sizeHint() const; QSize minimumSizeHint() const; - void startQuitting(); bool isQuitting(); + qreal getZoomFactor() { return m_horizontalFactor;} //assumes fixed aspect ratio + void reloadSettings(); bool start(); bool supportsScaling() const; bool supportsLocalCursor() const; @@ -56,11 +58,11 @@ public: void setViewOnly(bool viewOnly); void showDotCursor(DotCursorState state); - virtual void updateConfiguration(); - public slots: - void enableScaling(bool scale); - void scaleResize(int w, int h); + void setZoomLevel(int level = -1); //'level' doesn't correspond to actual magnification, though mapping is done here + void sendKey(Qt::Key key); + void sendKeySequence(QKeySequence keys); + void startQuitting(); void forceFullRepaint(); protected: @@ -68,6 +70,7 @@ protected: bool event(QEvent *event); void resizeEvent(QResizeEvent *event); bool eventFilter(QObject *obj, QEvent *event); + void inputMethodEvent(QInputMethodEvent *event); private: VncClientThread vncThread; @@ -80,14 +83,16 @@ private: bool m_repaint; bool m_quitFlag; bool m_firstPasswordTry; - bool m_authenticaionCanceled; bool m_dontSendClipboard; qreal m_horizontalFactor; qreal m_verticalFactor; QImage m_frame; bool m_forceLocalCursor; bool force_full_repaint; + int left_zoom, right_zoom; + bool disable_tapping; RemoteView::Quality quality; + int listen_port; void keyEventHandler(QKeyEvent *e); void unpressModifiers();