X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=qmafw-gst-subtitles-renderer%2Finc%2FMafwGstRendererDolby.h;fp=qmafw-gst-subtitles-renderer%2Finc%2FMafwGstRendererDolby.h;h=638200055afab44f9d7197e30341a272898e8fe3;hb=226d35244df85a27c332d3a3ded1b25b3c7f4951;hp=0000000000000000000000000000000000000000;hpb=57ba96e291a055f69dbfd4ae9f1ae2390e36986e;p=mafwsubrenderer diff --git a/qmafw-gst-subtitles-renderer/inc/MafwGstRendererDolby.h b/qmafw-gst-subtitles-renderer/inc/MafwGstRendererDolby.h new file mode 100644 index 0000000..6382000 --- /dev/null +++ b/qmafw-gst-subtitles-renderer/inc/MafwGstRendererDolby.h @@ -0,0 +1,81 @@ +/* + * This file is part of QMAFW + * + * Copyright (C) 2010 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 MAFWGSTRENDERERDOLBY_H +#define MAFWGSTRENDERERDOLBY_H + +#include +#include + +/** + * Provides volume setting, getting and listening functionality using + * PulseAudioMainVolume DBus API. + */ +class MafwGstRendererDolby : public QObject +{ + Q_OBJECT +public: + /** + * Constructor + */ + MafwGstRendererDolby( QObject* parent ); + ~MafwGstRendererDolby(); + void initialize(); + bool setMusicDolbyState (uint value); + bool setMusicDolbyRoom (int value); + bool setMusicDolbyColor (int value); + uint getMusicDolbyState (); + int getMusicDolbyRoom (); + int getMusicDolbyColor (); + bool setVideoDolbyState (uint value); + bool setVideoDolbyRoom (int value); + bool setVideoDolbyColor (int value); + uint getVideoDolbyState (); + int getVideoDolbyRoom (); + int getVideoDolbyColor (); + +Q_SIGNALS: + /** + * Signal telling that music surround is OFF/ON/AUTO. + */ + void mafwDHMMusicPropertyChanged(); + /** + * Signal telling that video surround is OFF/ON/AUTO. + */ + void mafwDHMVideoPropertyChanged(); + +private Q_SLOTS: + void valueMusicChanged(); + void valueVideoChanged(); + +private: + uint m_currentMusicDolbyState; + int m_currentMusicDolbyRoom; + int m_currentMusicDolbyColor; + uint m_currentVideoDolbyState; + int m_currentVideoDolbyRoom; + int m_currentVideoDolbyColor; + + GConfItem *m_dolbyConfMusic; + GConfItem *m_dolbyConfMusicRoom; + GConfItem *m_dolbyConfMusicColor; + GConfItem *m_dolbyConfVideo; + GConfItem *m_dolbyConfVideoRoom; + GConfItem *m_dolbyConfVideoColor; +}; + +#endif // MAFWGSTRENDERERDOLBY_H