Mercurial > hg > svcore
comparison rdf/RDFImporter.h @ 1852:a454c7477b4f
Be more cautious about firing up an RDF file parser to identify a document - don't do it at all if the document is not apparently text
author | Chris Cannam |
---|---|
date | Thu, 30 Apr 2020 14:46:07 +0100 |
parents | 6d09d68165a4 |
children |
comparison
equal
deleted
inserted
replaced
1851:91056142abd0 | 1852:a454c7477b4f |
---|---|
60 AudioRef, | 60 AudioRef, |
61 OtherRDFDocument, | 61 OtherRDFDocument, |
62 NotRDF | 62 NotRDF |
63 }; | 63 }; |
64 | 64 |
65 static RDFDocumentType identifyDocumentType(QString url); | 65 static RDFDocumentType identifyDocumentType(QUrl url); |
66 | 66 |
67 static bool isPlausibleDocumentOfAnyKind(QUrl url); | |
68 | |
67 protected: | 69 protected: |
68 RDFImporterImpl *m_d; | 70 RDFImporterImpl *m_d; |
69 }; | 71 }; |
70 | 72 |
71 #endif | 73 #endif |