• 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
  • metalink
metalinksettings.h
Go to the documentation of this file.
1 // This file is generated by kconfig_compiler from kget_metalinkfactory.kcfg.
2 // All changes you do to this file will be lost.
3 #ifndef METALINKSETTINGS_H
4 #define METALINKSETTINGS_H
5 
6 #include <kconfigskeleton.h>
7 #include <kdebug.h>
8 
9 class KDE_EXPORT MetalinkSettings : public KConfigSkeleton
10 {
11  public:
12 
13  static MetalinkSettings *self();
14  ~MetalinkSettings();
15 
19  static
20  void setSimultanousFiles( int v )
21  {
22  if (v < 1)
23  {
24  kDebug() << "setSimultanousFiles: value " << v << " is less than the minimum value of 1";
25  v = 1;
26  }
27 
28  if (v > 10)
29  {
30  kDebug() << "setSimultanousFiles: value " << v << " is greater than the maximum value of 10";
31  v = 10;
32  }
33 
34  if (!self()->isImmutable( QString::fromLatin1( "SimultanousFiles" ) ))
35  self()->mSimultanousFiles = v;
36  }
37 
41  static
42  int simultanousFiles()
43  {
44  return self()->mSimultanousFiles;
45  }
46 
50  static
51  void setMirrorsPerFile( int v )
52  {
53  if (v < 1)
54  {
55  kDebug() << "setMirrorsPerFile: value " << v << " is less than the minimum value of 1";
56  v = 1;
57  }
58 
59  if (v > 10)
60  {
61  kDebug() << "setMirrorsPerFile: value " << v << " is greater than the maximum value of 10";
62  v = 10;
63  }
64 
65  if (!self()->isImmutable( QString::fromLatin1( "MirrorsPerFile" ) ))
66  self()->mMirrorsPerFile = v;
67  }
68 
72  static
73  int mirrorsPerFile()
74  {
75  return self()->mMirrorsPerFile;
76  }
77 
81  static
82  void setConnectionsPerUrl( int v )
83  {
84  if (v < 1)
85  {
86  kDebug() << "setConnectionsPerUrl: value " << v << " is less than the minimum value of 1";
87  v = 1;
88  }
89 
90  if (v > 10)
91  {
92  kDebug() << "setConnectionsPerUrl: value " << v << " is greater than the maximum value of 10";
93  v = 10;
94  }
95 
96  if (!self()->isImmutable( QString::fromLatin1( "ConnectionsPerUrl" ) ))
97  self()->mConnectionsPerUrl = v;
98  }
99 
103  static
104  int connectionsPerUrl()
105  {
106  return self()->mConnectionsPerUrl;
107  }
108 
109  protected:
110  MetalinkSettings();
111  friend class MetalinkSettingsHelper;
112 
113 
114  // Files
115  int mSimultanousFiles;
116  int mMirrorsPerFile;
117  int mConnectionsPerUrl;
118 
119  private:
120 };
121 
122 #endif
123 
MetalinkSettings::setConnectionsPerUrl
static void setConnectionsPerUrl(int v)
Set ConnectionsPerUrl.
Definition: metalinksettings.h:82
KConfigSkeleton
MetalinkSettings::mirrorsPerFile
static int mirrorsPerFile()
Get MirrorsPerFile.
Definition: metalinksettings.h:73
MetalinkSettings
Definition: metalinksettings.h:9
MetalinkSettings::connectionsPerUrl
static int connectionsPerUrl()
Get ConnectionsPerUrl.
Definition: metalinksettings.h:104
MetalinkSettings::mSimultanousFiles
int mSimultanousFiles
Definition: metalinksettings.h:115
MetalinkSettings::mMirrorsPerFile
int mMirrorsPerFile
Definition: metalinksettings.h:116
MetalinkSettings::setSimultanousFiles
static void setSimultanousFiles(int v)
Set SimultanousFiles.
Definition: metalinksettings.h:20
MetalinkSettings::mConnectionsPerUrl
int mConnectionsPerUrl
Definition: metalinksettings.h:117
MetalinkSettings::setMirrorsPerFile
static void setMirrorsPerFile(int v)
Set MirrorsPerFile.
Definition: metalinksettings.h:51
MetalinkSettings::simultanousFiles
static int simultanousFiles()
Get SimultanousFiles.
Definition: metalinksettings.h:42
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