* do not add a KStandardAction manually to actionCollection()
[kdenetwork.git] / krfb / x11framebuffer.h
blob8fef1efe41f6eaae12bac1923b3c52c44b1a50c2
1 /* This file is part of the KDE project
2 Copyright (C) 2007 Alessandro Praduroux <pradu@pradu.it>
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8 */
9 #ifndef X11FRAMEBUFFER_H
10 #define X11FRAMEBUFFER_H
12 #include <framebuffer.h>
13 #include <QWidget>
15 class X11FrameBuffer;
17 class EvWidget: public QWidget {
18 Q_OBJECT
20 public:
21 EvWidget(X11FrameBuffer *x11fb);
23 protected:
24 bool x11Event ( XEvent * event );
26 private:
27 X11FrameBuffer *fb;
28 int xdamageBaseEvent;
31 /**
32 @author Alessandro Praduroux <pradu@pradu.it>
34 class X11FrameBuffer : public FrameBuffer
36 Q_OBJECT
37 public:
38 X11FrameBuffer(WId id, QObject* parent);
40 ~X11FrameBuffer();
42 virtual QList<QRect> modifiedTiles();
43 virtual int depth();
44 virtual int height();
45 virtual int width();
46 virtual int paddedWidth();
47 virtual void getServerFormat(rfbPixelFormat& format);
48 virtual void startMonitor();
49 virtual void stopMonitor();
52 void handleXDamage( XEvent *event);
53 private:
54 void cleanupRects();
55 void acquireEvents();
57 class P;
58 P * const d;
61 #endif