Added qmafw-gst-subtitles-applet package
[mafwsubrenderer] / qmafw-gst-subtitles-renderer / applet / subtitlesapplet.h
1 /****************************************************************************
2 **
3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
4 ** All rights reserved.
5 ** Contact: Nokia Corporation (directui@nokia.com)
6 **
7 ** This file is part of meegotouch-controlpanelapplets.
8 **
9 ** If you have questions regarding the use of this file, please contact
10 ** Nokia at directui@nokia.com.
11 **
12 ** This library is free software; you can redistribute it and/or
13 ** modify it under the terms of the GNU Lesser General Public
14 ** License version 2.1 as published by the Free Software Foundation
15 ** and appearing in the file LICENSE.LGPL included in the packaging
16 ** of this file.
17 **
18 ****************************************************************************/
19 #ifndef SUBTITLESAPPLET_H
20 #define SUBTITLESAPPLET_H
21
22 #include <DcpAppletIf>
23 #include <QObject>
24 #include <QPointer>
25
26 class DcpWidget;
27 class MAction;
28 class SubtitlesWidget;
29
30 class Q_DECL_EXPORT SubtitlesApplet : public QObject, public DcpAppletIf
31 {
32     Q_OBJECT
33     Q_INTERFACES(DcpAppletIf)
34
35 public:
36     SubtitlesApplet ();
37     ~SubtitlesApplet ();
38
39     virtual void init ();
40     virtual DcpStylableWidget *constructStylableWidget (int widgetId);
41     virtual QString title () const;
42     virtual QVector<MAction *> viewMenuItems ();
43     virtual DcpBrief* constructBrief (int partId = 0);
44
45 private:
46     QPointer<SubtitlesWidget> m_MainWidget;
47 };
48
49 #endif