42 #ifndef QT_NO_QWS_MOUSE_QVFB 45 #include <sys/types.h> 57 #include <private/qcore_unix_p.h> 70 perror(
"QVFbMouseHandler::QVFbMouseHandler");
71 qWarning(
"QVFbMouseHander: Unable to open device %s",
112 static const int packetsize =
sizeof(
QPoint) + 2*
sizeof(
int);
113 while (
mouseIdx-idx >= packetsize) {
117 int bstate = *
reinterpret_cast<int *
>(mb);
119 int wheel = *
reinterpret_cast<int *
>(mb);
126 for (
int i = 0; i < surplus; i++)
133 #endif // QT_NO_QWS_MOUSE_QVFB
void resume()
Implement this function to resume reading and handling mouse events, e.
#define QT_END_NAMESPACE
This macro expands to.
The QWSMouseHandler class is a base class for mouse drivers in Qt for Embedded Linux.
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
uchar mouseBuf[mouseBufSize]
The QString class provides a Unicode character string.
void mouseChanged(const QPoint &pos, int bstate, int wheel=0)
Notifies the system of a new mouse event.
The QObject class is the base class of all Qt objects.
QVFbMouseHandler(const QString &driver=QString(), const QString &device=QString())
The QSocketNotifier class provides support for monitoring activity on a file descriptor.
#define QT_BEGIN_NAMESPACE
This macro expands to.
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 rece...
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
Q_CORE_EXPORT void qWarning(const char *,...)
QByteArray toLatin1() const Q_REQUIRED_RESULT
Returns a Latin-1 representation of the string as a QByteArray.
const char * constData() const
Returns a pointer to the data stored in the byte array.
void suspend()
Implement this function to suspend reading and handling of mouse events, e.
The QPoint class defines a point in the plane using integer precision.
QSocketNotifier * mouseNotifier
void setEnabled(bool)
If enable is true, the notifier is enabled; otherwise the notifier is disabled.
#define qPrintable(string)