~neon/kdenetwork/trunk

« back to all changes in this revision

Viewing changes to krfb/krfb/framebuffermanager.h

  • Committer: uwolfer
  • Date: 2013-06-08 10:12:41 UTC
  • Revision ID: svn-v4:283d02a7-25f6-0310-bc7c-ecb5cbfe19da:trunk/KDE/kdenetwork:1357331
kdenetwork has moved to Git

Show diffs side-by-side

added added

removed removed

Lines of Context:
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>
4
 
 
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.
9
 
 
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.
14
 
 
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.
19
 
*/
20
 
 
21
 
#ifndef KRFB_FRAMEBUFFERMANAGER_H
22
 
#define KRFB_FRAMEBUFFERMANAGER_H
23
 
 
24
 
#include "framebuffer.h"
25
 
 
26
 
#include <kdemacros.h>
27
 
 
28
 
#include <QtCore/QMap>
29
 
#include <QtCore/QObject>
30
 
#include <QtCore/QSharedPointer>
31
 
#include <QtCore/QWeakPointer>
32
 
 
33
 
#include <QtGui/QWidget>
34
 
 
35
 
class FrameBufferPlugin;
36
 
class KPluginFactory;
37
 
 
38
 
class KDE_EXPORT FrameBufferManager : public QObject
39
 
{
40
 
    Q_OBJECT
41
 
    friend class FrameBufferManagerStatic;
42
 
 
43
 
public:
44
 
    static FrameBufferManager *instance();
45
 
 
46
 
    virtual ~FrameBufferManager();
47
 
 
48
 
    QSharedPointer<FrameBuffer> frameBuffer(WId id);
49
 
 
50
 
private:
51
 
    Q_DISABLE_COPY(FrameBufferManager)
52
 
 
53
 
    FrameBufferManager();
54
 
 
55
 
    void loadPlugins();
56
 
 
57
 
    QMap<QString, FrameBufferPlugin *> m_plugins;
58
 
    QMap<WId, QWeakPointer<FrameBuffer> > m_frameBuffers;
59
 
};
60
 
 
61
 
 
62
 
#endif  // Header guard
63