Added DUI control panel applet
[mafwsubrenderer] / qmafw-gst-subtitles-renderer / applet / subtitlesapplet.h
diff --git a/qmafw-gst-subtitles-renderer/applet/subtitlesapplet.h b/qmafw-gst-subtitles-renderer/applet/subtitlesapplet.h
new file mode 100644 (file)
index 0000000..923f577
--- /dev/null
@@ -0,0 +1,49 @@
+/****************************************************************************
+**
+** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation (directui@nokia.com)
+**
+** This file is part of meegotouch-controlpanelapplets.
+**
+** If you have questions regarding the use of this file, please contact
+** Nokia at directui@nokia.com.
+**
+** 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 SUBTITLESAPPLET_H
+#define SUBTITLESAPPLET_H
+
+#include <DcpAppletIf>
+#include <QObject>
+#include <QPointer>
+
+class DcpWidget;
+class MAction;
+class SubtitlesWidget;
+
+class Q_DECL_EXPORT SubtitlesApplet : public QObject, public DcpAppletIf
+{
+    Q_OBJECT
+    Q_INTERFACES(DcpAppletIf)
+
+public:
+    SubtitlesApplet ();
+    ~SubtitlesApplet ();
+
+    virtual void init ();
+    virtual DcpStylableWidget *constructStylableWidget (int widgetId);
+    virtual QString title () const;
+    virtual QVector<MAction *> viewMenuItems ();
+    virtual DcpBrief* constructBrief (int partId = 0);
+
+private:
+    QPointer<SubtitlesWidget> m_MainWidget;
+};
+
+#endif