Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
KIO Extras
Commits
766af7f3
Commit
766af7f3
authored
Jan 06, 2022
by
Harald Sitter
✨
Browse files
mtp: use chrono literals
parent
5b8e1019
Changes
1
Hide whitespace changes
Inline
Side-by-side
mtp/shared/kmtpstorageinterface.cpp
View file @
766af7f3
...
...
@@ -7,8 +7,13 @@
*/
#include "kmtpstorageinterface.h"
#include <chrono>
#include "kmtpdeviceinterface.h"
using
namespace
std
::
chrono_literals
;
KMTPStorageInterface
::
KMTPStorageInterface
(
const
QString
&
dbusObjectPath
,
KMTPDeviceInterface
*
parent
)
:
QObject
(
parent
)
{
...
...
@@ -16,7 +21,7 @@ KMTPStorageInterface::KMTPStorageInterface(const QString &dbusObjectPath, KMTPDe
dbusObjectPath
,
QDBusConnection
::
sessionBus
(),
this
);
m_dbusInterface
->
setTimeout
(
5
*
60
*
1000
);
// TODO: listing folders with a huge amount of files may take a while
m_dbusInterface
->
setTimeout
(
std
::
chrono
::
milliseconds
(
5min
).
count
()
);
// TODO: listing folders with a huge amount of files may take a while
qDBusRegisterMetaType
<
KMTPFile
>
();
qDBusRegisterMetaType
<
KMTPFileList
>
();
...
...
Write
Preview
Markdown
is supported
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