krfb
qtframebuffer.h
Go to the documentation of this file.00001 /* This file is part of the KDE project 00002 Copyright (C) 2007 Alessandro Praduroux <pradu@pradu.it> 00003 00004 This program is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU General Public 00006 License as published by the Free Software Foundation; either 00007 version 2 of the License, or (at your option) any later version. 00008 */ 00009 00010 #ifndef QTFRAMEBUFFER_H 00011 #define QTFRAMEBUFFER_H 00012 00013 #include <QImage> 00014 #include "framebuffer.h" 00015 00016 class QTimer; 00020 class QtFrameBuffer : public FrameBuffer 00021 { 00022 Q_OBJECT 00023 public: 00024 explicit QtFrameBuffer(WId id, QObject *parent = 0); 00025 00026 ~QtFrameBuffer(); 00027 00028 virtual int depth(); 00029 virtual int height(); 00030 virtual int width(); 00031 virtual int paddedWidth(); 00032 virtual void getServerFormat(rfbPixelFormat& format); 00033 virtual void startMonitor(); 00034 virtual void stopMonitor(); 00035 00036 public Q_SLOTS: 00037 void updateFrameBuffer(); 00038 00039 private: 00040 QImage fbImage; 00041 QTimer *t; 00042 }; 00043 00044 #endif
KDE 4.0 API Reference