1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 06:07:37 +02: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" #include "WidgetsDllMacro.h"
class AnimatedSpinner; class AnimatedSpinner;
class NetworkActivityWidgetPrivate;
class PlaylistModel; class PlaylistModel;
class QModelIndex; class QModelIndex;
class QStandardItemModel; class QStandardItemModel;
@@ -39,6 +38,8 @@ namespace Tomahawk
namespace Widgets namespace Widgets
{ {
class NetworkActivityWidgetPrivate;
class TOMAHAWK_WIDGETS_EXPORT NetworkActivityWidget : public QWidget, public Tomahawk::ViewPage class TOMAHAWK_WIDGETS_EXPORT NetworkActivityWidget : public QWidget, public Tomahawk::ViewPage
{ {
Q_OBJECT Q_OBJECT

View File

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

View File

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

View File

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

View File

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