Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KItinerary
Commits
fa1f8652
Commit
fa1f8652
authored
Mar 28, 2021
by
Volker Krause
Browse files
Deprecated all of ExtractorInput
This now has more flexible MIME type based alternatives.
parent
e635b3eb
Pipeline
#55799
passed with stages
in 12 minutes and 51 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/lib/extractorinput.h
View file @
fa1f8652
...
...
@@ -16,7 +16,9 @@ class QString;
namespace
KItinerary
{
/** Extractor input data type methods. */
/** Extractor input data type methods.
* @deprecated Use the MIME type based API instead.
*/
namespace
ExtractorInput
{
KITINERARY_EXPORT
Q_NAMESPACE
...
...
@@ -35,18 +37,18 @@ namespace ExtractorInput
Q_ENUM_NS
(
Type
)
/** Try to determine data type based on @p content. */
KITINERARY_EXPORT
Type
typeFromContent
(
const
QByteArray
&
content
);
KITINERARY_
DEPRECATED_
EXPORT
Type
typeFromContent
(
const
QByteArray
&
content
);
/** Return the content type based on the given MIME type. */
KITINERARY_EXPORT
Type
typeFromMimeType
(
const
QString
&
mimeType
);
KITINERARY_
DEPRECATED_
EXPORT
Type
typeFromMimeType
(
const
QString
&
mimeType
);
/** Try to determine data type based on the file name. */
KITINERARY_EXPORT
Type
typeFromFileName
(
const
QString
&
fileName
);
KITINERARY_
DEPRECATED_
EXPORT
Type
typeFromFileName
(
const
QString
&
fileName
);
/** Convert type enum to a string. */
KITINERARY_EXPORT
QString
typeToString
(
Type
type
);
KITINERARY_
DEPRECATED_
EXPORT
QString
typeToString
(
Type
type
);
/** Convert string representation of the type to an enum. */
KITINERARY_EXPORT
Type
typeFromName
(
const
QString
&
name
);
KITINERARY_
DEPRECATED_
EXPORT
Type
typeFromName
(
const
QString
&
name
);
/** Convert type to a MIME type. */
QString
typeToMimeType
(
Type
type
);
KITINERARY_DEPRECATED
QString
typeToMimeType
(
Type
type
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment