/***************************************************************************
 * xmlmusic.cpp: implementation of XMLMusic class
 *
 * This file is part of KTabEdit, a KDE tabulature editor
 *
 * copyright (C) 2003-2006 the KTabEdit development team <mrgwen@gmail.com>
 * copyright (C) 2002-2003 the KGuitar development team <mrgwen@gmail.com>
 ***************************************************************************/

/***************************************************************************
 * 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.
 *
 * See the file COPYING for more information.
 ***************************************************************************/

#include "xmlmusic.h"

#include "tablature/tabbeateffects.h"
#include "tablature/tabchord.h"
#include "tablature/tabduration.h"

#include "tablature/tabbend.h"
#include "tablature/tabdynamic.h"

#include "tablature/tabgracenotetransition.h"
#include "tablature/tabgracenote.h"

#include "tablature/tabharmonic.h"
#include "tablature/tabslide.h"
#include "tablature/tabtrill.h"
#include "tablature/tabnoteeffect.h"

#include "tablature/tabnote.h"

#include "tablature/songkey.h"
#include "tablature/timesignature.h"

#include "tablature/tabmixtablechanges.h"
#include "tablature/tabtimes.h"
#include "tablature/tabbarproperties.h"

#include "tablature/tabbar.h"

#include "tablature/tablyrics.h"
#include "tablature/tabproperties.h"

#include "tablature/tabsong.h"

#include "tablature/trackmidiproperties.h"
#include "tablature/trackproperties.h"

#include "tablature/tabtrack.h"

XMLMusic::XMLMusic()
{
}

XMLMusic::~XMLMusic()
{
}

bool XMLMusic::loadFile(const QString &fileName)
{
// 	MusicXMLParser handler(this);
// 	MusicXMLErrorHandler errHndlr;
// 	QFile xmlFile(fileName);
// 	QXmlInputSource source(xmlFile);
// 	QXmlSimpleReader reader;
// 	reader.setContentHandler(&handler);
// 	reader.setErrorHandler(&errHndlr);
// 	errHndlr.setParser(&handler);
// 	reader.parse(source);
// 
// 	return TRUE;
}

bool XMLMusic::saveFile(const QString &fileName, const TabSong &tabSong)
{
/*    QFile f(fileName);
    if (!f.open(IO_WriteOnly))
		return FALSE;

    QTextStream s(&f);

	MusicXMLWriter handler(this);
	handler.write(s);

    f.close();
    return TRUE;*/
}
