• 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
  • checksumsearch
checksumsearchfactory.cpp
Go to the documentation of this file.
1 /* This file is part of the KDE project
2 
3  Copyright (C) 2008 Manolo Valdes <nolis71cu@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 #include "checksumsearchfactory.h"
12 #include "checksumsearchtransferdatasource.h"
13 
14 #include "core/scheduler.h"
15 #include "core/transfergroup.h"
16 
17 #include <QtXml/QDomElement>
18 
19 #include <kdebug.h>
20 
21 KGET_EXPORT_PLUGIN( ChecksumSearchFactory )
22 
23 ChecksumSearchFactory::ChecksumSearchFactory(QObject *parent, const QVariantList &args)
24  : TransferFactory(parent, args)
25 {
26 }
27 
28 ChecksumSearchFactory::~ChecksumSearchFactory()
29 {
30 }
31 
32 TransferDataSource *ChecksumSearchFactory::createTransferDataSource(const KUrl &srcUrl, const QDomElement &type, QObject *parent)
33 {
34  kDebug(5001);
35 
36  if (type.attribute("type") == "checksumsearch") {
37  return new ChecksumSearchTransferDataSource(srcUrl, parent);
38  }
39  return 0;
40 }
ChecksumSearchTransferDataSource
Definition: checksumsearchtransferdatasource.h:68
checksumsearchfactory.h
checksumsearchtransferdatasource.h
TransferDataSource
This Class is an interface for inter-plugins data change.
Definition: transferdatasource.h:26
QObject
scheduler.h
transfergroup.h
ChecksumSearchFactory::~ChecksumSearchFactory
~ChecksumSearchFactory()
Definition: checksumsearchfactory.cpp:28
KGET_EXPORT_PLUGIN
#define KGET_EXPORT_PLUGIN(classname)
Declares a class as plugin.
Definition: kget_export.h:40
TransferFactory
TransferFactory.
Definition: transferfactory.h:52
ChecksumSearchFactory
Definition: checksumsearchfactory.h:21
ChecksumSearchFactory::createTransferDataSource
TransferDataSource * createTransferDataSource(const KUrl &srcUrl, const QDomElement &type, QObject *parent)
Returns a Data Source.
Definition: checksumsearchfactory.cpp:32
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