QWSServer(3qt)

NAME
QWSServer - Server-specific functionality in Qt/Embedded

#include <qwindowsystem_qws.h>

  Public Members
QWSServer ( int flags = 0, QObject * parent=0, const char * name=0 )
~QWSServer ()
void newConnection ( int socket )
enum ServerFlags { DisableKeyboard = 0x01, DisableMouse = 0x02 }
enum GUIMode { NoGui = FALSE, NormalGUI = TRUE, Server }
class KeyboardFilter { public: virtual bool filter ( int unicode, int keycode, int modifiers, bool isPress, bool autoRepeat )
void sendPropertyNotifyEvent ( int property, int state )
QWSPropertyManager* manager ()
QWSWindow* windowAt ( const QPoint & pos )
QList<QWSWindow> clientWindows ()
void openMouse ()
void closeMouse ()
void openKeyboard ()
void closeKeyboard ()
void refresh ()
void enablePainting ( bool )

  Static Public Members
void sendKeyEvent ( int unicode, int keycode, int modifiers, bool isPress, bool autoRepeat )
void processKeyEvent ( int unicode, int keycode, int modifiers, bool isPress, bool autoRepeat )
typedef const KeyMap* keyMap ()
void setKeyboardFilter ( KeyboardFilter * f )
void setDefaultMouse ( const char * )
void setDefaultKeyboard ( const char * )
void setMaxWindowRect ( const QRect & )
void sendMaxWindowRectEvents ()
void sendMouseEvent ( const QPoint & pos, int state )
void setDesktopBackground ( const QImage & img )
void setDesktopBackground ( const QColor & )
QWSMouseHandler* mouseHandler ()
void setMouseHandler ( QWSMouseHandler * )
QWSKeyboardHandler* keyboardHandler ()
void setKeyboardHandler ( QWSKeyboardHandler * kh )
QList<QWSInternalWindowInfo>* windowList ()
void sendQCopEvent ( QWSClient * c, const QCString & ch, const QCString & msg, const QByteArray & data, bool response = FALSE )
void processEventQueue ()
void setScreenSaverInterval ( int )
bool screenSaverActive ()
void screenSaverActivate ( bool )
void move_region ( const QWSRegionMoveCommand * )
void set_altitude ( const QWSChangeAltitudeCommand * )
void request_region ( int, QRegion )
void startup ( int flags )
void closedown ()
void emergency_cleanup ()

DESCRIPTION
Server-specific functionality in Qt/Embedded

When you run a Qt/Embedded application, it either runs as a server or connects to an existing server. If it runs as a server, some additional operations are provided via static functions in the QWSServer class.

MEMBER FUNCTION DOCUMENTATION

void QWSServer::closedown () [static]
Close down the server.

QWSKeyboardHandler* QWSServer::keyboardHandler () [static]
Returns the primary keyboard handler.

QWSMouseHandler * QWSServer::mouseHandler () [static]
Returns the primary mouse handler.

void QWSServer::sendKeyEvent ( int unicode, int keycode, int modifiers, bool isPress, bool autoRepeat ) [static]
Send a key event. You can use this to send key events generated by" virtual keyboards".

void QWSServer::setDefaultKeyboard ( const char * k ) [static]
Set the keyboard driver to use if $QWS_KEYBOARD is not defined. The default is platform-dependant.

void QWSServer::setDefaultMouse ( const char * m ) [static]
Set the mouse driver to use if $QWS_MOUSE_PROTO is not defined. The default is platform-dependant.

void QWSServer::setDesktopBackground ( const QColor & c ) [static]
Sets the color to use as the background in the absence of obscuring windows.

void QWSServer::setDesktopBackground ( const QImage & img ) [static]
Sets the image to use as the background in the absence of obscuring windows.

void QWSServer::setKeyboardFilter ( KeyboardFilter * f ) [static]
Sets a filter to be invoked for all key events from physical keyboard drivers (events sent via processKeyEvent()). The filter is not invoked for keys generated by virtual keyboard drivers (events send cia sendKeyEvent()).

void QWSServer::setKeyboardHandler ( QWSKeyboardHandler * kh ) [static]
Sets the primary keyboard handler to kh.

void QWSServer::setMaxWindowRect ( const QRect & r ) [static]
Sets the area of the screen which Qt/Embedded application will consider to be the maximum area to use for windows.

See also QWidget::showMaximized().

void QWSServer::setScreenSaverInterval ( int ms ) [static]
Sets the timeout for the screensaver to ms milliseconds. A setting of zero turns of the screensaver.

void QWSServer::startup ( int flags ) [static]
Start the server.

SEE ALSO
http://doc.trolltech.com/qwsserver.html http://www.trolltech.com/faq/tech.html

COPYRIGHT
Copyright 1992-2001 Trolltech AS, http://www.trolltech.com. See the license file included in the distribution for a complete license statement.

AUTHOR
Generated automatically from the source code.

BUGS
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports make our job much simpler. Thank you.

In case of content or formattting problems with this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qwsserver.3qt) and the Qt version (2.3.0).