|
|
@ -144,7 +144,7 @@ class MediaQueue : public TDEListView, public DropProxyTarget
|
|
|
|
void syncPlaylist( const TQString &playlistName, const TQString &sql, bool loading=false );
|
|
|
|
void syncPlaylist( const TQString &playlistName, const TQString &sql, bool loading=false );
|
|
|
|
void syncPlaylist( const TQString &playlistName, const KURL &url, bool loading=false );
|
|
|
|
void syncPlaylist( const TQString &playlistName, const KURL &url, bool loading=false );
|
|
|
|
void addURL( const KURL& url, MetaBundle *bundle=NULL, const TQString &playlistName=TQString() );
|
|
|
|
void addURL( const KURL& url, MetaBundle *bundle=NULL, const TQString &playlistName=TQString() );
|
|
|
|
void addURL( const KURL& url, MediaItem *item );
|
|
|
|
LIBAMAROK_EXPORT void addURL( const KURL& url, MediaItem *item );
|
|
|
|
void addURLs( const KURL::List urls, const TQString &playlistName=TQString() );
|
|
|
|
void addURLs( const KURL::List urls, const TQString &playlistName=TQString() );
|
|
|
|
|
|
|
|
|
|
|
|
void URLsAdded(); // call after finishing adding single urls
|
|
|
|
void URLsAdded(); // call after finishing adding single urls
|
|
|
@ -169,7 +169,7 @@ class MediaQueue : public TDEListView, public DropProxyTarget
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class MediaBrowser : public TQVBox
|
|
|
|
class LIBAMAROK_EXPORT MediaBrowser : public TQVBox
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
|
@ -184,8 +184,8 @@ class MediaBrowser : public TQVBox
|
|
|
|
enum { CONNECT, DISCONNECT, TRANSFER, CONFIGURE, CUSTOM };
|
|
|
|
enum { CONNECT, DISCONNECT, TRANSFER, CONFIGURE, CUSTOM };
|
|
|
|
|
|
|
|
|
|
|
|
static bool isAvailable();
|
|
|
|
static bool isAvailable();
|
|
|
|
LIBAMAROK_EXPORT static MediaBrowser *instance() { return s_instance; }
|
|
|
|
static MediaBrowser *instance() { return s_instance; }
|
|
|
|
LIBAMAROK_EXPORT static MediaQueue *queue() { return s_instance ? s_instance->m_queue : 0; }
|
|
|
|
static MediaQueue *queue() { return s_instance ? s_instance->m_queue : 0; }
|
|
|
|
|
|
|
|
|
|
|
|
MediaBrowser( const char *name );
|
|
|
|
MediaBrowser( const char *name );
|
|
|
|
virtual ~MediaBrowser();
|
|
|
|
virtual ~MediaBrowser();
|
|
|
@ -244,7 +244,7 @@ class MediaBrowser : public TQVBox
|
|
|
|
|
|
|
|
|
|
|
|
KLineEdit* m_searchEdit;
|
|
|
|
KLineEdit* m_searchEdit;
|
|
|
|
TQTimer *m_timer;
|
|
|
|
TQTimer *m_timer;
|
|
|
|
LIBAMAROK_EXPORT static MediaBrowser *s_instance;
|
|
|
|
static MediaBrowser *s_instance;
|
|
|
|
|
|
|
|
|
|
|
|
TQValueList<MediaDevice *> m_devices;
|
|
|
|
TQValueList<MediaDevice *> m_devices;
|
|
|
|
TQValueList<MediaDevice *>::iterator m_currentDevice;
|
|
|
|
TQValueList<MediaDevice *>::iterator m_currentDevice;
|
|
|
@ -295,7 +295,7 @@ class MediaView : public TDEListView
|
|
|
|
MediaView( TQWidget *parent, MediaDevice *device );
|
|
|
|
MediaView( TQWidget *parent, MediaDevice *device );
|
|
|
|
virtual ~MediaView();
|
|
|
|
virtual ~MediaView();
|
|
|
|
LIBAMAROK_EXPORT KURL::List nodeBuildDragList( MediaItem* item, int flags=OnlySelected );
|
|
|
|
LIBAMAROK_EXPORT KURL::List nodeBuildDragList( MediaItem* item, int flags=OnlySelected );
|
|
|
|
int getSelectedLeaves(MediaItem *parent, TQPtrList<MediaItem> *list, int flags=OnlySelected );
|
|
|
|
LIBAMAROK_EXPORT int getSelectedLeaves(MediaItem *parent, TQPtrList<MediaItem> *list, int flags=OnlySelected );
|
|
|
|
LIBAMAROK_EXPORT MediaItem *newDirectory( MediaItem* parent );
|
|
|
|
LIBAMAROK_EXPORT MediaItem *newDirectory( MediaItem* parent );
|
|
|
|
bool setFilter( const TQString &filter, MediaItem *parent=NULL );
|
|
|
|
bool setFilter( const TQString &filter, MediaItem *parent=NULL );
|
|
|
|
|
|
|
|
|
|
|
|