knowL: Knowledge Libraries
Loading...
Searching...
No Matches
Format.h
1/*
2 * Copyright (c) 2015 Cyrille Berger <cberger@cberger.net>
3 *
4 */
5
6#pragma once
7
8#include <QString>
9#include "ReturnValue.h"
10
11class QFileInfo;
12class QUrl;
13
14namespace knowCore
15{
16 class Format
17 {
18 public:
19 static QString Turtle;
20 static QString JSON;
21 static QString XML;
22 static QString SRX;
23 static QString CBOR;
24 static QString CSV;
25 static QString Auto;
26 };
27 knowCore::ReturnValue<QString> mimeToFormat(const QString& _mime);
28 knowCore::ReturnValue<QString> formatFor(const QByteArray& _data);
29 QString format_for(const QFileInfo& _fileInfo); // TODO 3.x rename to formatFor and use ReturnValue
30 QString format_for(const QString& _filename);
31 QString format_for(const QUrl& _filename);
32}
Definition Format.h:17
Definition ReturnValue.h:29