2 * This file is part of QMAFW
4 * Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). All rights
7 * Contact: Visa Smolander <visa.smolander@nokia.com>
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.
18 #ifndef MAFWGSTRENDERERHALTSTATE_H
19 #define MAFWGSTRENDERERHALTSTATE_H
21 #include <MafwRenderer.h>
25 class MafwGstRendererHaltState : public QObject
29 static int DECAY_TIME;
31 MafwGstRendererHaltState();
32 MafwGstRendererHaltState(const QString &uri, MafwRenderer::State state, int position);
33 ~MafwGstRendererHaltState();
36 * Assigns other halt state to this object, also resets the decay timer.
38 MafwGstRendererHaltState(const MafwGstRendererHaltState &other);
41 * Assigns other halt state to this object, also resets the decay timer.
43 MafwGstRendererHaltState& operator =(const MafwGstRendererHaltState &other);
47 * Set new renderer state for halt state, user pressed pause etc
48 * @param newState, if newState is MafwRenderer::Paused the decay time is paused also
50 void setState(MafwRenderer::State newState);
53 * Is the halt state valid? Not decayed and contains relevenat information
58 * Clears the halt state from any valid content, also stop the decay timer
63 MafwRenderer::State state() const;
68 * This signal is emitted when the MafwGstRendererHaltState::DECAY_TIME has passed
69 * from object creation or when valid parameters were assigned to it.
74 void initializeDecayTimer();
78 MafwRenderer::State m_state;
83 #endif // MAFWGSTRENDERERHALTSTATE_H