Commit dec229cd authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: media library disambiguation.

If we need to axe something more...
parent 0106a8b6
/***************************************************************************** /*****************************************************************************
* ml_item.cpp: the media library's result item * ml_item.cpp: the SQL media library's result item
***************************************************************************** *****************************************************************************
* Copyright (C) 2008-2011 the VideoLAN Team and AUTHORS * Copyright (C) 2008-2011 the VideoLAN Team and AUTHORS
* $Id$ * $Id$
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
# include <config.h> # include <config.h>
#endif #endif
#ifdef MEDIA_LIBRARY #ifdef SQL_MEDIA_LIBRARY
#include <QDateTime> #include <QDateTime>
#include <QUrl> #include <QUrl>
......
/***************************************************************************** /*****************************************************************************
* ml_item.hpp: the media library's result item * ml_item.hpp: the SQL media library's result item
***************************************************************************** *****************************************************************************
* Copyright (C) 2008-2011 the VideoLAN Team and AUTHORS * Copyright (C) 2008-2011 the VideoLAN Team and AUTHORS
* $Id$ * $Id$
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
# include <config.h> # include <config.h>
#endif #endif
#ifdef MEDIA_LIBRARY #ifdef SQL_MEDIA_LIBRARY
#include <vlc_common.h> #include <vlc_common.h>
#include <vlc_interface.h> #include <vlc_interface.h>
......
/***************************************************************************** /*****************************************************************************
* ml_model.cpp: the media library's model * ml_model.cpp: the SQL media library's model
***************************************************************************** *****************************************************************************
* Copyright (C) 2008-2011 the VideoLAN Team and AUTHORS * Copyright (C) 2008-2011 the VideoLAN Team and AUTHORS
* $Id$ * $Id$
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
# include <config.h> # include <config.h>
#endif #endif
#ifdef MEDIA_LIBRARY #ifdef SQL_MEDIA_LIBRARY
#include <QUrl> #include <QUrl>
#include <QMenu> #include <QMenu>
......
/***************************************************************************** /*****************************************************************************
* ml_model.hpp ML model * ml_model.hpp SQL ML model
***************************************************************************** *****************************************************************************
* Copyright (C) 2008-2011 the VideoLAN Team and AUTHORS * Copyright (C) 2008-2011 the VideoLAN Team and AUTHORS
* $Id$ * $Id$
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
# include <config.h> # include <config.h>
#endif #endif
#ifdef MEDIA_LIBRARY #ifdef SQL_MEDIA_LIBRARY
#include <vlc_common.h> #include <vlc_common.h>
#include <vlc_interface.h> #include <vlc_interface.h>
#include <vlc_media_library.h> #include <vlc_media_library.h>
......
...@@ -100,7 +100,7 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QWidget *_par ) ...@@ -100,7 +100,7 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QWidget *_par )
model->setModel( VLCProxyModel::PL_MODEL, plmodel ); model->setModel( VLCProxyModel::PL_MODEL, plmodel );
model->switchToModel( VLCProxyModel::PL_MODEL ); model->switchToModel( VLCProxyModel::PL_MODEL );
#ifdef MEDIA_LIBRARY #ifdef SQL_MEDIA_LIBRARY
MLModel *mlmodel = new MLModel( p_intf, model ); MLModel *mlmodel = new MLModel( p_intf, model );
model->setModel( VLCProxyModel::SQLML_MODEL, mlmodel ); model->setModel( VLCProxyModel::SQLML_MODEL, mlmodel );
#endif #endif
......
...@@ -240,7 +240,7 @@ void PLSelector::createItems() ...@@ -240,7 +240,7 @@ void PLSelector::createItems()
ml->treeItem()->setData( 0, SPECIAL_ROLE, QVariant( IS_ML ) ); ml->treeItem()->setData( 0, SPECIAL_ROLE, QVariant( IS_ML ) );
ml->treeItem()->setData( 0, Qt::DecorationRole, QIcon( ":/sidebar/library" ) ); ml->treeItem()->setData( 0, Qt::DecorationRole, QIcon( ":/sidebar/library" ) );
#ifdef MEDIA_LIBRARY #ifdef SQL_MEDIA_LIBRARY
/* SQL ML */ /* SQL ML */
ml = addItem( SQL_ML_TYPE, "SQL Media Library" )->treeItem(); ml = addItem( SQL_ML_TYPE, "SQL Media Library" )->treeItem();
ml->treeItem()->setData( 0, Qt::DecorationRole, QIcon( ":/sidebar/library" ) ); ml->treeItem()->setData( 0, Qt::DecorationRole, QIcon( ":/sidebar/library" ) );
...@@ -377,7 +377,7 @@ void PLSelector::setSource( QTreeWidgetItem *item ) ...@@ -377,7 +377,7 @@ void PLSelector::setSource( QTreeWidgetItem *item )
item->setData( 0, CAP_SEARCH_ROLE, true ); item->setData( 0, CAP_SEARCH_ROLE, true );
} }
} }
#ifdef MEDIA_LIBRARY #ifdef SQL_MEDIA_LIBRARY
else if( i_type == SQL_ML_TYPE ) else if( i_type == SQL_ML_TYPE )
{ {
emit categoryActivated( NULL, true ); emit categoryActivated( NULL, true );
......
...@@ -454,7 +454,7 @@ void StandardPLPanel::searchDelayed( const QString& searchText ) ...@@ -454,7 +454,7 @@ void StandardPLPanel::searchDelayed( const QString& searchText )
/* This activated by the selector selection */ /* This activated by the selector selection */
void StandardPLPanel::setRootItem( playlist_item_t *p_item, bool b ) void StandardPLPanel::setRootItem( playlist_item_t *p_item, bool b )
{ {
#ifdef MEDIA_LIBRARY #ifdef SQL_MEDIA_LIBRARY
if( b ) if( b )
{ {
msg_Dbg( p_intf, "Setting the SQL ML" ); msg_Dbg( p_intf, "Setting the SQL ML" );
......
...@@ -568,7 +568,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -568,7 +568,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
#else #else
ui.osGroupBox->hide(); ui.osGroupBox->hide();
#endif #endif
#ifdef MEDIA_LIBRARY #ifdef SQL_MEDIA_LIBRARY
BUTTONACT( ui.sqlMLbtn, configML() ); BUTTONACT( ui.sqlMLbtn, configML() );
#else #else
ui.sqlMLbtn->hide(); ui.sqlMLbtn->hide();
...@@ -986,7 +986,7 @@ void SPrefsPanel::changeStyle( QString s_style ) ...@@ -986,7 +986,7 @@ void SPrefsPanel::changeStyle( QString s_style )
void SPrefsPanel::configML() void SPrefsPanel::configML()
{ {
#ifdef MEDIA_LIBRARY #ifdef SQL_MEDIA_LIBRARY
MLConfDialog *mld = new MLConfDialog( this, p_intf ); MLConfDialog *mld = new MLConfDialog( this, p_intf );
mld->exec(); mld->exec();
delete mld; delete mld;
......
/***************************************************************************** /*****************************************************************************
* ml_configuration.cpp: ML's configuration dialog (folder view) * ml_configuration.cpp: SQL ML's configuration dialog (folder view)
***************************************************************************** *****************************************************************************
* Copyright (C) 2008-2010 the VideoLAN Team and AUTHORS * Copyright (C) 2008-2010 the VideoLAN Team and AUTHORS
* $Id$ * $Id$
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
# include <config.h> # include <config.h>
#endif #endif
#ifdef MEDIA_LIBRARY #ifdef SQL_MEDIA_LIBRARY
#include "ml_configuration.hpp" #include "ml_configuration.hpp"
......
/***************************************************************************** /*****************************************************************************
* ml_configuration.hpp: ML's configuration dialog (folder view) * ml_configuration.hpp: SQL ML's configuration dialog (folder view)
***************************************************************************** *****************************************************************************
* Copyright (C) 2008-2010 the VideoLAN Team and AUTHORS * Copyright (C) 2008-2010 the VideoLAN Team and AUTHORS
* $Id$ * $Id$
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
# include <config.h> # include <config.h>
#endif #endif
#ifdef MEDIA_LIBRARY #ifdef SQL_MEDIA_LIBRARY
#include <vlc_common.h> #include <vlc_common.h>
#include <vlc_media_library.h> #include <vlc_media_library.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment