• 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
  • core
  • plugin
transferfactory.cpp
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) 2009 Lukas Appelhans <l.appelhans@gmx.de>
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 #include "transferfactory.h"
13 
14 #include "kget.h"
15 
16 #include <kmenu.h>
17 #include <klocale.h>
18 #include <kdebug.h>
19 
20 TransferFactory::TransferFactory(QObject *parent, const QVariantList &args)
21  : KGetPlugin(parent, args)
22 {
23 
24 }
25 
26 Transfer * TransferFactory::createTransfer(const KUrl &srcUrl, const KUrl &destUrl,
27  TransferGroup * parent,
28  Scheduler * scheduler,
29  const QDomElement * n)
30 {
31  Q_UNUSED(srcUrl)
32  Q_UNUSED(destUrl)
33  Q_UNUSED(parent)
34  Q_UNUSED(scheduler)
35  Q_UNUSED(n)
36  return 0;
37 }
38 
39 TransferHandler * TransferFactory::createTransferHandler(Transfer * transfer, Scheduler * scheduler)
40 {
41  return new TransferHandler(transfer, scheduler);
42 }
43 
44 QWidget * TransferFactory::createDetailsWidget(TransferHandler * transfer)
45 {
46  Q_UNUSED(transfer)
47  return 0;
48 }
49 
50 KDialog * TransferFactory::createNewTransferDialog(const KUrl &srcUrl, const QString &suggestedFileName, TransferGroupHandler * defaultGroup)
51 {
52  Q_UNUSED(srcUrl)
53  Q_UNUSED(suggestedFileName)
54  Q_UNUSED(defaultGroup)
55  return 0;
56 }
57 
58 const QList<KAction *> TransferFactory::actions(TransferHandler *handler)
59 {
60  Q_UNUSED(handler)
61  return QList<KAction *>();
62 }
63 
64 TransferDataSource * TransferFactory::createTransferDataSource(const KUrl &srcUrl, const QDomElement &type, QObject *parent)
65 {
66  Q_UNUSED(srcUrl)
67  Q_UNUSED(type)
68  Q_UNUSED(parent)
69  return 0;
70 }
71 
72 bool TransferFactory::isSupported(const KUrl &url) const
73 {
74  Q_UNUSED(url)
75  return false;
76 }
77 
78 QStringList TransferFactory::addsProtocols() const
79 {
80  return QStringList();
81 }
TransferHandler
Class TransferHandler:
Definition: transferhandler.h:48
TransferFactory::createNewTransferDialog
virtual KDialog * createNewTransferDialog(const KUrl &srcUrl, const QString &suggestedFileName=QString(), TransferGroupHandler *defaultGroup=0)
Definition: transferfactory.cpp:50
TransferGroup
class TransferGroup:
Definition: transfergroup.h:46
Scheduler
Scheduler class: what handle all the jobs in kget.
Definition: scheduler.h:32
TransferGroupHandler
Definition: transfergrouphandler.h:30
QWidget
KDialog
TransferDataSource
This Class is an interface for inter-plugins data change.
Definition: transferdatasource.h:26
TransferFactory::addsProtocols
virtual QStringList addsProtocols() const
Returns a list of protocols for which the TransferFactory adds support.
Definition: transferfactory.cpp:78
QObject
TransferFactory::TransferFactory
TransferFactory(QObject *parent, const QVariantList &args)
Definition: transferfactory.cpp:20
transferfactory.h
KGetPlugin
Base class for kget plugins.
Definition: plugin.h:61
kget.h
TransferFactory::actions
virtual const QList< KAction * > actions(TransferHandler *handler=0)
Definition: transferfactory.cpp:58
TransferFactory::createTransferHandler
virtual TransferHandler * createTransferHandler(Transfer *transfer, Scheduler *scheduler)
Definition: transferfactory.cpp:39
TransferFactory::createDetailsWidget
virtual QWidget * createDetailsWidget(TransferHandler *transfer)
Definition: transferfactory.cpp:44
TransferFactory::createTransferDataSource
virtual TransferDataSource * createTransferDataSource(const KUrl &srcUrl, const QDomElement &type, QObject *parent)
Returns a Data Source.
Definition: transferfactory.cpp:64
TransferFactory::createTransfer
virtual Transfer * createTransfer(const KUrl &srcUrl, const KUrl &destUrl, TransferGroup *parent, Scheduler *scheduler, const QDomElement *n=0)
Definition: transferfactory.cpp:26
TransferFactory::isSupported
virtual bool isSupported(const KUrl &url) const
Definition: transferfactory.cpp:72
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