~neon/juk/master

« back to all changes in this revision

Viewing changes to playlist.h

  • Committer: Scott Wheeler
  • Date: 2002-09-18 21:56:09 UTC
  • Revision ID: git-v1:de9543f4996e638ee4b93221d9716b7836a06b18
More updates including drag and drop support between playlists, from one
playlist to another, and from other KURL (i.e. Konq) drag sources.

svn path=/trunk/kdemultimedia/juk/; revision=178830

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
    Playlist(QWidget *parent = 0, const char *name = 0);
32
32
    virtual ~Playlist();
33
33
 
34
 
    virtual void append(const QString &item);
35
 
    virtual void append(const QStringList &items);
 
34
    /** Set sorted = false to append the items at the end of the list rather
 
35
        than adding them into the list in their sorted place. */
 
36
    virtual void append(const QString &item, bool sorted = true);
 
37
    virtual void append(const QStringList &items, bool sorted = true);
36
38
 
37
39
    virtual void clearItems(const QPtrList<PlaylistItem> &items);
38
40
 
54
56
    QStringList &getAlbumList();
55
57
 
56
58
protected:
 
59
    virtual QDragObject *dragObject();
 
60
    virtual void contentsDropEvent(QDropEvent *e);
 
61
    virtual void contentsDragMoveEvent(QDragMoveEvent *e);
57
62
    /** This is being used as a mini-factory of sorts to make the construction
58
63
        of PlaylistItems virtual. */
59
64
    virtual PlaylistItem *createItem(const QFileInfo &file);
60
 
    virtual void appendImpl(const QString &item);
 
65
    virtual void appendImpl(const QString &item, bool sorted = true);
61
66
 
62
67
private:
63
68
    void setup();