summaryrefslogtreecommitdiffstats
path: root/tools/qmeegographicssystemhelper/qmeegolivepixmap.h
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2010-09-06 11:19:30 (GMT)
committerSamuel Rødal <samuel.rodal@nokia.com>2010-09-10 10:44:55 (GMT)
commitca1a8a7f4ad1fb249f47085e6ad0cf133122c0f0 (patch)
tree7cde8470048b312befa1c7934e470a111509a0d3 /tools/qmeegographicssystemhelper/qmeegolivepixmap.h
parent34c08ff7048419713464b28679ac15a250bd7dd1 (diff)
downloadQt-ca1a8a7f4ad1fb249f47085e6ad0cf133122c0f0.zip
Qt-ca1a8a7f4ad1fb249f47085e6ad0cf133122c0f0.tar.gz
Qt-ca1a8a7f4ad1fb249f47085e6ad0cf133122c0f0.tar.bz2
Renamed meego graphics system helper files.
Diffstat (limited to 'tools/qmeegographicssystemhelper/qmeegolivepixmap.h')
-rw-r--r--tools/qmeegographicssystemhelper/qmeegolivepixmap.h71
1 files changed, 71 insertions, 0 deletions
diff --git a/tools/qmeegographicssystemhelper/qmeegolivepixmap.h b/tools/qmeegographicssystemhelper/qmeegolivepixmap.h
new file mode 100644
index 0000000..dee4d2a
--- /dev/null
+++ b/tools/qmeegographicssystemhelper/qmeegolivepixmap.h
@@ -0,0 +1,71 @@
+/***************************************************************************
+**
+** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation
+**
+** This library is free software; you can redistribute it and/or
+** modify it under the terms of the GNU Lesser General Public
+** License version 2.1 as published by the Free Software Foundation
+** and appearing in the file LICENSE.LGPL included in the packaging
+** of this file.
+**
+****************************************************************************/
+
+#ifndef MLIVEPIXMAP_H
+#define MLIVEPIXMAP_H
+
+#include <QPixmap>
+#include "mliveimage.h"
+
+class MLivePixmapPrivate;
+class QSharedMemory;
+class QImage;
+
+//! A pixmap representing streamed content.
+/*!
+*/
+
+class MLivePixmap : public QPixmap
+{
+public:
+ //! Creates new pixmap from the given MLiveImage.
+ /*!
+ The created MLivePixmap will be attached to the given MLiveImage.
+ Updates to the MLiveImage will be represented on this newly created
+ MLivePixmap.
+ */
+ static MLivePixmap* fromLiveImage(MLiveImage *liveImage);
+
+ //! Creates a new MLivePixmap from the specified handle.
+ /*!
+ The handle can be used to share MLivePixmap cross-process.
+ */
+ static MLivePixmap* fromHandle(Qt::HANDLE handle);
+
+ //! Returns the handle for this MLivePixmap.
+ /*!
+ The handle can be used to share MLivePixmap cross-process.
+ */
+ Qt::HANDLE handle();
+
+ //! Destroys the MLivePixmap.
+ /*!
+ All MLivePixmaps attached to a given MLiveImage have to be destroyed
+ before the MLiveImage itself is destroyed.
+ */
+ virtual ~MLivePixmap();
+
+private:
+ MLivePixmap(QPixmapData *p);
+ Q_DISABLE_COPY(MLivePixmap)
+ Q_DECLARE_PRIVATE(MLivePixmap)
+
+protected:
+ QScopedPointer<MLivePixmapPrivate> d_ptr; //! Private bits.
+
+ friend class MLiveImage;
+ friend class MLiveImagePrivate;
+};
+
+#endif