• 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
mmstransferfactory.cpp
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 #include "mmstransferfactory.h"
21 #include "mmssettings.h"
22 #include "mmstransfer.h"
23 
24 #include <kdebug.h>
25 
26 KGET_EXPORT_PLUGIN( MmsTransferFactory )
27 
28 MmsTransferFactory::MmsTransferFactory(QObject *parent, const QVariantList &args)
29  : TransferFactory(parent, args)
30 {}
31 
32 MmsTransferFactory::~MmsTransferFactory()
33 {}
34 
35 Transfer * MmsTransferFactory::createTransfer( const KUrl &srcUrl, const KUrl &destUrl,
36  TransferGroup * parent,
37  Scheduler * scheduler,
38  const QDomElement * e )
39 {
40  kDebug(5001) << "MmsTransferFactory::createTransfer";
41 
42  QString prot = srcUrl.protocol();
43  kDebug(5001) << "Protocol = " << prot;
44  if (prot == "mms" || prot == "mmsh") {
45  return new MmsTransfer(parent, this, scheduler, srcUrl, destUrl, e);
46  }
47  return 0;
48 }
49 
50 QWidget * MmsTransferFactory::createDetailsWidget( TransferHandler * transfer )
51 {
52  Q_UNUSED(transfer)
53  return 0; //Temporary!!
54 }
55 
56 const QList<KAction *> MmsTransferFactory::actions(TransferHandler *handler)
57 {
58  Q_UNUSED(handler)
59  return QList<KAction *>();
60 }
61 
62 bool MmsTransferFactory::isSupported(const KUrl &url) const
63 {
64  QString prot = url.protocol();
65  kDebug(5001) << "Protocol = " << prot;
66  return (prot == "mms" || prot == "mmsh");
67 }
TransferHandler
Class TransferHandler:
Definition: transferhandler.h:48
TransferGroup
class TransferGroup:
Definition: transfergroup.h:46
Scheduler
Scheduler class: what handle all the jobs in kget.
Definition: scheduler.h:32
MmsTransfer
Definition: mmstransfer.h:31
MmsTransferFactory::actions
const QList< KAction * > actions(TransferHandler *handler=0)
Definition: mmstransferfactory.cpp:56
QWidget
QObject
mmssettings.h
MmsTransferFactory::isSupported
bool isSupported(const KUrl &url) const
Definition: mmstransferfactory.cpp:62
MmsTransferFactory::createDetailsWidget
QWidget * createDetailsWidget(TransferHandler *transfer)
Definition: mmstransferfactory.cpp:50
MmsTransferFactory
Definition: mmstransferfactory.h:30
MmsTransferFactory::~MmsTransferFactory
~MmsTransferFactory()
Definition: mmstransferfactory.cpp:32
mmstransferfactory.h
mmstransfer.h
KGET_EXPORT_PLUGIN
#define KGET_EXPORT_PLUGIN(classname)
Declares a class as plugin.
Definition: kget_export.h:40
TransferFactory
TransferFactory.
Definition: transferfactory.h:52
MmsTransferFactory::createTransfer
Transfer * createTransfer(const KUrl &srcUrl, const KUrl &destUrl, TransferGroup *parent, Scheduler *scheduler, const QDomElement *e=0)
Definition: mmstransferfactory.cpp:35
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