#include "components/playlist/playlist_model.hpp"
#include "dialogs/mediainfo.hpp"
#include "dialogs/playlist.hpp"
-#include "playlist.hpp"
#include <vlc_intf_strings.h>
#include "pixmaps/types/type_unknown.xpm"
{
p_intf = _p_intf;
p_playlist = _p_playlist;
- plEM = new PlaylistEventManager( _p_playlist );
i_cached_id = -1;
i_cached_input_id = -1;
i_popup_item = i_popup_parent = -1;
this, processInputItemUpdate( input_item_t *) );
CONNECT( THEMIM, inputChanged( input_thread_t * ),
this, processInputItemUpdate( input_thread_t* ) );
- CONNECT( plEM, itemAdded( int, int ), this, processItemAppend( int, int ) );
- CONNECT( plEM, itemRemoved( int ), this, processItemRemoval( int ) );
+ CONNECT( THEMIM, playlistItemAppended( int, int ),
+ this, processItemAppend( int, int ) );
+ CONNECT( THEMIM, playlistItemRemoved( int ),
+ this, processItemRemoval( int ) );
}
PLModel::~PLModel()
{
delete rootItem;
- delete plEM;
}
Qt::DropActions PLModel::supportedDropActions() const
setDropIndicatorShown(true);
invisibleRootItem()->setFlags( invisibleRootItem()->flags() & ~Qt::ItemIsDropEnabled );
- plEM = new PlaylistEventManager( THEPL );
-
- CONNECT( plEM, itemAdded( int, int ),
+ CONNECT( THEMIM, playlistItemAppended( int, int ),
this, plItemAdded( int, int ) );
- CONNECT( plEM, itemRemoved( int ),
+ CONNECT( THEMIM, playlistItemRemoved( int ),
this, plItemRemoved( int ) );
CONNECT( THEMIM->getIM(), metaChanged( input_item_t *),
this, inputItemUpdate( input_item_t * ) );
PLSelector::~PLSelector()
{
- delete plEM;
-
if( podcastsParent )
{
int c = podcastsParent->childCount();
#include "qt4.hpp"
class PlaylistWidget;
-class PlaylistEventManager;
enum SelectorItemType {
CATEGORY_TYPE,
PLSelItem * addPodcastItem( playlist_item_t *p_item );
inline PLSelItem * itemWidget( QTreeWidgetItem * );
intf_thread_t *p_intf;
- PlaylistEventManager *plEM;
QTreeWidgetItem *podcastsParent;
int podcastsParentId;
private slots: