krfb
framebuffer.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 FRAMEBUFFER_H 00011 #define FRAMEBUFFER_H 00012 00013 #include <QObject> 00014 #include <QRect> 00015 #include <QList> 00016 #include <QWidget> 00017 00018 #include <rfb/rfb.h> 00019 00020 class FrameBuffer; 00024 class FrameBuffer : public QObject 00025 { 00026 Q_OBJECT 00027 public: 00028 00029 static FrameBuffer* getFrameBuffer(WId id, QObject *parent); 00030 00031 virtual ~FrameBuffer(); 00032 00033 char * data(); 00034 00035 virtual QList<QRect> modifiedTiles(); 00036 virtual int paddedWidth(); 00037 virtual int width(); 00038 virtual int height(); 00039 virtual int depth(); 00040 virtual void startMonitor(); 00041 virtual void stopMonitor(); 00042 00043 virtual void getServerFormat(rfbPixelFormat &format); 00044 00045 protected: 00046 explicit FrameBuffer(WId id, QObject *parent = 0); 00047 00048 WId win; 00049 char *fb; 00050 QList<QRect> tiles; 00051 00052 }; 00053 00054 #endif
KDE 4.0 API Reference