• 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
NxView Class Reference

#include <nxview.h>

Inheritance diagram for NxView:
Inheritance graph
[legend]

Public Slots

void connectionClosed ()
 
void connectionOpened ()
 
void handleAtCapacity ()
 
void handleNewSession ()
 
void handleNoSessions ()
 
void handleProgress (int id, QString msg)
 
void handleResumeSession (QString id)
 
void handleSuspendedSessions (QList< nxcl::NXResumeData > sessions)
 
void hasXid (int xid)
 
void switchFullscreen (bool on)
 
- Public Slots inherited from RemoteView
virtual void enableScaling (bool scale)
 
virtual void keyEvent (QKeyEvent *event)
 
virtual void scaleResize (int w, int h)
 
virtual void setViewOnly (bool viewOnly)
 
virtual void switchFullscreen (bool on)
 

Public Member Functions

 NxView (QWidget *parent=0, const KUrl &url=KUrl(), KConfigGroup configGroup=KConfigGroup())
 
virtual ~NxView ()
 
virtual QSize framebufferSize ()
 
HostPreferences * hostPreferences ()
 
virtual bool isQuitting ()
 
virtual void setGrabAllKeys (bool grabAllKeys)
 
QSize sizeHint () const
 
virtual bool start ()
 
virtual void startQuitting ()
 
- 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
 
virtual void showDotCursor (DotCursorState state)
 
RemoteStatus status ()
 
virtual bool supportsLocalCursor () const
 
virtual bool supportsScaling () const
 
virtual QPixmap takeScreenshot ()
 
virtual void updateConfiguration ()
 
KUrl url ()
 
virtual bool viewOnly ()
 

Protected Member Functions

bool eventFilter (QObject *obj, QEvent *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 37 of file nxview.h.

Constructor & Destructor Documentation

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

Definition at line 36 of file nxview.cpp.

NxView::~NxView ( )
virtual

Definition at line 67 of file nxview.cpp.

Member Function Documentation

void NxView::connectionClosed ( )
slot

Definition at line 271 of file nxview.cpp.

void NxView::connectionOpened ( )
slot

Definition at line 257 of file nxview.cpp.

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

Definition at line 73 of file nxview.cpp.

QSize NxView::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 171 of file nxview.cpp.

void NxView::handleAtCapacity ( )
slot

Definition at line 239 of file nxview.cpp.

void NxView::handleNewSession ( )
slot

Definition at line 244 of file nxview.cpp.

void NxView::handleNoSessions ( )
slot

Definition at line 233 of file nxview.cpp.

void NxView::handleProgress ( int  id,
QString  msg 
)
slot

Definition at line 203 of file nxview.cpp.

void NxView::handleResumeSession ( QString  id)
slot

Definition at line 250 of file nxview.cpp.

void NxView::handleSuspendedSessions ( QList< nxcl::NXResumeData >  sessions)
slot

Definition at line 224 of file nxview.cpp.

void NxView::hasXid ( int  xid)
slot

Definition at line 198 of file nxview.cpp.

HostPreferences * NxView::hostPreferences ( )
virtual

Returns the current host preferences of this view.

Implements RemoteView.

Definition at line 166 of file nxview.cpp.

bool NxView::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 106 of file nxview.cpp.

void NxView::setGrabAllKeys ( bool  grabAllKeys)
virtual

Enables/disables grabbing all possible keys.

Parameters
grabAllKeystrue to enable, false to disable. Default is false.
See also
grabAllKeys()

Reimplemented from RemoteView.

Definition at line 187 of file nxview.cpp.

QSize NxView::sizeHint ( ) const

Definition at line 176 of file nxview.cpp.

bool NxView::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 111 of file nxview.cpp.

void NxView::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 88 of file nxview.cpp.

void NxView::switchFullscreen ( bool  on)
slot

Definition at line 182 of file nxview.cpp.


The documentation for this class was generated from the following files:
  • nxview.h
  • nxview.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