|
Lines 33-38
Link Here
|
| 33 |
#include <qregexp.h> |
33 |
#include <qregexp.h> |
| 34 |
#include <qtextstream.h> // External CSS reading |
34 |
#include <qtextstream.h> // External CSS reading |
| 35 |
#include <qvbox.h> //wiki tab |
35 |
#include <qvbox.h> //wiki tab |
|
|
36 |
#include <qdeepcopy.h> |
| 36 |
|
37 |
|
| 37 |
#include <kapplication.h> //kapp |
38 |
#include <kapplication.h> //kapp |
| 38 |
#include <kcalendarsystem.h> // for verboseTimeSince() |
39 |
#include <kcalendarsystem.h> // for verboseTimeSince() |
|
Lines 1403-1411
void ContextBrowser::showHomeByAlbums()
Link Here
|
| 1403 |
class CurrentTrackJob : public ThreadWeaver::DependentJob |
1404 |
class CurrentTrackJob : public ThreadWeaver::DependentJob |
| 1404 |
{ |
1405 |
{ |
| 1405 |
public: |
1406 |
public: |
| 1406 |
CurrentTrackJob( ContextBrowser *parent ) |
1407 |
CurrentTrackJob( ContextBrowser *parent ); |
| 1407 |
: ThreadWeaver::DependentJob( parent, "CurrentTrackJob" ) |
|
|
| 1408 |
, b( parent ) {} |
| 1409 |
|
1408 |
|
| 1410 |
private: |
1409 |
private: |
| 1411 |
virtual bool doJob(); |
1410 |
virtual bool doJob(); |
|
Lines 1426-1435
private:
Link Here
|
| 1426 |
} |
1425 |
} |
| 1427 |
|
1426 |
|
| 1428 |
QString m_HTMLSource; |
1427 |
QString m_HTMLSource; |
|
|
1428 |
MetaBundle currentTrack; |
| 1429 |
|
1429 |
|
| 1430 |
ContextBrowser *b; |
1430 |
ContextBrowser *b; |
| 1431 |
}; |
1431 |
}; |
| 1432 |
|
1432 |
|
|
|
1433 |
CurrentTrackJob::CurrentTrackJob( ContextBrowser* parent) |
| 1434 |
: ThreadWeaver::DependentJob( parent, "CurrentTrackJob" ) |
| 1435 |
, b( parent ) |
| 1436 |
{ |
| 1437 |
currentTrack = QDeepCopy<MetaBundle>(EngineController::instance()->bundle()); |
| 1438 |
} |
| 1433 |
|
1439 |
|
| 1434 |
void ContextBrowser::showCurrentTrack() //SLOT |
1440 |
void ContextBrowser::showCurrentTrack() //SLOT |
| 1435 |
{ |
1441 |
{ |
|
Lines 1453-1460
bool CurrentTrackJob::doJob()
Link Here
|
| 1453 |
{ |
1459 |
{ |
| 1454 |
DEBUG_BLOCK |
1460 |
DEBUG_BLOCK |
| 1455 |
|
1461 |
|
| 1456 |
const MetaBundle ¤tTrack = EngineController::instance()->bundle(); |
|
|
| 1457 |
|
| 1458 |
m_HTMLSource.append( "<html>" |
1462 |
m_HTMLSource.append( "<html>" |
| 1459 |
"<script type='text/javascript'>" |
1463 |
"<script type='text/javascript'>" |
| 1460 |
//Toggle visibility of a block. NOTE: if the block ID starts with the T |
1464 |
//Toggle visibility of a block. NOTE: if the block ID starts with the T |