mirror of
https://github.com/LMMS/lmms.git
synced 2026-01-24 06:18:10 -05:00
This is a new plugin that imports hydrogen drum machine songs. Signed-off-by: Tobias Doerffel <tobias.doerffel@gmail.com>
30 lines
1.2 KiB
C++
30 lines
1.2 KiB
C++
#ifndef LFILEMNG_H
|
|
#define LFILEMNG_H
|
|
|
|
#include <iostream>
|
|
#include <fstream>
|
|
#include <vector>
|
|
#include <string>
|
|
#include <QDomDocument>
|
|
|
|
class LocalFileMng
|
|
{
|
|
public:
|
|
LocalFileMng();
|
|
~LocalFileMng();
|
|
std::vector<QString> getallPatternList(){
|
|
return m_allPatternList;
|
|
}
|
|
|
|
static QString readXmlString( QDomNode , const QString& nodeName, const QString& defaultValue, bool bCanBeEmpty = false, bool bShouldExists = true , bool tinyXmlCompatMode = false);
|
|
static float readXmlFloat( QDomNode , const QString& nodeName, float defaultValue, bool bCanBeEmpty = false, bool bShouldExists = true , bool tinyXmlCompatMode = false);
|
|
static int readXmlInt( QDomNode , const QString& nodeName, int defaultValue, bool bCanBeEmpty = false, bool bShouldExists = true , bool tinyXmlCompatMode = false);
|
|
static bool readXmlBool( QDomNode , const QString& nodeName, bool defaultValue, bool bShouldExists = true , bool tinyXmlCompatMode = false );
|
|
static void convertFromTinyXMLString( QByteArray* str );
|
|
static bool checkTinyXMLCompatMode( const QString& filename );
|
|
static QDomDocument openXmlDocument( const QString& filename );
|
|
std::vector<QString> m_allPatternList;
|
|
};
|
|
#endif //LFILEMNG_H
|
|
|