1
/* This file is part of the KDE project
2
Copyright (C) 2009 Collabora Ltd <info@collabora.co.uk>
3
@author George Goldberg <george.goldberg@collabora.co.uk>
5
This program is free software; you can redistribute it and/or
6
modify it under the terms of the GNU General Public
7
License as published by the Free Software Foundation; either
8
version 2 of the License, or (at your option) any later version.
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
General Public License for more details.
15
You should have received a copy of the GNU General Public License
16
along with this program; see the file COPYING. If not, write to
17
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18
Boston, MA 02110-1301, USA.
21
#ifndef KRFB_FRAMEBUFFERMANAGER_H
22
#define KRFB_FRAMEBUFFERMANAGER_H
24
#include "framebuffer.h"
26
#include <kdemacros.h>
28
#include <QtCore/QMap>
29
#include <QtCore/QObject>
30
#include <QtCore/QSharedPointer>
31
#include <QtCore/QWeakPointer>
33
#include <QtGui/QWidget>
35
class FrameBufferPlugin;
38
class KDE_EXPORT FrameBufferManager : public QObject
41
friend class FrameBufferManagerStatic;
44
static FrameBufferManager *instance();
46
virtual ~FrameBufferManager();
48
QSharedPointer<FrameBuffer> frameBuffer(WId id);
51
Q_DISABLE_COPY(FrameBufferManager)
57
QMap<QString, FrameBufferPlugin *> m_plugins;
58
QMap<WId, QWeakPointer<FrameBuffer> > m_frameBuffers;
62
#endif // Header guard