• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

krdc

Public Slots | Public Member Functions | Protected Member Functions | List of all members
VncView Class Reference

#include <vncview.h>

Inheritance diagram for VncView:
Inheritance graph
[legend]

Public Slots

void scaleResize (int w, int h)
 
- Public Slots inherited from RemoteView
virtual void keyEvent (QKeyEvent *event)
 
virtual void scaleResize (int w, int h)
 
virtual void setGrabAllKeys (bool grabAllKeys)
 
virtual void switchFullscreen (bool on)
 

Public Member Functions

 VncView (QWidget *parent=0, const KUrl &url=KUrl(), KConfigGroup configGroup=KConfigGroup())
 
 ~VncView ()
 
void enableScaling (bool scale)
 
QSize framebufferSize ()
 
HostPreferences * hostPreferences ()
 
bool isQuitting ()
 
QSize minimumSizeHint () const
 
void setViewOnly (bool viewOnly)
 
void showDotCursor (DotCursorState state)
 
QSize sizeHint () const
 
bool start ()
 
void startQuitting ()
 
bool supportsLocalCursor () const
 
bool supportsScaling () const
 
virtual void updateConfiguration ()
 
- Public Member Functions inherited from RemoteView
virtual ~RemoteView ()
 
virtual DotCursorState dotCursorState () const
 
virtual bool grabAllKeys ()
 
virtual QString host ()
 
virtual int port ()
 
virtual bool scaling () const
 
RemoteStatus status ()
 
virtual QPixmap takeScreenshot ()
 
KUrl url ()
 
virtual bool viewOnly ()
 

Protected Member Functions

bool event (QEvent *event)
 
bool eventFilter (QObject *obj, QEvent *event)
 
void paintEvent (QPaintEvent *event)
 
void resizeEvent (QResizeEvent *event)
 
- Protected Member Functions inherited from RemoteView
 RemoteView (QWidget *parent=0)
 
void focusInEvent (QFocusEvent *event)
 
void focusOutEvent (QFocusEvent *event)
 
QCursor localDotCursor () const
 
QString readWalletPassword (bool fromUserNameOnly=false)
 
void saveWalletPassword (const QString &password, bool fromUserNameOnly=false)
 
virtual void setStatus (RemoteStatus s)
 

Additional Inherited Members

- Public Types inherited from RemoteView
enum  DotCursorState { CursorOn, CursorOff, CursorAuto }
 
enum  ErrorCode {
  None = 0, Internal, Connection, Protocol,
  IO, Name, NoServer, ServerBlocked,
  Authentication
}
 
enum  Quality { Unknown, High, Medium, Low }
 
enum  RemoteStatus {
  Connecting = 0, Authenticating = 1, Preparing = 2, Connected = 3,
  Disconnecting = -1, Disconnected = -2
}
 
- Signals inherited from RemoteView
void connected ()
 
void disconnected ()
 
void disconnectedError ()
 
void errorMessage (const QString &title, const QString &message)
 
void framebufferSizeChanged (int w, int h)
 
void mouseStateChanged (int x, int y, int buttonMask)
 
void showingPasswordDialog (bool b)
 
void statusChanged (RemoteView::RemoteStatus s)
 
- Protected Attributes inherited from RemoteView
DotCursorState m_dotCursorState
 
bool m_grabAllKeys
 
QString m_host
 
bool m_keyboardIsGrabbed
 
int m_port
 
bool m_scale
 
RemoteStatus m_status
 
KUrl m_url
 
bool m_viewOnly
 
KWallet::Wallet * m_wallet
 

Detailed Description

Definition at line 42 of file vncview.h.

Constructor & Destructor Documentation

VncView::VncView ( QWidget *  parent = 0,
const KUrl &  url = KUrl(),
KConfigGroup  configGroup = KConfigGroup() 
)
explicit

Definition at line 53 of file vncview.cpp.

VncView::~VncView ( )

Definition at line 85 of file vncview.cpp.

Member Function Documentation

void VncView::enableScaling ( bool  scale)
virtual

Called to enable or disable scaling.

Ignored if supportsScaling() is false. The default implementation does nothing.

Parameters
strue to enable, false to disable.
See also
supportsScaling()
scaling()

Reimplemented from RemoteView.

Definition at line 416 of file vncview.cpp.

bool VncView::event ( QEvent *  event)
protected

Definition at line 491 of file vncview.cpp.

bool VncView::eventFilter ( QObject *  obj,
QEvent *  event 
)
protected

Definition at line 90 of file vncview.cpp.

QSize VncView::framebufferSize ( )
virtual

Returns the resolution of the remote framebuffer.

It should return a null QSize when the size is not known. The backend must also emit a framebufferSizeChanged() when the size of the framebuffer becomes available for the first time or the size changed.

Returns
the remote framebuffer size, a null QSize if unknown

Reimplemented from RemoteView.

Definition at line 106 of file vncview.cpp.

HostPreferences * VncView::hostPreferences ( )
virtual

Returns the current host preferences of this view.

Implements RemoteView.

Definition at line 317 of file vncview.cpp.

bool VncView::isQuitting ( )
virtual

Checks whether the view is currently quitting.

Returns
true if it is quitting
See also
startQuitting()
setStatus()

Reimplemented from RemoteView.

Definition at line 186 of file vncview.cpp.

QSize VncView::minimumSizeHint ( ) const

Definition at line 116 of file vncview.cpp.

void VncView::paintEvent ( QPaintEvent *  event)
protected

Definition at line 442 of file vncview.cpp.

void VncView::resizeEvent ( QResizeEvent *  event)
protected

Definition at line 485 of file vncview.cpp.

void VncView::scaleResize ( int  w,
int  h 
)
slot

Definition at line 121 of file vncview.cpp.

void VncView::setViewOnly ( bool  viewOnly)
virtual

Enables/disables the view-only mode.

Ignored if supportsScaling() is false. The default implementation does nothing.

Parameters
viewOnlytrue to enable, false to disable.
See also
supportsScaling()
viewOnly()

Reimplemented from RemoteView.

Definition at line 397 of file vncview.cpp.

void VncView::showDotCursor ( DotCursorState  state)
virtual

Sets the state of the dot cursor, if supported by the backend.

The default implementation does nothing.

Parameters
statethe new state (CursorOn, CursorOff or CursorAuto)
See also
dotCursorState()
supportsLocalCursor()

Reimplemented from RemoteView.

Definition at line 409 of file vncview.cpp.

QSize VncView::sizeHint ( ) const

Definition at line 111 of file vncview.cpp.

bool VncView::start ( )
virtual

Initialize the view (for example by showing configuration dialogs to the user) and start connecting.

Should not block without running the event loop (so displaying a dialog is ok). When the view starts connecting the application must call setStatus() with the status Connecting.

Returns
true if successful (so far), false otherwise
See also
connected()
disconnected()
disconnectedError()
statusChanged()

Implements RemoteView.

Definition at line 191 of file vncview.cpp.

void VncView::startQuitting ( )
virtual

Initiate the disconnection.

This doesn't need to happen immediately. The call must not block.

See also
isQuitting()

Reimplemented from RemoteView.

Definition at line 153 of file vncview.cpp.

bool VncView::supportsLocalCursor ( ) const
virtual

Checks whether the backend supports the concept of local cursors.

The default implementation returns false.

Returns
true if local cursors are supported/known
See also
DotCursorState
showDotCursor()
dotCursorState()

Reimplemented from RemoteView.

Definition at line 227 of file vncview.cpp.

bool VncView::supportsScaling ( ) const
virtual

Checks whether the backend supports scaling.

The default implementation returns false.

Returns
true if scaling is supported
See also
scaling()

Reimplemented from RemoteView.

Definition at line 222 of file vncview.cpp.

void VncView::updateConfiguration ( )
virtual

Called when the configuration is changed.

The default implementation does nothing.

Reimplemented from RemoteView.

Definition at line 145 of file vncview.cpp.


The documentation for this class was generated from the following files:
  • vncview.h
  • vncview.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:54:04 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

krdc

Skip menu "krdc"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal