Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Paweł Wegner
libcloudstorage
Commits
e5a78c5d
Commit
e5a78c5d
authored
Jul 14, 2016
by
Paweł Wegner
Browse files
GoogleDrive: fixed mimetypes.
parent
43fde8b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/CloudProvider/GoogleDrive.cpp
View file @
e5a78c5d
...
...
@@ -25,7 +25,6 @@
#include
<jsoncpp/json/json.h>
#include
<algorithm>
#include
<iostream>
#include
<sstream>
#include
"Utility/HttpRequest.h"
...
...
@@ -130,14 +129,8 @@ bool GoogleDrive::isGoogleMimeType(const std::string& mime_type) const {
IItem
::
FileType
GoogleDrive
::
toFileType
(
const
std
::
string
&
mime_type
)
const
{
if
(
mime_type
==
"application/vnd.google-apps.folder"
)
return
IItem
::
FileType
::
Directory
;
else
if
(
mime_type
==
"application/vnd.google-apps.audio"
)
return
IItem
::
FileType
::
Audio
;
else
if
(
mime_type
==
"application/vnd.google-apps.video"
)
return
IItem
::
FileType
::
Video
;
else
if
(
mime_type
==
"application/vnd.google-apps.photo"
)
return
IItem
::
FileType
::
Image
;
else
return
I
Item
::
FileType
::
Unknown
;
return
Item
::
fromMimeType
(
mime_type
)
;
}
IItem
::
Pointer
GoogleDrive
::
toItem
(
const
Json
::
Value
&
v
)
const
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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