Qt 4.8
|
The QVNCScreen class implements a screen driver for VNC servers. More...
#include <qscreenvnc_qws.h>
Public Functions | |
uchar * | base () const |
bool | connect (const QString &displaySpec) |
Reimplemented Function More... | |
QVNCDirtyMap * | dirtyMap () |
void | disconnect () |
Reimplemented Function More... | |
bool | initDevice () |
Reimplemented Function More... | |
int | linestep () const |
QVNCScreen (int display_id) | |
Constructs a QVNCScreen object. More... | |
QVNCScreen (QRect screenSize, int screenId) | |
void | setDirty (const QRect &) |
Reimplemented Function More... | |
void | shutdownDevice () |
Reimplemented Function More... | |
virtual | ~QVNCScreen () |
Destroys this QVNCScreen object. More... | |
Public Functions inherited from QFbScreen | |
virtual void | addWindow (QFbWindow *surface) |
virtual int | depth () const |
Reimplement in subclass to return current depth of the screen. More... | |
virtual QImage::Format | format () const |
Reimplement in subclass to return the image format which corresponds to the screen format. More... | |
virtual QRect | geometry () const |
Reimplement in subclass to return the pixel geometry of the screen. More... | |
QImage * | image () const |
virtual void | lower (QPlatformWindow *surface) |
QPaintDevice * | paintDevice () const |
virtual QSize | physicalSize () const |
Reimplement this function in subclass to return the physical size of the screen. More... | |
QFbScreen () | |
virtual void | raise (QPlatformWindow *surface) |
virtual void | removeWindow (QFbWindow *surface) |
virtual void | setDepth (int depth) |
virtual void | setFormat (QImage::Format format) |
virtual void | setGeometry (QRect rect) |
virtual void | setPhysicalSize (QSize size) |
virtual QWidget * | topLevelAt (const QPoint &p) const |
Return the given top level widget for a given position. More... | |
~QFbScreen () | |
Public Functions inherited from QPlatformScreen | |
virtual QRect | availableGeometry () const |
Reimplement in subclass to return the pixel geometry of the available space This normally is the desktop screen minus the task manager, global menubar etc. More... | |
virtual | ~QPlatformScreen () |
Public Functions inherited from QObject | |
bool | blockSignals (bool b) |
If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke anything connected to it). More... | |
const QObjectList & | children () const |
Returns a list of child objects. More... | |
bool | connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const |
bool | disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0) |
bool | disconnect (const QObject *receiver, const char *member=0) |
void | dumpObjectInfo () |
Dumps information about signal connections, etc. More... | |
void | dumpObjectTree () |
Dumps a tree of children to the debug output. More... | |
QList< QByteArray > | dynamicPropertyNames () const |
Returns the names of all properties that were dynamically added to the object using setProperty(). More... | |
virtual bool | event (QEvent *) |
This virtual function receives events to an object and should return true if the event e was recognized and processed. More... | |
virtual bool | eventFilter (QObject *, QEvent *) |
Filters events if this object has been installed as an event filter for the watched object. More... | |
template<typename T > | |
T | findChild (const QString &aName=QString()) const |
Returns the child of this object that can be cast into type T and that is called name, or 0 if there is no such object. More... | |
template<typename T > | |
QList< T > | findChildren (const QString &aName=QString()) const |
Returns all children of this object with the given name that can be cast to type T, or an empty list if there are no such objects. More... | |
template<typename T > | |
QList< T > | findChildren (const QRegExp &re) const |
bool | inherits (const char *classname) const |
Returns true if this object is an instance of a class that inherits className or a QObject subclass that inherits className; otherwise returns false. More... | |
void | installEventFilter (QObject *) |
Installs an event filter filterObj on this object. More... | |
bool | isWidgetType () const |
Returns true if the object is a widget; otherwise returns false. More... | |
void | killTimer (int id) |
Kills the timer with timer identifier, id. More... | |
virtual const QMetaObject * | metaObject () const |
Returns a pointer to the meta-object of this object. More... | |
void | moveToThread (QThread *thread) |
Changes the thread affinity for this object and its children. More... | |
QString | objectName () const |
QObject * | parent () const |
Returns a pointer to the parent object. More... | |
QVariant | property (const char *name) const |
Returns the value of the object's name property. More... | |
Q_INVOKABLE | QObject (QObject *parent=0) |
Constructs an object with parent object parent. More... | |
void | removeEventFilter (QObject *) |
Removes an event filter object obj from this object. More... | |
void | setObjectName (const QString &name) |
void | setParent (QObject *) |
Makes the object a child of parent. More... | |
bool | setProperty (const char *name, const QVariant &value) |
Sets the value of the object's name property to value. More... | |
void | setUserData (uint id, QObjectUserData *data) |
bool | signalsBlocked () const |
Returns true if signals are blocked; otherwise returns false. More... | |
int | startTimer (int interval) |
Starts a timer and returns a timer identifier, or returns zero if it could not start a timer. More... | |
QThread * | thread () const |
Returns the thread in which the object lives. More... | |
QObjectUserData * | userData (uint id) const |
virtual | ~QObject () |
Destroys the object, deleting all its child objects. More... | |
Public Functions inherited from QProxyScreen | |
void | blank (bool on) |
Reimplemented Function More... | |
void | blit (const QImage &img, const QPoint &topLeft, const QRegion ®ion) |
Reimplemented Function More... | |
QWSWindowSurface * | createSurface (QWidget *widget) const |
Reimplemented Function More... | |
QWSWindowSurface * | createSurface (const QString &key) const |
Reimplemented Function More... | |
void | exposeRegion (QRegion r, int changing) |
Reimplemented Function More... | |
void | haltUpdates () |
bool | isInterlaced () const |
Reimplemented Function More... | |
bool | isTransformed () const |
Reimplemented Function More... | |
QSize | mapFromDevice (const QSize &s) const |
Reimplemented Function More... | |
QPoint | mapFromDevice (const QPoint &, const QSize &) const |
Reimplemented Function More... | |
QRect | mapFromDevice (const QRect &, const QSize &) const |
Reimplemented Function More... | |
QRegion | mapFromDevice (const QRegion &, const QSize &) const |
Reimplemented Function More... | |
QSize | mapToDevice (const QSize &s) const |
Reimplemented Function More... | |
QPoint | mapToDevice (const QPoint &, const QSize &) const |
Reimplemented Function More... | |
QRect | mapToDevice (const QRect &, const QSize &) const |
Reimplemented Function More... | |
QRegion | mapToDevice (const QRegion &, const QSize &) const |
Reimplemented Function More... | |
int | memoryNeeded (const QString &) |
bool | onCard (const unsigned char *) const |
Reimplemented Function More... | |
bool | onCard (const unsigned char *, ulong &out_offset) const |
Reimplemented Function More... | |
QProxyScreen (int display_id, ClassId=ProxyClass) | |
Constructs a proxy screen with the given displayId and classId. More... | |
QRegion | region () const |
Reimplemented Function More... | |
void | restore () |
Reimplemented Function More... | |
void | resumeUpdates () |
void | save () |
Reimplemented Function More... | |
QScreen * | screen () const |
Returns the real screen used by the proxy screen. More... | |
void | setMode (int width, int height, int depth) |
Reimplemented Function More... | |
void | setScreen (QScreen *screen) |
Sets the real screen to be used by the proxy screen. More... | |
int | sharedRamSize (void *) |
void | solidFill (const QColor &color, const QRegion ®ion) |
Reimplemented Function More... | |
QList< QScreen * > | subScreens () const |
Reimplemented Function More... | |
bool | supportsDepth (int) const |
Reimplemented Function More... | |
int | transformOrientation () const |
Reimplemented Function More... | |
~QProxyScreen () | |
Destroys the proxy screen. More... | |
Public Functions inherited from QScreen | |
virtual int | alloc (unsigned int, unsigned int, unsigned int) |
Returns the index in the screen's palette which is the closest match to the given RGB value (red, green, blue). More... | |
uchar * | base () const |
Returns a pointer to the beginning of the framebuffer. More... | |
void | blit (QWSWindow *bs, const QRegion &clip) |
virtual uchar * | cache (int) |
ClassId | classId () const |
Returns the class identifier for the screen object. More... | |
QRgb * | clut () |
Returns a pointer to the screen's color lookup table (i. More... | |
int | colorCount () |
Returns the number of entries in the screen's color lookup table (i. More... | |
int | depth () const |
Returns the depth of the framebuffer, in bits per pixel. More... | |
int | deviceHeight () const |
Returns the full height of the framebuffer device in pixels. More... | |
int | deviceWidth () const |
Returns the physical width of the framebuffer device in pixels. More... | |
QGraphicsSystem * | graphicsSystem () const |
int | height () const |
Returns the logical height of the framebuffer in pixels. More... | |
int | linestep () const |
Returns the length of each scanline of the framebuffer in bytes. More... | |
virtual QImage | mapFromDevice (const QImage &) const |
Maps the given image from the framebuffer coordinate system to the coordinate space used by the application. More... | |
virtual QImage | mapToDevice (const QImage &) const |
Maps the given image from the coordinate space used by the application to the framebuffer coordinate system. More... | |
QT_DEPRECATED int | numCols () |
QPoint | offset () const |
Returns the logical offset of the screen, i. More... | |
int | physicalHeight () const |
Returns the physical height of the screen in millimeters. More... | |
int | physicalWidth () const |
Returns the physical width of the screen in millimeters. More... | |
QImage::Format | pixelFormat () const |
Returns the pixel format of the screen, or QImage::Format_Invalid if the pixel format is not a supported image format. More... | |
PixelType | pixelType () const |
Returns the pixel storage format of the screen. More... | |
QPixmapDataFactory * | pixmapDataFactory () const |
virtual int | pixmapDepth () const |
Returns the preferred depth for pixmaps, in bits per pixel. More... | |
virtual int | pixmapLinestepAlignment () |
Returns the value (in bits) to which individual scanlines of pixmaps held in the graphics card's memory, should be aligned. More... | |
virtual int | pixmapOffsetAlignment () |
Returns the value (in bits) to which the start address of pixmaps held in the graphics card's memory, should be aligned. More... | |
QScreen (int display_id, ClassId classId) | |
Constructs a new screen driver. More... | |
QScreen (int display_id) | |
Constructs a new screen driver. More... | |
int | screenSize () const |
Returns the size of the screen in bytes. More... | |
virtual void | set (unsigned int, unsigned int, unsigned int, unsigned int) |
void | setOffset (const QPoint &p) |
int | subScreenIndexAt (const QPoint &p) const |
Returns the index of the subscreen at the given position; returns -1 if no screen is found. More... | |
int | totalSize () const |
Returns the size of the available graphics card memory (including the screen) in bytes. More... | |
virtual void | uncache (uchar *) |
int | width () const |
Returns the logical width of the framebuffer in pixels. More... | |
virtual | ~QScreen () |
Destroys this screen driver. More... | |
Private Functions | |
QRegion | doRedraw () |
bool | swapBytes () const |
Properties | |
QVNCScreenPrivate * | d_ptr |
QVNCServer * | server |
Friends | |
class | QVNCClientCursor |
class | QVNCCursor |
class | QVNCIntegration |
class | QVNCScreenPrivate |
class | QVNCServer |
Additional Inherited Members | |
Public Types inherited from QScreen | |
enum | ClassId { LinuxFBClass, TransformedClass, VNCClass, MultiClass, VFbClass, DirectFBClass, SvgalibClass, ProxyClass, GLClass, IntfbClass, CustomClass = 1024 } |
This enum defines the class identifiers for the known screen subclasses. More... | |
enum | PixelType { NormalPixel, BGRPixel } |
This enum describes the pixel storage format of the screen, i. More... | |
Public Slots inherited from QObject | |
void | deleteLater () |
Schedules this object for deletion. More... | |
Signals inherited from QObject | |
void | destroyed (QObject *=0) |
This signal is emitted immediately before the object obj is destroyed, and can not be blocked. More... | |
Static Public Functions inherited from QPlatformScreen | |
static QPlatformScreen * | platformScreenForWidget (const QWidget *widget) |
Static Public Functions inherited from QObject | |
static bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection) |
Creates a connection of the given type from the signal in the sender object to the method in the receiver object. More... | |
static bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection) |
static bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member) |
Disconnects signal in object sender from method in object receiver. More... | |
static bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member) |
static uint | registerUserData () |
static QString | tr (const char *sourceText, const char *comment=0, int n=-1) |
static QString | trUtf8 (const char *sourceText, const char *comment=0, int n=-1) |
Static Public Functions inherited from QScreen | |
static QScreen * | instance () |
Returns a pointer to the application's QScreen instance. More... | |
Static Public Variables inherited from QObject | |
static const QMetaObject | staticMetaObject |
This variable stores the meta-object for the class. More... | |
Protected Slots inherited from QFbScreen | |
Protected Functions inherited from QObject | |
virtual void | childEvent (QChildEvent *) |
This event handler can be reimplemented in a subclass to receive child events. More... | |
virtual void | connectNotify (const char *signal) |
This virtual function is called when something has been connected to signal in this object. More... | |
virtual void | customEvent (QEvent *) |
This event handler can be reimplemented in a subclass to receive custom events. More... | |
virtual void | disconnectNotify (const char *signal) |
This virtual function is called when something has been disconnected from signal in this object. More... | |
QObject (QObjectPrivate &dd, QObject *parent=0) | |
int | receivers (const char *signal) const |
Returns the number of receivers connected to the signal. More... | |
QObject * | sender () const |
Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns 0. More... | |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *) |
This event handler can be reimplemented in a subclass to receive timer events for the object. More... | |
Protected Functions inherited from QScreen | |
void | setGraphicsSystem (QGraphicsSystem *system) |
void | setPixelFormat (QImage::Format format) |
Sets the screen's pixel format to format. More... | |
void | setPixmapDataFactory (QPixmapDataFactory *factory) |
Protected Variables inherited from QFbScreen | |
QPlatformSoftwareCursor * | cursor |
int | mDepth |
QImage::Format | mFormat |
QRect | mGeometry |
QSize | mPhysicalSize |
QImage * | mScreenImage |
QTimer | redrawTimer |
QRegion | repaintRegion |
QList< QFbWindow * > | windowStack |
Protected Variables inherited from QObject | |
QScopedPointer< QObjectData > | d_ptr |
Protected Variables inherited from QScreen | |
int | d |
the pixel depth More... | |
uchar * | data |
points to the first visible pixel in the frame buffer. More... | |
int | dh |
the device height More... | |
int | displayId |
int | dw |
the device width More... | |
QPoolEntry * | entries |
int * | entryp |
bool | grayscale |
the gray scale screen mode flag More... | |
int | h |
the logical height of the screen. More... | |
unsigned int * | lowest |
int | lstep |
the number of bytes representing a line in the frame buffer. More... | |
int | mapsize |
the total number of bytes in the frame buffer More... | |
int | physHeight |
the physical height of the screen in millimeters. More... | |
int | physWidth |
the physical width of the screen in millimeters. More... | |
PixelType | pixeltype |
set to BGRPixel More... | |
QRgb | screenclut [256] |
the color table More... | |
int | screencols |
the number of entries in the color table More... | |
int | size |
the number of bytes in the visible region of the frame buffer More... | |
int | w |
the logical width of the screen. More... | |
Static Protected Variables inherited from QObject | |
static const QMetaObject | staticQtMetaObject |
Static Protected Variables inherited from QScreen | |
static ClearCacheFunc | clearCacheFunc = 0 |
Related Functions inherited from QObject | |
T | qFindChildqFindChildren (const QObject *obj, const QString &name)() |
QList< T > | qFindChildrenqFindChildren (const QObject *obj, const QString &name)() |
QList< T > | qFindChildrenqFindChildren (const QObject *obj, const QRegExp ®Exp)() |
T * | qobject_cast (QObject *object) |
QObjectList | |
void * | qt_find_obj_child (QObject *parent, const char *type, const QString &name) |
Returns a pointer to the object named name that inherits type and with a given parent. More... | |
Related Functions inherited from QScreen | |
void | setTransformation (int transformation, int screenNo) |
Here it is. More... | |
The QVNCScreen class implements a screen driver for VNC servers.
Note that this class is only available in Qt for Embedded Linux. Custom screen drivers can be added by subclassing the QScreen class, using the QScreenDriverFactory class to dynamically load the driver into the application.
The VNC protocol allows you to view and interact with the computer's display from anywhere on the network. See the The VNC Protocol and Qt for Embedded Linux{VNC protocol} documentation for more details.
The default implementation of QVNCScreen inherits QLinuxFbScreen, but any QScreen subclass, or QScreen itself, can serve as its base class. This is easily achieved by manipulating the VNCSCREEN_BASE
definition in the header file.
Definition at line 57 of file qscreenvnc_qws.h.
|
explicit |
Constructs a QVNCScreen object.
The displayId argument identifies the Qt for Embedded Linux server to connect to.
Definition at line 2086 of file qscreenvnc_qws.cpp.
|
virtual |
QVNCScreen::QVNCScreen | ( | QRect | screenSize, |
int | screenId | ||
) |
Definition at line 54 of file qvncintegration.cpp.
|
inline |
|
virtual |
Reimplemented Function
Reimplemented from QProxyScreen.
Definition at line 2142 of file qscreenvnc_qws.cpp.
QVNCDirtyMap * QVNCScreen::dirtyMap | ( | ) |
|
virtual |
Reimplemented Function
Reimplemented from QProxyScreen.
Definition at line 2251 of file qscreenvnc_qws.cpp.
|
privatevirtual |
Reimplemented from QFbScreen.
Definition at line 74 of file qvncintegration.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QProxyScreen.
Definition at line 2262 of file qscreenvnc_qws.cpp.
|
inline |
Definition at line 63 of file qvncintegration.h.
Referenced by QVNCDirtyMap::QVNCDirtyMap().
|
virtual |
Reimplemented Function
Reimplemented from QProxyScreen.
Definition at line 2103 of file qscreenvnc_qws.cpp.
Referenced by QVNCIntegration::QVNCIntegration().
|
virtual |
Reimplemented Function
Reimplemented from QProxyScreen.
Definition at line 2335 of file qscreenvnc_qws.cpp.
|
private |
Definition at line 832 of file qscreenvnc_qws.cpp.
Referenced by QVNCServer::pixelConversionNeeded(), and QVNCServer::setPixelFormat().
|
friend |
Definition at line 72 of file qscreenvnc_qws.h.
|
friend |
Definition at line 71 of file qscreenvnc_qws.h.
Referenced by initDevice(), and QVNCScreen().
|
friend |
Definition at line 73 of file qvncintegration.h.
|
friend |
Definition at line 74 of file qscreenvnc_qws.h.
Referenced by QVNCScreen().
|
friend |
Definition at line 73 of file qscreenvnc_qws.h.
Referenced by initDevice().
|
private |
Definition at line 80 of file qscreenvnc_qws.h.
Referenced by base(), connect(), dirtyMap(), disconnect(), doRedraw(), QVNCServer::frameBufferUpdateRequest(), initDevice(), QVNCCursor::move(), QVNCServer::newConnection(), QVNCScreen(), QVNCCursor::set(), setDirty(), QVNCCursor::setDirty(), shutdownDevice(), and ~QVNCScreen().
|
private |
Definition at line 71 of file qvncintegration.h.