1 /***************************************************************************
2 kdenlivedoc.cpp - description
4 begin : Fri Nov 22 2002
5 copyright : (C) 2002 by Jason Wood
6 email : jasonwood@blueyonder.co.uk
7 copyright : (C) 2005 Lucio Flavio Correa
8 email : lucio.correa@gmail.com
9 copyright : (C) Marco Gittler
10 email : g.marco@freenet.de
11 copyright : (C) 2006 Jean-Baptiste Mardelle
14 ***************************************************************************/
16 /***************************************************************************
18 * This program is free software; you can redistribute it and/or modify *
19 * it under the terms of the GNU General Public License as published by *
20 * the Free Software Foundation; either version 2 of the License, or *
21 * (at your option) any later version. *
23 ***************************************************************************/
27 #include <KStandardDirs>
28 #include <KMessageBox>
30 #include <KFileDialog>
31 #include <KIO/NetAccess>
34 #include "kdenlivedoc.h"
36 KdenliveDoc::KdenliveDoc(KUrl url, double fps, int width, int height, QWidget *parent):QObject(parent), m_url(url), m_projectName(NULL)
40 if(KIO::NetAccess::download(url.path(), tmpFile, parent))
43 m_document.setContent(&file, false);
45 m_projectName = url.fileName();
47 KIO::NetAccess::removeTempFile(tmpFile);
51 KMessageBox::error(parent,
52 KIO::NetAccess::lastErrorString());
57 KdenliveDoc::~KdenliveDoc()
61 QString KdenliveDoc::documentName()
66 QDomNodeList KdenliveDoc::producersList()
68 return m_document.elementsByTagName("producer");
71 #include "kdenlivedoc.moc"