diff --git a/src/sendfile/sendfilesjob.h b/src/sendfile/sendfilesjob.h index 5bb55c0c..eb9d600f 100644 --- a/src/sendfile/sendfilesjob.h +++ b/src/sendfile/sendfilesjob.h @@ -1,76 +1,75 @@ /***************************************************************************** * This file is part of the KDE project * * * * Copyright (C) 2010-2011 Alejandro Fiestas Olivares * * Copyright (C) 2010-2011 UFO Coders * * * * This library is free software; you can redistribute it and/or * * modify it under the terms of the GNU Library General Public * * License as published by the Free Software Foundation; either * * version 2 of the License, or (at your option) any later version. * * * * This library is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * * Library General Public License for more details. * * * * You should have received a copy of the GNU Library General Public License * * along with this library; see the file COPYING.LIB. If not, write to * * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * * Boston, MA 02110-1301, USA. * *****************************************************************************/ #ifndef SENDFILESJOB_H #define SENDFILESJOB_H #include #include #include #include #include namespace BluezQt { class ObexObjectPush; - class InitObexManagerJob; } class SendFilesJob : public KJob { Q_OBJECT public: explicit SendFilesJob(const QStringList &files, BluezQt::DevicePtr device, const QDBusObjectPath &session, QObject *parent = nullptr); void start() override; bool doKill() override; private Q_SLOTS: void doStart(); void nextJob(); void sendFileFinished(BluezQt::PendingCall *call); void jobDone(); void transferredChanged(quint64 transferred); void statusChanged(BluezQt::ObexTransfer::Status status); private: void progress(quint64 transferBytes); QTime m_time; QStringList m_files; QList m_filesSizes; QString m_currentFile; quint64 m_progress; quint64 m_totalSize; qulonglong m_speedBytes; quint64 m_currentFileSize; quint64 m_currentFileProgress; BluezQt::DevicePtr m_device; BluezQt::ObexTransferPtr m_transfer; BluezQt::ObexObjectPush *m_objectPush; }; #endif // SENDFILESJOB_H