X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=qmafw-gst-subtitles-renderer%2Funittests%2Fut_GstScreenshot%2Fut_GstScreenshot.h;fp=qmafw-gst-subtitles-renderer%2Funittests%2Fut_GstScreenshot%2Fut_GstScreenshot.h;h=b9fca86e75ff060b9b0a8001717f484d18330a07;hb=226d35244df85a27c332d3a3ded1b25b3c7f4951;hp=0000000000000000000000000000000000000000;hpb=57ba96e291a055f69dbfd4ae9f1ae2390e36986e;p=mafwsubrenderer diff --git a/qmafw-gst-subtitles-renderer/unittests/ut_GstScreenshot/ut_GstScreenshot.h b/qmafw-gst-subtitles-renderer/unittests/ut_GstScreenshot/ut_GstScreenshot.h new file mode 100644 index 0000000..b9fca86 --- /dev/null +++ b/qmafw-gst-subtitles-renderer/unittests/ut_GstScreenshot/ut_GstScreenshot.h @@ -0,0 +1,52 @@ +/* + * This file is part of QMAFW + * + * Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). All rights + * reserved. + * + * Contact: Visa Smolander + * + * This software, including documentation, is protected by copyright controlled + * by Nokia Corporation. All rights are reserved. Copying, including + * reproducing, storing, adapting or translating, any or all of this material + * requires the prior written consent of Nokia Corporation. This material also + * contains confidential information which may not be disclosed to others + * without the prior written consent of Nokia. + * + */ + +#ifndef UT_GSTSCREENSHOT_H_ +#define UT_GSTSCREENSHOT_H_ + +#include +#include + +#include "MafwGstScreenshot.h" + +class MafwGstScreenshot; + +class ut_GstScreenshot: public QObject +{ + Q_OBJECT + +private slots: // tests, don't touch the test order + + void testFailures(); + void testConvert(); + void testCancel(); + void testCancel_data(); + + void init(); + void cleanup(); + +protected slots: + void slotScreenshot(char *location, GError *error); + void slotCancelScreenshot(); + +private: //data + MafwGstScreenshot *m_screenshot; + bool m_gotCancelSignal; + bool m_gotScreenshotSignal; +}; + +#endif