Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
c++ playdar api work in progress
  • Loading branch information
dougma committed Apr 22, 2009
1 parent 061bd96 commit cb1117a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion app/boffin/App.cpp
Expand Up @@ -224,6 +224,9 @@ App::onOutputDeviceActionTriggered( QAction* a )
#include "TagCloudView.h"
#include "TagDelegate.h"
#include "TagCloudModel.h"
#include "PlaydarTagCloudModel.h"
#include "lib/lastfm/ws/WsAccessManager.h"

void
App::onScanningFinished()
{
Expand All @@ -234,8 +237,13 @@ App::onScanningFinished()

disconnect( sender(), 0, this, 0 ); //only once pls

PlaydarApi api("http://localhost:8888", "67adc74f-e373-4e1f-ab5a-4c9d6ca20c3a");
WsAccessManager* wam = new WsAccessManager(this);
PlaydarTagCloudModel* model = new PlaydarTagCloudModel(api, wam);

m_cloud = new TagCloudView;
m_cloud->setModel( new TagCloudModel );
// m_cloud->setModel( new TagCloudModel );
m_cloud->setModel( model );
m_cloud->setItemDelegate( new TagDelegate );
m_mainwindow->setCentralWidget( m_cloud );

Expand All @@ -248,6 +256,8 @@ App::onScanningFinished()
m_mainwindow->ui.skip->setEnabled( false );
m_mainwindow->ui.rescan->setEnabled( true );
m_mainwindow->ui.wordle->setEnabled( true );

model->startGetTags();
}


Expand Down

0 comments on commit cb1117a

Please sign in to comment.