From 2c79831ef80776a9bdf924fc11e5c058248a92e0 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Mon, 22 Apr 2013 09:14:42 +0200 Subject: [PATCH] * Register Track class. --- src/TomahawkApp.cpp | 4 ++++ src/libtomahawk/CMakeLists.txt | 1 + 2 files changed, 5 insertions(+) diff --git a/src/TomahawkApp.cpp b/src/TomahawkApp.cpp index d9d2af5ff..942a4f77a 100644 --- a/src/TomahawkApp.cpp +++ b/src/TomahawkApp.cpp @@ -26,6 +26,7 @@ #include "AclRegistryImpl.h" #include "Album.h" #include "Artist.h" +#include "Track.h" #include "collection/Collection.h" #include "infosystem/InfoSystem.h" #include "infosystem/InfoSystemCache.h" @@ -457,6 +458,7 @@ TomahawkApp::registerMetaTypes() qRegisterMetaType< Tomahawk::collection_ptr >("Tomahawk::collection_ptr"); qRegisterMetaType< Tomahawk::result_ptr >("Tomahawk::result_ptr"); qRegisterMetaType< Tomahawk::query_ptr >("Tomahawk::query_ptr"); + qRegisterMetaType< Tomahawk::track_ptr >("Tomahawk::track_ptr"); qRegisterMetaType< Tomahawk::album_ptr >("Tomahawk::album_ptr"); qRegisterMetaType< Tomahawk::artist_ptr >("Tomahawk::artist_ptr"); qRegisterMetaType< Tomahawk::source_ptr >("Tomahawk::source_ptr"); @@ -471,10 +473,12 @@ TomahawkApp::registerMetaTypes() qRegisterMetaType< QList >("QList"); qRegisterMetaType< QList >("QList"); qRegisterMetaType< QList >("QList"); + qRegisterMetaType< QList >("QList"); qRegisterMetaType< QList >("QList"); qRegisterMetaType< QList >("QList"); qRegisterMetaType< QList >("QList"); qRegisterMetaType< QList >("QList"); + qRegisterMetaType< QList >("QList"); qRegisterMetaType< QMap< QString, Tomahawk::plentry_ptr > >("QMap< QString, Tomahawk::plentry_ptr >"); qRegisterMetaType< Tomahawk::PlaylistRevision >("Tomahawk::PlaylistRevision"); qRegisterMetaType< Tomahawk::DynamicPlaylistRevision >("Tomahawk::DynamicPlaylistRevision"); diff --git a/src/libtomahawk/CMakeLists.txt b/src/libtomahawk/CMakeLists.txt index 6d22cab8d..fb39d0ef9 100644 --- a/src/libtomahawk/CMakeLists.txt +++ b/src/libtomahawk/CMakeLists.txt @@ -191,6 +191,7 @@ list(APPEND libSources Query.cpp Result.cpp Source.cpp + Track.cpp SourcePlaylistInterface.cpp PlaylistInterface.cpp