1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-01-17 22:38:33 +01:00

Move NetworkActivity into correct namespaces

This commit is contained in:
Uwe L. Korn 2013-07-18 12:08:57 +02:00
parent 5921e2514c
commit 98864dbd32
5 changed files with 34 additions and 6 deletions

View File

@ -24,7 +24,6 @@
#include "WidgetsDllMacro.h"
class AnimatedSpinner;
class NetworkActivityWidgetPrivate;
class PlaylistModel;
class QModelIndex;
class QStandardItemModel;
@ -39,6 +38,8 @@ namespace Tomahawk
namespace Widgets
{
class NetworkActivityWidgetPrivate;
class TOMAHAWK_WIDGETS_EXPORT NetworkActivityWidget : public QWidget, public Tomahawk::ViewPage
{
Q_OBJECT

View File

@ -24,6 +24,12 @@
#include "NetworkActivityWorker.h"
namespace Tomahawk
{
namespace Widgets
{
class NetworkActivityWidgetPrivate
{
public:
@ -52,8 +58,12 @@ private:
QPointer<PlaylistModel> trendingTracksModel;
Tomahawk::Widgets::NetworkActivityWidget::ViewType activeView;
Tomahawk::NetworkActivityWorker* worker;
Tomahawk::Widgets::NetworkActivityWorker* worker;
QThread* workerThread;
};
} // namespace Widgets
} // namespace Tomahawk
#endif // NETWORKACTIVITYWIDGET_P_H

View File

@ -28,7 +28,11 @@
#include <QDateTime>
namespace Tomahawk {
namespace Tomahawk
{
namespace Widgets
{
NetworkActivityWorker::NetworkActivityWorker( QObject* parent )
: QObject( parent )
@ -196,4 +200,6 @@ NetworkActivityWorker::checkDone()
}
}
} // namespace Widgets
} // namespace Tomahawk

View File

@ -23,9 +23,13 @@
#include "Playlist.h"
#include "Typedefs.h"
#include <QThread>
#include <QObject>
namespace Tomahawk {
namespace Tomahawk
{
namespace Widgets
{
class NetworkActivityWorkerPrivate;
@ -62,6 +66,8 @@ private:
void checkDone();
};
} // namespace Widgets
} // namespace Tomahawk
#endif // TOMAHAWK_NETWORKACTIVITYWORKER_H

View File

@ -27,6 +27,9 @@
namespace Tomahawk
{
namespace Widgets
{
class NetworkActivityWorkerPrivate
{
public:
@ -53,6 +56,8 @@ private:
QMultiMap<uint, playlist_ptr> playlistCount;
};
} // Tomahawk
} // namespace Widgets
} // namespace Tomahawk
#endif // NETWORKACTIVITYWORKER_P_H