* fix icon names (they have been updated in kdelibs)
[kdenetwork.git] / krfb / qtframebuffer.h
blob3c36519357c125f22cba3efac78635f0c2a2758c
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; version 2
7 of the License.
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 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