extragear/multimedia/amarok
Casey Link
unnamedrambler at gmail.com
Tue Feb 17 20:51:29 CET 2009
SVN commit 927532 by link:
Add the Auto-Timecode feature. Now, when ever a track with length > 10
minutes is being played and a stop or skip action occurs a bookmark is
automatically created at the last position played.
Audiobook and Podcast listeners rejoice.
~yay
CCMAIL: amarok-devel at kde.org
BUG: 148740
M +2 -0 ChangeLog
M +2 -0 src/CMakeLists.txt
M +3 -0 src/amarokurls/AmarokUrlHandler.cpp
M +2 -0 src/amarokurls/AmarokUrlHandler.h
M +2 -1 src/meta/capabilities/TimecodeWriteCapability.cpp
A src/timecode (directory)
A src/timecode/TimecodeObserver.cpp [License: GPL (v2+)]
A src/timecode/TimecodeObserver.h src/meta/capabilities/TimecodeWriteCapability.cpp#927531 [License: GPL (v2+)]
--- trunk/extragear/multimedia/amarok/ChangeLog #927531:927532
@@ -5,6 +5,8 @@
VERSION 2.1
FEATURES:
+ * Auto timecoding (position bookmarking) now exists for tracks with length
+ greater than 10 minutes. (BR 148740)
* Add a animated "loading..." screen when dynamically fetching info about
an item to show in the service info applet.
* Deleting tracks from the local collection is now possible. (BR 170999)
--- trunk/extragear/multimedia/amarok/src/CMakeLists.txt #927531:927532
@@ -57,6 +57,7 @@
plugin
podcasts
statusbar
+ timecode
widgets
${CMAKE_CURRENT_BINARY_DIR} #for amarokconfig.h
${KDE4_INCLUDE_DIR}
@@ -127,6 +128,7 @@
amarokurls/BookmarkModel.cpp
amarokurls/BookmarkTreeView.cpp
amarokurls/BookmarkMetaActions.cpp
+ timecode/TimecodeObserver.cpp
)
#####################################################################
--- trunk/extragear/multimedia/amarok/src/amarokurls/AmarokUrlHandler.cpp #927531:927532
@@ -26,6 +26,7 @@
#include "NavigationUrlRunner.h"
#include "PlayUrlRunner.h"
#include "BookmarkModel.h"
+#include "timecode/TimecodeObserver.h"
#include <KIcon>
@@ -45,10 +46,12 @@
: QObject()
, m_navigationRunner( 0 )
, m_playRunner ( 0 )
+ , m_timecodeObserver( 0 )
{
//we init some of the default runners here.
m_navigationRunner = new NavigationUrlRunner();
m_playRunner = new PlayUrlRunner();
+ m_timecodeObserver = new TimecodeObserver();
registerRunner( m_navigationRunner, m_navigationRunner->command() );
registerRunner( m_playRunner, m_playRunner->command() );
--- trunk/extragear/multimedia/amarok/src/amarokurls/AmarokUrlHandler.h #927531:927532
@@ -26,6 +26,7 @@
#include <QMap>
+class TimecodeObserver;
class AmarokUrlHandler;
class NavigationUrlRunner;
class PlayUrlRunner;
@@ -64,6 +65,7 @@
NavigationUrlRunner * m_navigationRunner;
PlayUrlRunner * m_playRunner;
+ TimecodeObserver * m_timecodeObserver;
};
--- trunk/extragear/multimedia/amarok/src/meta/capabilities/TimecodeWriteCapability.cpp #927531:927532
@@ -20,6 +20,7 @@
#include "amarokurls/AmarokUrl.h"
#include "amarokurls/PlayUrlGenerator.h"
+#include "amarokurls/BookmarkModel.h"
#include "Debug.h"
#include "ProgressSlider.h"
#include "EngineController.h"
@@ -50,7 +51,7 @@
}
url.saveToDb();
-// BookmarkModel::instance()->reloadFromDb(); //Update bookmark manager view.
+ BookmarkModel::instance()->reloadFromDb(); //Update bookmark manager view.
return true;
}
}
More information about the Amarok-devel
mailing list