Added DUI control panel applet
[mafwsubrenderer] / qmafw-gst-subtitles-renderer / unittests / ut_GstScreenshot / ut_GstScreenshot.h
1 /* 
2  * This file is part of QMAFW 
3  *
4  * Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). All rights
5  * reserved.
6  *
7  * Contact: Visa Smolander <visa.smolander@nokia.com>
8  *
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.
15  *
16  */
17  
18 #ifndef UT_GSTSCREENSHOT_H_
19 #define UT_GSTSCREENSHOT_H_
20
21 #include <QObject>
22 #include <QtTest/QtTest>
23
24 #include "MafwGstScreenshot.h"
25
26 class MafwGstScreenshot;
27
28 class ut_GstScreenshot: public QObject
29 {
30     Q_OBJECT
31
32 private slots: // tests, don't touch the test order
33
34     void testFailures();
35     void testConvert();
36     void testCancel();
37     void testCancel_data();
38
39     void init();
40     void cleanup();
41
42 protected slots:
43     void slotScreenshot(char *location, GError *error);
44     void slotCancelScreenshot();
45     
46 private: //data
47     MafwGstScreenshot *m_screenshot;
48     bool m_gotCancelSignal;
49     bool m_gotScreenshotSignal;
50 };
51
52 #endif