Added include path for libv4l2 includes, rather than assuming they are
[kdenetwork.git] / krfb / qtframebuffer.h
blob8b5c05147efc73837e4e11c0a7003249814cd9d2
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 */
10 #ifndef QTFRAMEBUFFER_H
11 #define QTFRAMEBUFFER_H
13 #include <QImage>
14 #include "framebuffer.h"
16 class QTimer;
17 /**
18 @author Alessandro Praduroux <pradu@pradu.it>
20 class QtFrameBuffer : public FrameBuffer
22 Q_OBJECT
23 public:
24 explicit QtFrameBuffer(WId id, QObject *parent = 0);
26 ~QtFrameBuffer();
28 virtual int depth();
29 virtual int height();
30 virtual int width();
31 virtual int paddedWidth();
32 virtual void getServerFormat(rfbPixelFormat& format);
33 virtual void startMonitor();
34 virtual void stopMonitor();
36 public Q_SLOTS:
37 void updateFrameBuffer();
39 private:
40 QImage fbImage;
41 QTimer *t;
44 #endif