playlistsplitter.cpp 19.5 KB
Newer Older
1 2 3 4 5
/***************************************************************************
                          playlistsplitter.cpp  -  description
                             -------------------
    begin                : Fri Sep 13 2002
    copyright            : (C) 2002 by Scott Wheeler
6
    email                : wheeler@kde.org
7 8 9 10 11 12 13 14 15 16 17
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

18
#include <kstandarddirs.h>
19
#include <kmessagebox.h>
Nadeem Hasan's avatar
Nadeem Hasan committed
20
#include <klineeditdlg.h>
21 22
#include <kdebug.h>

23
#include <qpopupmenu.h>
24

25
#include "playlistsplitter.h"
26
#include "directorylist.h"
27
#include "playlistsearch.h"
28
#include "dynamicplaylist.h"
29
#include "mediafiles.h"
30 31

////////////////////////////////////////////////////////////////////////////////
32
// helper functions
33 34
////////////////////////////////////////////////////////////////////////////////

35
void processEvents()
36
{
37 38 39
    static int processed = 0;
    if(processed == 0)
        kapp->processEvents();
40
    processed = (processed + 1) % 5;
41 42
}

43
////////////////////////////////////////////////////////////////////////////////
44
// public methods
45 46
////////////////////////////////////////////////////////////////////////////////

47
PlaylistSplitter::PlaylistSplitter(QWidget *parent, bool restore, const char *name) :
48
    QSplitter(Qt::Horizontal, parent, name),
49
    m_playingItem(0), m_searchWidget(0), m_dynamicList(0), m_restore(restore),
50
    m_nextPlaylistItem(0)
51
{
52 53
    setupLayout();
    readConfig();
54 55

    m_editor->slotUpdateCollection();
56
    m_playlistBox->initViewMode();
57
}
58

59
PlaylistSplitter::~PlaylistSplitter()
60
{
Scott Wheeler's avatar
Scott Wheeler committed
61
    delete m_dirWatch;
62
    saveConfig();
63 64
}

65
QString PlaylistSplitter::uniquePlaylistName(const QString &startingWith, bool useParenthesis)
66
{
67
    if(!m_playlistBox)
68
	return QString::null;
69

70
    QStringList names = m_playlistBox->names();
71 72 73

    int playlistNumber = 1;

74
    // while the list contains more than zero instances of the generated
75 76
    // string...

77 78 79
    if(useParenthesis) {
	while(names.contains(startingWith + " (" + QString::number(playlistNumber) + ")") != 0)
	    playlistNumber++;
80 81

	return startingWith + " (" + QString::number(playlistNumber) + ")";
82 83 84 85 86
    }
    else
    {
	while(names.contains(startingWith + ' ' + QString::number(playlistNumber)) != 0)
	    playlistNumber++;
87

88
	return startingWith + " " + QString::number(playlistNumber);
89
    }
90 91
}

92
QString PlaylistSplitter::playNextFile(bool random, bool loopPlaylist)
93
{
94 95
    PlaylistItem *i;

96
    // Four basic cases here:  (1) We've asked for a specific next item, (2) play
97
    // the item that's after the currently playing item, (3) play the selected
98
    // item or (4) play the first item in the list.
99

100
    // (1) we've asked for a specific next item
101
    if(m_nextPlaylistItem && m_nextPlaylistItem != m_playingItem) {
102 103 104
        i = m_nextPlaylistItem;
        m_nextPlaylistItem = 0;
    }
105
    // (2) play the item after the currently selected item
106
    else if(m_playingItem) {
107 108
        Playlist *p = static_cast<Playlist *>(m_playingItem->listView());
        i = p->nextItem(m_playingItem, random);
109
        if(!i && loopPlaylist)
110
            i = static_cast<PlaylistItem *>(p->firstChild());
111
    }
112 113
    // (3) play the selected item
    else if(playlistSelection().size() > 0) {
114
        i = playlistSelection().first();
115 116
        if(!i)
            i = static_cast<PlaylistItem *>(visiblePlaylist()->firstChild());
117
    }
118 119 120
    // (4) play the first item in the list
    else
        i = static_cast<PlaylistItem *>(visiblePlaylist()->firstChild());
121

122
    return play(i);
123 124
}

125
QString PlaylistSplitter::playPreviousFile(bool random)
126
{
127
    if(!m_playingItem)
128
	return QString::null;
129

130 131
    Playlist *p = static_cast<Playlist *>(m_playingItem->listView());
    PlaylistItem *i = p->previousItem(m_playingItem, random);
132

133
    return play(i);
134 135
}

136 137 138 139 140 141 142 143 144 145 146 147
void PlaylistSplitter::populatePlayHistoryMenu(QPopupMenu* menu, bool random)
{
    Playlist *p = static_cast<Playlist *>(m_playingItem->listView());
    PlaylistItemList list = p->historyItems(m_playingItem, random);
    menu->clear();
    int i = 0;
    for (PlaylistItemList::iterator it = list.begin(); it != list.end(); ++it)
    {
        menu->insertItem((*it)->tag()->track(), ++i);
    }
}

148 149 150 151 152 153 154 155
QString PlaylistSplitter::playSelectedFile()
{
    if(playlistSelection().isEmpty())
	return QString::null;
    else
	return play(playlistSelection().first());
}

156 157 158 159
QString PlaylistSplitter::playFirstFile()
{
    Playlist *p = visiblePlaylist();
    PlaylistItem *i = static_cast<PlaylistItem *>(p->firstChild());
160

161
    return play(i);
162 163
}

164 165 166 167 168 169 170 171 172
QString PlaylistSplitter::playRandomFile()
{
    Playlist *p = visiblePlaylist();
    PlaylistItem *i = static_cast<PlaylistItem *>(p->firstChild());

    // Not exactly random (the first item won't be taken into account)
    return play(p->nextItem(i, true));
}

173 174
void PlaylistSplitter::stop()
{
175 176
    m_nextPlaylistItem = 0;

177 178 179 180 181
    if(!m_playingItem)
	return;

    Playlist *p = static_cast<Playlist *>(m_playingItem->listView());

182 183 184
    if(p)
	p->setPlaying(m_playingItem, false);

185
    m_playingItem = 0;
186 187 188 189
}

QString PlaylistSplitter::playingArtist() const
{
190 191
    if(m_playingItem)
	return m_playingItem->text(PlaylistItem::ArtistColumn);
192
    else
193
	return QString::null;
194 195 196 197
}

QString PlaylistSplitter::playingTrack() const
{
198 199
    if(m_playingItem)
	return m_playingItem->text(PlaylistItem::TrackColumn);
200
    else
201
	return QString::null;
202 203 204 205
}

QString PlaylistSplitter::playingList() const
{
206 207
    if(m_playingItem)
	return static_cast<Playlist *>(m_playingItem->listView())->name();
208
    else
209
	return QString::null;
210 211
}

212
void PlaylistSplitter::open(const QString &file)
213
{
214 215 216
    if(file.isEmpty())
	return;

217 218 219 220 221
    if(visiblePlaylist() == m_collection ||
       KMessageBox::questionYesNo(this,
				  i18n("Do you want to add this item to the current list or to the collection list?"),
				  QString::null,
				  KGuiItem(i18n("Current")),
222 223
				  KGuiItem(i18n("Collection"))) == KMessageBox::No)
    {
224
	slotAddToPlaylist(file, m_collection);
225
    }
226
    else
227
	slotAddToPlaylist(file, visiblePlaylist());
228 229
}

230
void PlaylistSplitter::open(const QStringList &files)
231
{
232 233
    if(files.isEmpty())
	return;
234 235 236 237 238 239 240

    if(visiblePlaylist() == m_collection ||
       KMessageBox::questionYesNo(this,
				  i18n("Do you want to add these items to the current list or to the collection list?"),
				  QString::null,
				  KGuiItem(i18n("Current")),
				  KGuiItem(i18n("Collection"))) == KMessageBox::No)
241
    {
242
	slotAddToPlaylist(files, m_collection);
243
    }
244
    else
245
	slotAddToPlaylist(files, visiblePlaylist());
246 247 248 249
}

Playlist *PlaylistSplitter::createPlaylist(const QString &name)
{
250
    Playlist *p = new Playlist(m_playlistStack, name.latin1());
251 252
    setupPlaylist(p, true);
    return p;
253 254
}

255 256 257 258
////////////////////////////////////////////////////////////////////////////////
// public slots
////////////////////////////////////////////////////////////////////////////////

259
void PlaylistSplitter::slotOpen()
260
{
261
    open(MediaFiles::openDialog(this));
262 263
}

264
void PlaylistSplitter::slotOpenDirectory()
265
{
266
    DirectoryList *l = new DirectoryList(m_directoryList, this, "directoryList");
267

268
    m_directoryQueue.clear();
269
    m_directoryQueueRemove.clear();
270

271
    connect(l, SIGNAL(signalDirectoryAdded(const QString &)),
272
	    this, SLOT(slotQueueDirectory(const QString &)));
273
    connect(l, SIGNAL(signalDirectoryRemoved(const QString &)),
274
	    this, SLOT(slotQueueDirectoryRemove(const QString &)));
275 276

    if(l->exec() == QDialog::Accepted) {
277
	open(m_directoryQueue);
278 279
	for(QStringList::Iterator it = m_directoryQueue.begin(); it !=  m_directoryQueue.end(); it++)
	    m_dirWatch->addDir(*it, false, true);
280

281
	m_directoryList += m_directoryQueue;
282 283 284

	QStringList::Iterator it = m_directoryQueueRemove.begin();
	for(; it !=  m_directoryQueueRemove.end(); it++) {
285
	    m_dirWatch->removeDir(*it);
286
	    m_directoryList.remove(*it);
287
	}
288 289
    }
}
290

291
Playlist *PlaylistSplitter::slotCreatePlaylist()
292 293 294
{
    bool ok;

295
    // If this text is changed, please also change it in PlaylistBox::duplicate().
296

297
    QString name = KLineEditDlg::getText(i18n("Create New Playlist"),
Nadeem Hasan's avatar
Nadeem Hasan committed
298 299
	i18n("Please enter a name for the new playlist:"),
	uniquePlaylistName(), &ok);
300
    if(ok)
301
	return createPlaylist(name);
302
    else
303
	return 0;
304 305
}

306
void PlaylistSplitter::slotSelectPlaying()
307
{
308
    if(!m_playingItem)
309 310
	return;

311
    Playlist *l = static_cast<Playlist *>(m_playingItem->listView());
312

313 314
    if(!l)
	return;
315

316
    l->clearSelection();
317 318
    l->setSelected(m_playingItem, true);
    l->ensureItemVisible(m_playingItem);
Nadeem Hasan's avatar
Nadeem Hasan committed
319

320 321
    if(l != visiblePlaylist())
	m_playlistBox->raise(l);
322 323
}

324
void PlaylistSplitter::slotDeleteSelectedItems()
325 326 327
{
    Playlist *p = visiblePlaylist();
    if(p)
328
	p->slotDeleteSelectedItems();
329 330
}

331 332 333 334 335
void PlaylistSplitter::slotAddToPlaylist(const QString &file, Playlist *list)
{
    KApplication::setOverrideCursor(Qt::waitCursor);
    addImpl(file, list);
    KApplication::restoreOverrideCursor();
Nadeem Hasan's avatar
Nadeem Hasan committed
336

337 338 339 340 341 342 343 344 345 346 347 348 349 350 351
    if(m_editor)
	m_editor->slotUpdateCollection();
}

void PlaylistSplitter::slotAddToPlaylist(const QStringList &files, Playlist *list)
{
    KApplication::setOverrideCursor(Qt::waitCursor);
    for(QStringList::ConstIterator it = files.begin(); it != files.end(); ++it)
        addImpl(*it, list);
    KApplication::restoreOverrideCursor();

    if(m_editor)
	m_editor->slotUpdateCollection();
}

352
void PlaylistSplitter::slotGuessTagInfoFile()
353
{
354 355 356 357 358 359 360 361
    visiblePlaylist()->slotGuessTagInfoFile();
    if(m_editor)
        m_editor->slotRefresh();
}

void PlaylistSplitter::slotGuessTagInfoInternet()
{
    visiblePlaylist()->slotGuessTagInfoInternet();
362 363 364 365
    if(m_editor)
        m_editor->slotRefresh();
}

366 367 368 369 370 371 372
void PlaylistSplitter::slotRenameFile()
{
    visiblePlaylist()->slotRenameFile();
    if(m_editor)
        m_editor->slotRefresh();
}

373 374 375 376 377 378
////////////////////////////////////////////////////////////////////////////////
// private members
////////////////////////////////////////////////////////////////////////////////

void PlaylistSplitter::setupLayout()
{
379 380
    setOpaqueResize(true);

381
    m_playlistBox = new PlaylistBox(this, "playlistBox");
382 383 384 385 386 387

    // Create a splitter to go between the playlists and the editor.

    QSplitter *editorSplitter = new QSplitter(Qt::Vertical, this, "editorSplitter");

    // Create the playlist and the editor.
388

389 390
    m_playlistStack = new QWidgetStack(editorSplitter, "playlistStack");
    m_editor = new TagEditor(editorSplitter, "tagEditor");
391 392 393

    // Make the editor as small as possible (or at least as small as recommended)

394
    editorSplitter->setResizeMode(m_editor, QSplitter::FollowSizeHint);
395

396
    // Make the connection that will update the selected playlist when a
397 398
    // selection is made in the playlist box.

399
    connect(m_playlistBox, SIGNAL(signalCurrentChanged(const PlaylistList &)),
400
	    this, SLOT(slotChangePlaylist(const PlaylistList &)));
401

402
    connect(m_playlistBox, SIGNAL(signalDoubleClicked()), this, SIGNAL(signalListBoxDoubleClicked()));
403

404
    // Create the collection list; this should always exist.  This has a
405
    // slightly different creation process than normal playlists (since it in
406
    // fact is a subclass) so it is created here rather than by using
407
    // slotCreatePlaylist().
408

409
    CollectionList::initialize(m_playlistStack, m_restore);
410 411
    m_collection = CollectionList::instance();
    setupPlaylist(m_collection, true, "folder_sound");
412
    connect(m_collection, SIGNAL(signalCollectionChanged()), m_editor, SLOT(slotUpdateCollection()));
413
    connect(m_collection, SIGNAL(signalRequestPlaylistCreation(const PlaylistItemList &)),
414
	    this, SLOT(slotCreatePlaylist(const PlaylistItemList &)));
415

416 417 418 419

    // Create the search widget -- this must be done after the CollectionList is created.
    m_searchWidget = new SearchWidget(editorSplitter, CollectionList::instance(), "searchWidget");
    editorSplitter->moveToFirst(m_searchWidget);
420 421
    connect(m_searchWidget, SIGNAL(signalQueryChanged(const QString &, bool, bool)),
	    this, SLOT(slotShowSearchResults(const QString &, bool, bool)));
422 423 424
    connect(CollectionList::instance(), SIGNAL(signalVisibleColumnsChanged()),
	    this, SLOT(slotVisibleColumnsChanged()));

425
    // Show the collection on startup.
426
    m_playlistBox->setSelected(0, true);
427 428 429 430
}

void PlaylistSplitter::readConfig()
{
431 432 433 434
    KConfig *config = KGlobal::config();
    { // block for Playlists group
	KConfigGroupSaver saver(config, "Playlists");

435 436 437 438 439 440
	QValueList<int> splitterSizes = config->readIntListEntry("PlaylistSplitterSizes");
	if(splitterSizes.isEmpty()) {
	    splitterSizes.append(100);
	    splitterSizes.append(640);
	}
	setSizes(splitterSizes);
441

442
	if(m_restore) {
443 444 445 446

	    QString playlistsFile = KGlobal::dirs()->saveLocation("appdata") + "playlists";

	    QFile f(playlistsFile);
Nadeem Hasan's avatar
Nadeem Hasan committed
447

448 449 450
	    if(f.open(IO_ReadOnly)) {
		QDataStream s(&f);
		while(!s.atEnd()) {
451
		    Playlist *p = new Playlist(m_playlistStack);
452 453 454 455
		    s >> *p;

		    // check to see if we've alredy loaded this item before continuing

456
		    if(p->fileName().isEmpty() || !m_playlistFiles.insert(p->fileName()))
457 458 459 460
			setupPlaylist(p);
		    else
			delete p;
		}
461
	    }
462

463
	    m_directoryList = config->readListEntry("DirectoryList");
464
	    QTimer::singleShot(0, this, SLOT(slotScanDirectories()));
465 466

	    m_dirWatch = new KDirWatch();
467
	    connect(m_dirWatch, SIGNAL(dirty(const QString &)),
468
		    this, SLOT(slotDirChanged(const QString &)));
469

470 471
	    QStringList::Iterator it = m_directoryList.begin();
            for(; it != m_directoryList.end(); ++it)
472 473 474
		m_dirWatch->addDir(*it, false, true);

	    m_dirWatch->startScan();
475
	}
476 477 478

	// restore the list of hidden and shown columns

479
	if(m_collection) {
480
	    for(int i = 0; i < m_collection->columns(); i++)
481
		m_columnNames.append(m_collection->columnText(i));
482
	}
483

484
    }
485
}
486 487 488 489

void PlaylistSplitter::saveConfig()
{
    KConfig *config = KGlobal::config();
490

491
    // Save the list of open playlists.
Nadeem Hasan's avatar
Nadeem Hasan committed
492

493
    if(m_restore && m_playlistBox) {
494 495 496

	// Start at item 1.  We want to skip the collection list.

497 498
	QString playlistsFile = KGlobal::dirs()->saveLocation("appdata") + "playlists";
	QFile f(playlistsFile);
499

500 501 502 503
	if(f.open(IO_WriteOnly)) {

	    QDataStream s(&f);

504
	    PlaylistList l = m_playlistBox->playlists();
505

506 507
	    for(PlaylistList::Iterator it = l.begin(); it != l.end(); it++)
		s << *(*it);
508

509
	    f.close();
510 511 512
	}
	{ // block for Playlists group
	    KConfigGroupSaver saver(config, "Playlists");
513
	    config->writeEntry("DirectoryList", m_directoryList);
514
	    config->writeEntry("SortColumn", m_collection->sortColumn());
515
	    config->writeEntry("PlaylistSplitterSizes", sizes());
516 517
	}
    }
518 519
}

520 521 522 523 524 525 526 527 528 529 530 531 532
void PlaylistSplitter::addImpl(const QString &file, Playlist *list)
{
    processEvents();
    QFileInfo fileInfo(QDir::cleanDirPath(file));
    if(fileInfo.exists()) {
        if(fileInfo.isDir()) {
            QDir dir(fileInfo.filePath());
            QStringList dirContents=dir.entryList();
            for(QStringList::Iterator it = dirContents.begin(); it != dirContents.end(); ++it)
                if(*it != "." && *it != "..")
                    addImpl(fileInfo.filePath() + QDir::separator() + *it, list);
        }
        else {
533
            if(MediaFiles::isMediaFile(file))
534
		list->createItem(fileInfo);
535
	    else if(MediaFiles::isPlaylistFile(file))
536 537
		openPlaylist(fileInfo.absFilePath());
        }
Nadeem Hasan's avatar
Nadeem Hasan committed
538
    }
539 540
}

541
void PlaylistSplitter::setupPlaylist(Playlist *p, bool raise, const char *icon)
542
{
543 544 545 546 547 548
    connect(p, SIGNAL(signalSelectionChanged(const PlaylistItemList &)),
	    m_editor, SLOT(slotSetItems(const PlaylistItemList &)));
    connect(p, SIGNAL(signalDoubleClicked()),
	    this, SIGNAL(signalDoubleClicked()));
    connect(p, SIGNAL(signalNumberOfItemsChanged(Playlist *)),
	    this, SLOT(slotPlaylistCountChanged(Playlist *)));
549
    connect(p, SIGNAL(signalAboutToRemove(PlaylistItem *)),
550
	    this, SLOT(slotPlaylistItemRemoved(PlaylistItem *)));
551
    connect(p, SIGNAL(signalFilesDropped(const QStringList &, Playlist *)),
552 553 554
	    this, SLOT(slotAddToPlaylist(const QStringList &, Playlist *)));
    connect(p, SIGNAL(signalSetNext(PlaylistItem *)),
	    this, SLOT(slotSetNextItem(PlaylistItem *)));
555

556 557
    if(icon)
	m_playlistBox->createItem(p, icon, raise);
558

559
    if(raise)
560
	m_playlistStack->raiseWidget(p);
561 562
}

563 564 565
Playlist *PlaylistSplitter::openPlaylist(const QString &file)
{
    QFileInfo fileInfo(file);
566 567 568
    if(!fileInfo.exists() ||
       !fileInfo.isFile() ||
       !fileInfo.isReadable() ||
569 570
       m_playlistFiles.insert(fileInfo.absFilePath()))
    {
571
	return 0;
572
    }
573

574
    Playlist *p = new Playlist(file, m_playlistStack, fileInfo.baseName(true).latin1());
575
    setupPlaylist(p);
576
    return p;
577 578
}

579 580 581 582 583 584 585
QString PlaylistSplitter::play(PlaylistItem *item)
{
    stop();

    if(!item)
	return QString::null;

586 587 588 589
    Playlist *p = static_cast<Playlist *>(item->listView());

    p->setPlaying(item, true);

590 591 592 593 594
    m_playingItem = item;

    return item->absFilePath();
}

595 596 597 598
////////////////////////////////////////////////////////////////////////////////
// private slots
////////////////////////////////////////////////////////////////////////////////

599
void PlaylistSplitter::slotChangePlaylist(const PlaylistList &l)
600
{
601 602
    if(l.isEmpty()) {
	emit signalPlaylistChanged();
603
	return;
604
    }
605

606 607
    Playlist *current = m_dynamicList;

608 609
    if(m_searchWidget)
	m_searchWidget->clear();
610 611

    m_nextPlaylistItem = 0;
612 613 614 615 616 617
    if(l.count() == 1) {
	m_playlistStack->raiseWidget(l.first());
	m_editor->slotSetItems(playlistSelection());
	m_dynamicList = 0;
    }
    else {
618
	m_dynamicList = new DynamicPlaylist(l, m_playlistStack, i18n("Dynamic List"));
619 620 621 622 623
	setupPlaylist(m_dynamicList, true, 0);
    }

    if(current)
	delete current;
624 625

    emit signalPlaylistChanged();
626 627
}

628
void PlaylistSplitter::slotPlaylistCountChanged(Playlist *p)
629
{
630 631
    if(p && p == m_playlistStack->visibleWidget())
	emit signalSelectedPlaylistCountChanged(p->childCount());
632 633
}

634
void PlaylistSplitter::slotPlaylistItemRemoved(PlaylistItem *item)
635
{
636 637
    if(item == m_playingItem)
	m_playingItem = 0;
638 639 640

    if(item == m_nextPlaylistItem)
	m_nextPlaylistItem = 0;
641 642
}

643
void PlaylistSplitter::slotCreatePlaylist(const PlaylistItemList &items)
644
{
645 646 647
    if(items.isEmpty())
	return;

648
    Playlist *playlist = slotCreatePlaylist();
649

650
    if(!playlist)
651
        return;
652

653
    playlist->createItems(items);
654
    m_playlistBox->initViewMode();
655 656
}

657
void PlaylistSplitter::slotShowSearchResults(const QString &query, bool caseSensitive, bool regExp)
658 659 660 661 662 663 664 665 666
{
    if(query.isEmpty()) {
	visiblePlaylist()->setItemsVisible(visiblePlaylist()->items(), true);
	return;
    }

    PlaylistList playlists;
    playlists.append(visiblePlaylist());

667 668
    PlaylistSearch::Component *component;

669
    if(regExp)
670 671 672 673
        component = new PlaylistSearch::Component(QRegExp(query, caseSensitive), m_searchWidget->searchedColumns(0));
    else
        component = new PlaylistSearch::Component(query, caseSensitive, m_searchWidget->searchedColumns(0));

674
    PlaylistSearch::ComponentList components;
675
    components.append(*component);
676 677 678

    PlaylistSearch search(playlists, components);

679
    Playlist::setItemsVisible(search.matchedItems(), true);
680
    Playlist::setItemsVisible(search.unmatchedItems(), false);
681
    delete component;
682 683
}

684 685 686 687 688
void PlaylistSplitter::slotVisibleColumnsChanged()
{
    m_searchWidget->slotUpdateColumns();
    m_searchWidget->slotQueryChanged();
    if(m_searchWidget->searchedColumns(0).count() > 1)
689
        slotShowSearchResults(m_searchWidget->query(), m_searchWidget->caseSensitive(), m_searchWidget->regExp());
690 691
}

692
#include "playlistsplitter.moc"
Nadeem Hasan's avatar
Nadeem Hasan committed
693 694

// vim:ts=8