~ubuntu-branches/ubuntu/lucid/ktorrent/lucid

« back to all changes in this revision

Viewing changes to plugins/mediaplayer/mediamodel.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2009-12-08 19:17:41 UTC
  • mfrom: (1.2.1 upstream) (0.7.12 sid)
  • Revision ID: james.westby@ubuntu.com-20091208191741-lqlq0xvnlv8ki19u
Tags: 3.3.1+dfsg.1-1ubuntu1
* Merge with Debian Testing remaining changes:
  - Build-depend directly on libboost-serialization1.40-dev since
    libboost-serialization-dev from boost-defaults is not in Main
  - Add in rules: include /usr/lib/kubuntu-desktop-i18n/debhelper/kubuntu.mk
  - Don't use dpkg-source 3.0 format
  - Add quilt to build-depends

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
                virtual bool insertRows(int row,int count,const QModelIndex & parent);
52
52
                virtual QModelIndex index(int row,int column,const QModelIndex & parent) const;
53
53
                virtual QModelIndex parent(const QModelIndex & index) const;
 
54
                virtual Qt::ItemFlags flags(const QModelIndex &index) const;
 
55
                virtual QStringList mimeTypes() const;
 
56
                virtual QMimeData* mimeData(const QModelIndexList &indexes) const;
54
57
                
55
58
                /// Get the full path of the model index
56
59
                QString pathForIndex(const QModelIndex & idx) const;
58
61
                /// Get the index of a full path
59
62
                QModelIndex indexForPath(const QString & path) const;
60
63
                
61
 
                /// Get the next item to play, if idx is invalid return the first playable item
62
 
                QModelIndex next(const QModelIndex & idx,bool random,bool complete_only) const;
63
 
                
64
64
        public slots:
65
65
                void onTorrentAdded(bt::TorrentInterface* t);
66
66
                void onTorrentRemoved(bt::TorrentInterface* t);
67
67
                
68
68
        private:
69
 
                QModelIndex next(const QModelIndex & idx) const;
70
 
                QModelIndex randomNext(const QModelIndex & idx,bool complete_only) const;
71
 
                
72
 
        private:
73
69
                struct Item
74
70
                {
75
71
                        bt::TorrentInterface* tc;