mirror of
https://github.com/KDE/krfb
synced 2026-07-01 07:41:17 -07:00
Still has some weirdness when updating large portions of the screen svn path=/trunk/KDE/kdenetwork/krfb/; revision=654248
45 lines
937 B
C++
45 lines
937 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; version 2
|
|
of the License.
|
|
*/
|
|
|
|
#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:
|
|
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
|