mirror of
https://invent.kde.org/network/krfb
synced 2024-07-08 12:05:49 +00:00
All these files have been added to SVN by Alessandro Praduroux. He agreed on this change. CCMAIL: pradu@pradu.it svn path=/trunk/KDE/kdenetwork/krfb/; revision=734376
45 lines
992 B
C++
45 lines
992 B
C++
/* This file is part of the KDE project
|
|
Copyright (C) 2007 Alessandro Praduroux <pradu@pradu.it>
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public
|
|
License as published by the Free Software Foundation; either
|
|
version 2 of the License, or (at your option) any later version.
|
|
*/
|
|
|
|
#ifndef QTFRAMEBUFFER_H
|
|
#define QTFRAMEBUFFER_H
|
|
|
|
#include <QImage>
|
|
#include "framebuffer.h"
|
|
|
|
class QTimer;
|
|
/**
|
|
@author Alessandro Praduroux <pradu@pradu.it>
|
|
*/
|
|
class QtFrameBuffer : public FrameBuffer
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit QtFrameBuffer(WId id, QObject *parent = 0);
|
|
|
|
~QtFrameBuffer();
|
|
|
|
virtual int depth();
|
|
virtual int height();
|
|
virtual int width();
|
|
virtual int paddedWidth();
|
|
virtual void getServerFormat(rfbPixelFormat& format);
|
|
virtual void startMonitor();
|
|
virtual void stopMonitor();
|
|
|
|
public Q_SLOTS:
|
|
void updateFrameBuffer();
|
|
|
|
private:
|
|
QImage fbImage;
|
|
QTimer *t;
|
|
};
|
|
|
|
#endif
|