Commit 8f85b257 authored by Christophe Courtaut's avatar Christophe Courtaut
Browse files

Removed useless metadata manager ;)

parent 9534b257
......@@ -102,7 +102,6 @@ MainWindow::~MainWindow()
if ( m_renderer )
delete m_renderer;
MetaDataManager::destroyInstance();
LibVLCpp::Instance::destroyInstance();
}
......@@ -307,7 +306,6 @@ void MainWindow::initializeDockWidgets( void )
QDockWidget::AllDockWidgetFeatures,
Qt::LeftDockWidgetArea );
setupLibrary();
m_metaDataManager = MetaDataManager::getInstance();
}
void MainWindow::createGlobalPreferences()
......
......@@ -33,7 +33,6 @@
#include "DockWidgetManager.h"
#include "LanguagePreferences.h"
#include "MetaDataManager.h"
#include "Timeline.h"
#include "WorkflowFileRenderer.h"
#include "PreviewWidget.h"
......@@ -68,7 +67,6 @@ private:
void createProjectPreferences();
Ui::MainWindow m_ui;
MetaDataManager* m_metaDataManager;
QSlider* m_zoomSlider;
Timeline* m_timeline;
PreviewWidget* m_clipPreview;
......
/*****************************************************************************
* MetaDataManager.h: Launch the metadata threads
*****************************************************************************
* Copyright (C) 2008-2009 the VLMC team
*
* Authors: Hugo Beauzee-Luyssen <hugo@vlmc.org>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#include <QtDebug>
#include "MetaDataManager.h"
#include "MetaDataWorker.h"
#include "Library.h"
MetaDataManager::MetaDataManager()
{
connect( Library::getInstance(), SIGNAL( metadataRequired( Media* ) ), this, SLOT( metadataRequired( Media* ) ) );
}
MetaDataManager::~MetaDataManager()
{
}
void MetaDataManager::metadataRequired( Media* media )
{
if ( media->hasMetadata() == false )
{
MetaDataWorker* w = new MetaDataWorker( media );
w->compute();
}
}
/*****************************************************************************
* MetaDataManager.h: Launch the metadata threads
*****************************************************************************
* Copyright (C) 2008-2009 the VLMC team
*
* Authors: Hugo Beauzee-Luyssen <hugo@vlmc.org>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifndef METADATAMANAGER_H
#define METADATAMANAGER_H
#include <QObject>
#include "Media.h"
#include "Singleton.hpp"
class MetaDataManager : public QObject, public Singleton<MetaDataManager>
{
Q_OBJECT
Q_DISABLE_COPY( MetaDataManager );
friend class Singleton<MetaDataManager>;
public slots:
void metadataRequired( Media* );
private:
MetaDataManager();
~MetaDataManager();
};
#endif // METADATAMANAGER_H
......@@ -48,7 +48,6 @@ SOURCES += src/main.cpp \
src/Renderer/WorkflowRenderer.cpp \
src/Renderer/WorkflowFileRenderer.cpp \
src/GUI/UndoStack.cpp \
src/Metadata/MetaDataManager.cpp \
src/GUI/ClipProperty.cpp \
src/GUI/WorkflowFileRendererDialog.cpp \
src/GUI/Settings.cpp \
......@@ -125,7 +124,6 @@ HEADERS += src/GUI/MainWindow.h \
src/Tools/Pool.hpp \
src/GUI/UndoStack.h \
src/Tools/WaitCondition.hpp \
src/Metadata/MetaDataManager.h \
src/Tools/QSingleton.hpp \
src/GUI/ClipProperty.h \
src/GUI/WorkflowFileRendererDialog.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