36 return (suffix1.compare(suffix2, Qt::CaseInsensitive) == 0 || suffix1.compare(suffix2, Qt::CaseInsensitive) == 0);
41 mCanReadDataType(canReadDataType),
42 mCanWriteDataType(canWriteDataType),
43 mFileSuffix(fileSuffix),
44 mPatientModelService(patientModelService)
46 this->setObjectName(mName);
61 QString fileType = QFileInfo(filename).suffix();
62 bool rightFileType =
sameSuffix(fileType, mFileSuffix);
63 bool rightDataType = (type == mCanReadDataType);
69 QString fileType = QFileInfo(filename).suffix();
70 bool rightFileType =
sameSuffix(fileType, mFileSuffix);
71 bool rightDataType = (type == mCanWriteDataType);
77 QFileInfo fileInfo(filename);
79 QString unique = QUuid::createUuid().toString();
81 QString uid = strippedFilename +
"_" + unique +
"_" +QDateTime::currentDateTime().toString(
timestampSecondsFormat());
83 name = strippedFilename;
85 DataPtr data = mPatientModelService->createData(type, uid, name);