Macro qtTrIdx() replaced by tr() and QT_TRANSLATE_NOOP()
[mafwsubrenderer] / qmafw-gst-subtitles-renderer / inc / MafwGstRendererDolby.h
1 /*
2  * This file is part of QMAFW
3  *
4  * Copyright (C) 2010 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 MAFWGSTRENDERERDOLBY_H
19 #define MAFWGSTRENDERERDOLBY_H
20
21 #include <QObject>
22 #include <GConfItem>
23
24 /**
25  * Provides volume setting, getting and listening functionality using
26  * PulseAudioMainVolume DBus API.
27  */
28 class MafwGstRendererDolby : public QObject
29 {
30     Q_OBJECT
31 public:
32     /**
33      * Constructor
34      */
35     MafwGstRendererDolby( QObject* parent );
36     ~MafwGstRendererDolby();
37     void initialize();
38     bool setMusicDolbyState (uint value);
39     bool setMusicDolbyRoom (int value);
40     bool setMusicDolbyColor (int value);
41     uint getMusicDolbyState ();
42     int getMusicDolbyRoom ();
43     int getMusicDolbyColor ();
44     bool setVideoDolbyState (uint value);
45     bool setVideoDolbyRoom (int value);
46     bool setVideoDolbyColor (int value);
47     uint getVideoDolbyState ();
48     int getVideoDolbyRoom ();
49     int getVideoDolbyColor ();
50
51 Q_SIGNALS:
52     /**
53      * Signal telling that music surround is OFF/ON/AUTO.
54      */
55     void mafwDHMMusicPropertyChanged();
56     /**
57      * Signal telling that video surround is OFF/ON/AUTO.
58      */
59     void mafwDHMVideoPropertyChanged();
60
61 private Q_SLOTS:
62     void valueMusicChanged();
63     void valueVideoChanged();
64
65 private:
66     uint m_currentMusicDolbyState;
67     int m_currentMusicDolbyRoom;
68     int m_currentMusicDolbyColor;
69     uint m_currentVideoDolbyState;
70     int m_currentVideoDolbyRoom;
71     int m_currentVideoDolbyColor;
72
73     GConfItem *m_dolbyConfMusic;
74     GConfItem *m_dolbyConfMusicRoom;
75     GConfItem *m_dolbyConfMusicColor;
76     GConfItem *m_dolbyConfVideo;
77     GConfItem *m_dolbyConfVideoRoom;
78     GConfItem *m_dolbyConfVideoColor;
79 };
80
81 #endif // MAFWGSTRENDERERDOLBY_H