Macro qtTrIdx() replaced by tr() and QT_TRANSLATE_NOOP()
[mafwsubrenderer] / qmafw-gst-subtitles-renderer / inc / MafwGstRendererPlugin.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 MAFW_GST_RENDERER_PLUGIN_H
19 #define MAFW_GST_RENDERER_PLUGIN_H
20
21 #include <QObject>
22 #include <MafwPlugin.h>
23
24 class MafwGstRendererPlugin : public QObject, public MafwPlugin
25 {
26     Q_OBJECT
27     Q_INTERFACES(MafwPlugin)
28
29 public:
30     void initialize(MafwInternalRegistry* registry);
31     ~MafwGstRendererPlugin();
32
33     QString name() const;
34
35 protected:
36     MafwInternalRegistry* m_registry;
37     
38 private:
39     QList<QString> m_rendererIds;
40
41     /**
42     * Loads gst-renderers from config file.
43     * Config file contais "renderers" and "in-process-renderers" arrays.
44     * Renderer Array contains gst-renderer's id and it's "friendly" name.
45     * Syntax of the "renderers" array:
46     *    [renderers]
47     *    1\Id=mafw_gst_renderer
48     *    1\FriendlyName=MafwGstRenderer
49     *    2\Id=mafw_gst_internal_video_renderer
50     *    2\FriendlyName=MafwGstVideoRenderer
51     *    size=2
52     * If config file is deleted of empty we create default renderer with "mafw_gst_renderer" uuid.
53     **/
54     void loadRenderers(const QString& rendererArrayKey);
55
56 };
57
58 #endif