• 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
  • contentfetch
contentfetch.h
Go to the documentation of this file.
1 /* This file is part of the KDE project
2 
3  Copyright (C) 2008 Ningyu Shi <shiningyu@gmail.com>
4 
5  This program is free software; you can redistribute it and/or
6  modify it under the terms of the GNU General Public
7  License as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
9 */
10 
11 
12 #ifndef CONTENT_FETCH_H
13 #define CONTENT_FETCH_H
14 
15 #include "core/transfer.h"
16 #include "script.h"
17 #include <QString>
18 
19 class ContentFetch : public Transfer
20 {
21  Q_OBJECT
22 
23  public:
24  ContentFetch(TransferGroup * parent, TransferFactory * factory,
25  Scheduler * scheduler, const KUrl & src,
26  const KUrl & dest, const QString &scriptFile,
27  const QDomElement * e = 0);
28 
29  public slots:
30  void deinit();
31 
32  // --- Job virtual functions ---
33  void start();
34  void stop();
35 
36  bool isResumable() const;
37 
38  void setPercent(int percent);
39 
40  private:
41  Script *m_p_script;
42  TransferGroup *m_p_group;
43  QString m_scriptFile;
44  QString m_destDir;
45  private slots:
46  void slotFinish();
47  void slotAbort(const QString&);
48  void slotAddTransfer(const QString &url, const QString &filename);
49  void slotSetTextStatus(const QString& text);
50 };
51 
52 #endif // CONTENT_FETCH_H
ContentFetch::ContentFetch
ContentFetch(TransferGroup *parent, TransferFactory *factory, Scheduler *scheduler, const KUrl &src, const KUrl &dest, const QString &scriptFile, const QDomElement *e=0)
Definition: contentfetch.cpp:28
ContentFetch::start
void start()
Definition: contentfetch.cpp:49
TransferGroup
class TransferGroup:
Definition: transfergroup.h:46
Scheduler
Scheduler class: what handle all the jobs in kget.
Definition: scheduler.h:32
Job::scheduler
Scheduler * scheduler() const
Definition: job.h:106
Transfer::percent
int percent() const
Definition: transfer.h:178
script.h
Script
Definition: script.h:24
Transfer::factory
TransferFactory * factory() const
Definition: transfer.h:272
ContentFetch::setPercent
void setPercent(int percent)
Definition: contentfetch.cpp:112
ContentFetch
Definition: contentfetch.h:19
Transfer::dest
const KUrl & dest() const
Definition: transfer.h:149
ContentFetch::isResumable
bool isResumable() const
Definition: contentfetch.cpp:107
ContentFetch::deinit
void deinit()
Definition: contentfetch.cpp:44
transfer.h
TransferFactory
TransferFactory.
Definition: transferfactory.h:52
ContentFetch::stop
void stop()
Definition: contentfetch.cpp:59
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