• 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
transfergroupscheduler.h
Go to the documentation of this file.
1 /* This file is part of the KDE project
2 
3  Copyright (C) 2008 Lukas Appelhans <l.appelhans@gmx.de>
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 TRANSFERGROUPSCHEDULER_H
12 #define TRANSFERGROUPSCHEDULER_H
13 
14 #include "core/scheduler.h"
15 
23 class TransferGroupScheduler : public Scheduler
24 {
25  Q_OBJECT
26  public:
27  explicit TransferGroupScheduler(QObject *parent = 0);
28  ~TransferGroupScheduler();
29 
33  void calculateSpeedLimits();
34 
38  void calculateDownloadLimit();
39 
43  void calculateUploadLimit();
44 
49  void setDownloadLimit(int limit);
50 
54  int downloadLimit() const {return m_downloadLimit;}
55 
60  void setUploadLimit(int limit);
61 
65  int uploadLimit() const {return m_uploadLimit;}
66 
67  private:
68  int m_downloadLimit;
69  int m_uploadLimit;
70 };
71 
72 #endif
73 
TransferGroupScheduler::setUploadLimit
void setUploadLimit(int limit)
Sets a upload limit to the scheduler.
Definition: transfergroupscheduler.cpp:119
Scheduler
Scheduler class: what handle all the jobs in kget.
Definition: scheduler.h:32
QObject
TransferGroupScheduler::setDownloadLimit
void setDownloadLimit(int limit)
Sets a download limit to the scheduler.
Definition: transfergroupscheduler.cpp:113
TransferGroupScheduler::calculateUploadLimit
void calculateUploadLimit()
Calculates the DownloadLimits.
Definition: transfergroupscheduler.cpp:74
scheduler.h
TransferGroupScheduler::calculateDownloadLimit
void calculateDownloadLimit()
Calculates the DownloadLimits.
Definition: transfergroupscheduler.cpp:33
TransferGroupScheduler
TransferGroupScheduler class: what handle all the transfers in kget.
Definition: transfergroupscheduler.h:23
TransferGroupScheduler::downloadLimit
int downloadLimit() const
Definition: transfergroupscheduler.h:54
TransferGroupScheduler::~TransferGroupScheduler
~TransferGroupScheduler()
Definition: transfergroupscheduler.cpp:23
TransferGroupScheduler::TransferGroupScheduler
TransferGroupScheduler(QObject *parent=0)
Definition: transfergroupscheduler.cpp:16
TransferGroupScheduler::uploadLimit
int uploadLimit() const
Definition: transfergroupscheduler.h:65
TransferGroupScheduler::calculateSpeedLimits
void calculateSpeedLimits()
Calculates the whole SpeedLimits.
Definition: transfergroupscheduler.cpp:27
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