~ubuntu-branches/ubuntu/trusty/tomahawk/trusty-proposed

« back to all changes in this revision

Viewing changes to src/libtomahawk/utils/SharedTimeLine.h

  • Committer: Package Import Robot
  • Author(s): Harald Sitter
  • Date: 2013-03-07 21:50:13 UTC
  • Revision ID: package-import@ubuntu.com-20130307215013-6gdjkdds7i9uenvs
Tags: upstream-0.6.0+dfsg
ImportĀ upstreamĀ versionĀ 0.6.0+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
 
2
 *
 
3
 *   Copyright 2010-2011, Christian Muehlhaeuser <muesli@tomahawk-player.org>
 
4
 *   Copyright 2010-2011, Leo Franchi <lfranchi@kde.org>
 
5
 *   Copyright 2010-2012, Jeff Mitchell <jeff@tomahawk-player.org>
 
6
 *
 
7
 *   Tomahawk is free software: you can redistribute it and/or modify
 
8
 *   it under the terms of the GNU General Public License as published by
 
9
 *   the Free Software Foundation, either version 3 of the License, or
 
10
 *   (at your option) any later version.
 
11
 *
 
12
 *   Tomahawk is distributed in the hope that it will be useful,
 
13
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 
15
 *   GNU General Public License for more details.
 
16
 *
 
17
 *   You should have received a copy of the GNU General Public License
 
18
 *   along with Tomahawk. If not, see <http://www.gnu.org/licenses/>.
 
19
 */
 
20
 
 
21
#ifndef SHAREDTIMELINE_H
 
22
#define SHAREDTIMELINE_H
 
23
 
 
24
#include <QObject>
 
25
#include <QTimeLine>
 
26
 
 
27
#include "DllMacro.h"
 
28
 
 
29
namespace TomahawkUtils
 
30
{
 
31
 
 
32
class DLLEXPORT SharedTimeLine : public QObject
 
33
{
 
34
    Q_OBJECT
 
35
 
 
36
    public:
 
37
        SharedTimeLine();
 
38
 
 
39
        virtual ~SharedTimeLine() {}
 
40
 
 
41
        int currentFrame() { return m_timeline.currentFrame(); }
 
42
 
 
43
        void setUpdateInterval( int msec ) { if ( msec != m_timeline.updateInterval() ) m_timeline.setUpdateInterval( msec ); }
 
44
 
 
45
    signals:
 
46
        void frameChanged( int );
 
47
 
 
48
    protected slots:
 
49
        virtual void connectNotify( const char *signal );
 
50
 
 
51
        virtual void disconnectNotify( const char *signal );
 
52
 
 
53
    private:
 
54
        int m_refcount;
 
55
        QTimeLine m_timeline;
 
56
};
 
57
 
 
58
}
 
59
 
 
60
#endif
 
 
b'\\ No newline at end of file'