• 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
script.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 #ifndef SCRIPT_H
12 #define SCRIPT_H
13 
14 #include <QObject>
15 #include <QThread>
16 #include <QPointer>
17 #include <KUrl>
18 #include <kross/core/action.h>
19 
20 
21 class ScriptDownloadEngine;
22 class TransferGroup;
23 
24 class Script: public QThread
25 {
26  Q_OBJECT
27  public:
28  Script(QObject* parent, const KUrl &source);
29  ~Script();
30  bool setFile(const QString &filename);
31  signals:
32  void newTransfer(const QString &url, const QString &filename);
33  void startDownload(QObject* configadaptor);
34  void percentUpdated(int percent);
35  void textStatusUpdated(const QString &text);
36  void finished();
37  void aborted(const QString &error);
38  protected:
39  void run();
40  private:
41  QPointer<Kross::Action> m_p_action;
42  ScriptDownloadEngine *m_p_kgetcore;
43  KUrl m_source;
44  QString m_fileName;
45 };
46 #endif // SCRIPT_H
TransferGroup
class TransferGroup:
Definition: transfergroup.h:46
Script::percentUpdated
void percentUpdated(int percent)
QObject
Script::Script
Script(QObject *parent, const KUrl &source)
Definition: script.cpp:17
ScriptDownloadEngine
Definition: scriptdownloadengine.h:21
Script::textStatusUpdated
void textStatusUpdated(const QString &text)
Script
Definition: script.h:24
Script::startDownload
void startDownload(QObject *configadaptor)
Script::setFile
bool setFile(const QString &filename)
Definition: script.cpp:41
Script::newTransfer
void newTransfer(const QString &url, const QString &filename)
Script::finished
void finished()
Script::run
void run()
Definition: script.cpp:47
Script::~Script
~Script()
Definition: script.cpp:34
Script::aborted
void aborted(const QString &error)
QThread
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