Commit 766af7f3 authored by Harald Sitter's avatar Harald Sitter
Browse files

mtp: use chrono literals

parent 5b8e1019
......@@ -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>();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment