18 lines
577 B
C++
18 lines
577 B
C++
//
|
|
// Created by versustune on 24.02.20.
|
|
//
|
|
|
|
#include "FileValidator.h"
|
|
|
|
ValidateObject *FileValidator::validate(const std::string &path) {
|
|
auto validatedObject = new ValidateObject();
|
|
validatedObject->ref = TagLib::FileRef(path.c_str(), false);
|
|
validatedObject->isValid = !validatedObject->ref.isNull();
|
|
return validatedObject;
|
|
}
|
|
|
|
// in this file we build a AudioFile from TagLib...
|
|
// we know that object is always a ptr never a nullptr so we can use that shit again ;)
|
|
AudioFile FileValidator::getAudioFile(ValidateObject *object) {
|
|
return AudioFile();
|
|
} |