• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

kget

  • sources
  • kde-4.12
  • kdenetwork
  • kget
  • transfer-plugins
  • mmsthreads
mmstransfer.h
Go to the documentation of this file.
1 /*
2  This file is part of the KDE project
3  Copyright (C) 2011 Ernesto Rodriguez Ortiz <eortiz@uci.cu>
4 
5  This program is free software: you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation, either version 3 of the License, or
8  (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program. If not, see <http://www.gnu.org/licenses/>.
17 
18 */
19 
20 #ifndef MMSTRANSFER_H
21 #define MMSTRANSFER_H
22 
23 
24 #include <QTime>
25 #include <kio/deletejob.h>
26 #include "core/kget.h"
27 #include "mmsdownload.h"
28 #include "mmssettings.h"
29 #include "core/transfer.h"
30 
31 class MmsTransfer : public Transfer
32 {
33  Q_OBJECT
34 
35  public:
36  MmsTransfer(TransferGroup * parent, TransferFactory * factory,
37  Scheduler * scheduler, const KUrl & src, const KUrl & dest,
38  const QDomElement * e = 0);
39  ~MmsTransfer();
40 
41  public slots:
42  void start();
43  void stop();
44  void deinit(Transfer::DeleteOptions options);
45 
46  private slots:
47  void slotResult();
48  void slotTotalSize(qulonglong size);
49  void slotProcessedSizeAndPercent(qulonglong size);
50  void slotSpeed(ulong bytes_per_sec);
51  void slotNotAllowMultiDownload();
52  void slotBrokenUrl();
53  void slotConnectionsErrors(int connections);
54 
55  private:
56  MmsDownload* m_mmsdownload;
57  int m_amountThreads;
58  bool m_retryDownload;
59  QString m_fileTemp;
60 };
61 
62 #endif
MmsTransfer::stop
void stop()
Definition: mmstransfer.cpp:70
MmsTransfer::start
void start()
Definition: mmstransfer.cpp:43
TransferGroup
class TransferGroup:
Definition: transfergroup.h:46
Scheduler
Scheduler class: what handle all the jobs in kget.
Definition: scheduler.h:32
MmsTransfer::~MmsTransfer
~MmsTransfer()
Definition: mmstransfer.cpp:34
MmsTransfer
Definition: mmstransfer.h:31
Job::scheduler
Scheduler * scheduler() const
Definition: job.h:106
MmsTransfer::MmsTransfer
MmsTransfer(TransferGroup *parent, TransferFactory *factory, Scheduler *scheduler, const KUrl &src, const KUrl &dest, const QDomElement *e=0)
Definition: mmstransfer.cpp:22
mmssettings.h
Transfer::factory
TransferFactory * factory() const
Definition: transfer.h:272
MmsDownload
Definition: mmsdownload.h:34
MmsTransfer::deinit
void deinit(Transfer::DeleteOptions options)
Definition: mmstransfer.cpp:91
Transfer::dest
const KUrl & dest() const
Definition: transfer.h:149
kget.h
transfer.h
TransferFactory
TransferFactory.
Definition: transferfactory.h:52
mmsdownload.h
Transfer
Definition: transfer.h:36
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kget

Skip menu "kget"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal