~ubuntu-branches/ubuntu/gutsy/amarok/gutsy-updates

« back to all changes in this revision

Viewing changes to amarok/src/mediabrowser.h

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Mercatante
  • Date: 2006-11-03 23:57:33 UTC
  • mfrom: (1.31.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061103235733-a41oyfz4mzienqin
Tags: 2:1.4.4-0ubuntu2
Add debian/kubuntu-media-amarok and
debian amarok_play_audiocd.desktop for good KDE integration

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
 
55
55
        MediaItem *lastChild() const;
56
56
 
57
 
        KURL url() const;
 
57
        virtual KURL url() const;
58
58
        const MetaBundle *bundle() const;
59
59
        void setBundle( MetaBundle *bundle );
60
60
 
81
81
        virtual bool ratingChanged()  const { return false; }
82
82
        virtual long size()           const;
83
83
        virtual MediaDevice *device() const { return m_device; }
 
84
        virtual bool listened()       const { return m_listened; }
 
85
        virtual void setListened( bool listened=true ) { m_listened = listened; }
84
86
 
85
87
        int compare( QListViewItem *i, int col, bool ascending ) const;
86
88
        int flags() const { return m_flags; }
94
96
        QString         m_data;
95
97
        MediaDevice    *m_device;
96
98
        int             m_flags;
 
99
        bool            m_listened;
97
100
 
98
101
        static QPixmap *s_pixUnknown;
99
102
        static QPixmap *s_pixRootItem;
124
127
        MediaItem *findPath( QString path );
125
128
 
126
129
        KIO::filesize_t totalSize() const; // total size of items to transfer in KB
 
130
        void computeSize() const; // compute total size of items to transfer in KB
 
131
        void addItemToSize( const MediaItem *item ) const;
 
132
        void subtractItemFromSize( const MediaItem *item, bool unconditonally=false ) const;
 
133
 
127
134
        void removeSelected();
128
135
        void clearItems();
129
136
 
152
159
 
153
160
    private:
154
161
        void keyPressEvent( QKeyEvent *e );
155
 
 
156
162
        MediaBrowser *m_parent;
 
163
        mutable KIO::filesize_t m_totalSize;
157
164
};
158
165
 
159
166
 
186
193
        QString getDisplayPluginName ( const QString string ) { return m_pluginAmarokName[string]; }
187
194
        const KTrader::OfferList &getPlugins() { return m_plugins; }
188
195
        void transcodingFinished( const QString &src, const QString &dst );
 
196
        bool isTranscoding() const { return m_waitForTranscode; }
189
197
        void updateStats();
190
198
        void updateButtons();
191
199
        void updateDevices();
287
295
        void renameItem( QListViewItem *item );
288
296
        void slotExpand( QListViewItem* );
289
297
        void selectAll() { QListView::selectAll(true); }
 
298
        void invokeItem( QListViewItem*, const QPoint &, int column );
290
299
        void invokeItem( QListViewItem* );
291
300
 
292
301
    private:
307
316
   all items are stored in a hierarchy of MediaItems,
308
317
   when items are manipulated the MediaItems have to be updated accordingly */
309
318
 
310
 
class LIBAMAROK_EXPORT MediaDevice : public QObject, public amaroK::Plugin
 
319
class LIBAMAROK_EXPORT MediaDevice : public QObject, public Amarok::Plugin
311
320
{
312
321
    Q_OBJECT
313
322
    friend class DeviceConfigureDialog;