2 * This file is part of QMAFW
4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). All rights
7 * Contact: Visa Smolander <visa.smolander@nokia.com>
9 * This software, including documentation, is protected by copyright controlled
10 * by Nokia Corporation. All rights are reserved. Copying, including
11 * reproducing, storing, adapting or translating, any or all of this material
12 * requires the prior written consent of Nokia Corporation. This material also
13 * contains confidential information which may not be disclosed to others
14 * without the prior written consent of Nokia.
18 #ifndef MAFWGSTSCREENSHOT_H
19 #define MAFWGSTSCREENSHOT_H
24 class MafwGstScreenshot : public QObject
28 MafwGstScreenshot(QObject* parent);
31 bool savePauseFrame(GstBuffer *buffer, const char *filename);
32 void cancelPauseFrame();
33 bool reportBack(GError *error);
36 /* All GStreamer elements are owned by m_pipeline.
37 Elements are destroyed when m_pipeline is destroyed.*/
40 GstElement *m_pipeline;
46 GstStructure *m_structure;
51 void screenshotCancelled();
52 void screenshotTaken(char *location, GError *error);
55 #endif // MAFWGSTSCREENSHOT_H