• 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
  • metalink
metalinkxml.h
Go to the documentation of this file.
1 /* This file is part of the KDE project
2 
3  Copyright (C) 2004 Dario Massarin <nekkar@libero.it>
4  Copyright (C) 2012 Aish Raj Dahal <dahalaishraj@gmail.com>
5 
6  This program is free software; you can redistribute it and/or
7  modify it under the terms of the GNU General Public
8  License as published by the Free Software Foundation; either
9  version 2 of the License, or (at your option) any later version.
10 */
11 
12 
13 #ifndef METALINK_H
14 #define METALINK_H
15 
16 #include <KIO/Job>
17 
18 #include "core/datasourcefactory.h"
19 #include "core/transfer.h"
20 #include "abstractmetalink.h"
21 
22 #include "ui/metalinkcreator/metalinker.h"
23 
24 
25 class MetalinkXml : public AbstractMetalink
26 {
27  Q_OBJECT
28 
29  public:
30  MetalinkXml(TransferGroup * parent, TransferFactory * factory,
31  Scheduler * scheduler, const KUrl & src, const KUrl & dest,
32  const QDomElement * e = 0);
33 
34  ~MetalinkXml();
35 
36  void save(const QDomElement &element);
37  void load(const QDomElement *e);
38 
39  public Q_SLOTS:
40  // --- Job virtual functions ---
41  void start();
42 
43  void deinit(Transfer::DeleteOptions options);
44 
45  protected Q_SLOTS:
51  bool metalinkInit(const KUrl &url = KUrl(), const QByteArray &data = QByteArray());
52 
53  protected :
57  void downloadMetalink();
58  void startMetalink();
59  void untickAllFiles();
60 
61  private:
62  bool m_metalinkJustDownloaded;
63  KUrl m_localMetalinkLocation;
64  KGetMetalink::Metalink m_metalink;
65 
66 };
67 
68 #endif
TransferGroup
class TransferGroup:
Definition: transfergroup.h:46
Scheduler
Scheduler class: what handle all the jobs in kget.
Definition: scheduler.h:32
MetalinkXml::~MetalinkXml
~MetalinkXml()
Definition: metalinkxml.cpp:53
Job::scheduler
Scheduler * scheduler() const
Definition: job.h:106
MetalinkXml::load
void load(const QDomElement *e)
Loads the transfer's info from the QDomElement.
Definition: metalinkxml.cpp:271
metalinker.h
MetalinkXml::MetalinkXml
MetalinkXml(TransferGroup *parent, TransferFactory *factory, Scheduler *scheduler, const KUrl &src, const KUrl &dest, const QDomElement *e=0)
Definition: metalinkxml.cpp:45
KGetMetalink::Metalink
Definition: metalinker.h:299
Transfer::factory
TransferFactory * factory() const
Definition: transfer.h:272
MetalinkXml::downloadMetalink
void downloadMetalink()
Definition: metalinkxml.cpp:75
MetalinkXml::metalinkInit
bool metalinkInit(const KUrl &url=KUrl(), const QByteArray &data=QByteArray())
Definition: metalinkxml.cpp:85
MetalinkXml::deinit
void deinit(Transfer::DeleteOptions options)
Definition: metalinkxml.cpp:250
AbstractMetalink
Definition: abstractmetalink.h:22
MetalinkXml::save
void save(const QDomElement &element)
Saves this transfer to the given QDomNode.
Definition: metalinkxml.cpp:321
MetalinkXml::startMetalink
void startMetalink()
Starts the type of metalink download.
Definition: metalinkxml.cpp:222
abstractmetalink.h
Transfer::dest
const KUrl & dest() const
Definition: transfer.h:149
datasourcefactory.h
MetalinkXml::start
void start()
Definition: metalinkxml.cpp:57
MetalinkXml::untickAllFiles
void untickAllFiles()
transfer.h
MetalinkXml
Definition: metalinkxml.h:25
TransferFactory
TransferFactory.
Definition: transferfactory.h:52
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