33 |
#include <sqlite3.h> |
#include <sqlite3.h> |
34 |
|
|
35 |
#include "../common/File.h" |
#include "../common/File.h" |
36 |
|
#include "../common/optional.h" |
37 |
|
|
38 |
namespace LinuxSampler { |
namespace LinuxSampler { |
39 |
|
|
416 |
private: |
private: |
417 |
int FileCount; |
int FileCount; |
418 |
}; |
}; |
419 |
|
|
420 |
|
struct InstrumentInfo { |
421 |
|
String instrumentName; |
422 |
|
String product; |
423 |
|
String artists; |
424 |
|
String keywords; |
425 |
|
String comments; |
426 |
|
bool isDrum; |
427 |
|
|
428 |
|
InstrumentInfo() : isDrum(false) {} |
429 |
|
}; |
430 |
|
|
431 |
|
class InstrumentFileInfo { |
432 |
|
public: |
433 |
|
virtual ~InstrumentFileInfo() {} |
434 |
|
virtual optional<InstrumentInfo> getInstrumentInfo(int index, ScanProgress* pProgress) = 0; |
435 |
|
virtual String formatName() = 0; |
436 |
|
virtual String formatVersion() = 0; |
437 |
|
|
438 |
|
static InstrumentFileInfo* getFileInfoFor(String filename); |
439 |
|
static bool isSupportedFile(String filename); |
440 |
|
|
441 |
|
protected: |
442 |
|
InstrumentFileInfo(String filename) : m_fileName(filename) {} |
443 |
|
|
444 |
|
String m_fileName; |
445 |
|
}; |
446 |
|
|
447 |
} // namespace LinuxSampler |
} // namespace LinuxSampler |
448 |
|
|
449 |
#endif // __LS_INSTRUMENTSDBUTILITIES_H__ |
#endif // __LS_INSTRUMENTSDBUTILITIES_H__ |