• 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
  • bittorrent
bittorrentsettings.h
Go to the documentation of this file.
1 // This file is generated by kconfig_compiler from kget_bittorrentfactory.kcfg.
2 // All changes you do to this file will be lost.
3 #ifndef BITTORRENTSETTINGS_H
4 #define BITTORRENTSETTINGS_H
5 
6 #include <kconfigskeleton.h>
7 #include <kdebug.h>
8 
9 class KDE_EXPORT BittorrentSettings : public KConfigSkeleton
10 {
11  public:
12 
13  static BittorrentSettings *self();
14  ~BittorrentSettings();
15 
19  static
20  void setUploadLimit( int v )
21  {
22  if (!self()->isImmutable( QString::fromLatin1( "UploadLimit" ) ))
23  self()->mUploadLimit = v;
24  }
25 
29  static
30  int uploadLimit()
31  {
32  return self()->mUploadLimit;
33  }
34 
38  static
39  void setDownloadLimit( int v )
40  {
41  if (!self()->isImmutable( QString::fromLatin1( "DownloadLimit" ) ))
42  self()->mDownloadLimit = v;
43  }
44 
48  static
49  int downloadLimit()
50  {
51  return self()->mDownloadLimit;
52  }
53 
57  static
58  void setPort( int v )
59  {
60  if (!self()->isImmutable( QString::fromLatin1( "Port" ) ))
61  self()->mPort = v;
62  }
63 
67  static
68  int port()
69  {
70  return self()->mPort;
71  }
72 
76  static
77  void setEnableUTP( bool v )
78  {
79  if (!self()->isImmutable( QString::fromLatin1( "EnableUTP" ) ))
80  self()->mEnableUTP = v;
81  }
82 
86  static
87  bool enableUTP()
88  {
89  return self()->mEnableUTP;
90  }
91 
95  static
96  void setTorrentDir( const QString & v )
97  {
98  if (!self()->isImmutable( QString::fromLatin1( "TorrentDir" ) ))
99  self()->mTorrentDir = v;
100  }
101 
105  static
106  QString torrentDir()
107  {
108  return self()->mTorrentDir;
109  }
110 
114  static
115  void setTmpDir( const QString & v )
116  {
117  if (!self()->isImmutable( QString::fromLatin1( "TmpDir" ) ))
118  self()->mTmpDir = v;
119  }
120 
124  static
125  QString tmpDir()
126  {
127  return self()->mTmpDir;
128  }
129 
133  static
134  void setPreAlloc( bool v )
135  {
136  if (!self()->isImmutable( QString::fromLatin1( "PreAlloc" ) ))
137  self()->mPreAlloc = v;
138  }
139 
143  static
144  bool preAlloc()
145  {
146  return self()->mPreAlloc;
147  }
148 
152  static
153  void setFileColumnWidths( const QList<int> & v )
154  {
155  if (!self()->isImmutable( QString::fromLatin1( "FileColumnWidths" ) ))
156  self()->mFileColumnWidths = v;
157  }
158 
162  static
163  QList<int> fileColumnWidths()
164  {
165  return self()->mFileColumnWidths;
166  }
167 
171  static
172  void setPeersColumnWidths( const QList<int> & v )
173  {
174  if (!self()->isImmutable( QString::fromLatin1( "PeersColumnWidths" ) ))
175  self()->mPeersColumnWidths = v;
176  }
177 
181  static
182  QList<int> peersColumnWidths()
183  {
184  return self()->mPeersColumnWidths;
185  }
186 
190  static
191  void setChunksColumnWidths( const QList<int> & v )
192  {
193  if (!self()->isImmutable( QString::fromLatin1( "ChunksColumnWidths" ) ))
194  self()->mChunksColumnWidths = v;
195  }
196 
200  static
201  QList<int> chunksColumnWidths()
202  {
203  return self()->mChunksColumnWidths;
204  }
205 
206  protected:
207  BittorrentSettings();
208  friend class BittorrentSettingsHelper;
209 
210 
211  // General
212  int mUploadLimit;
213  int mDownloadLimit;
214  int mPort;
215  bool mEnableUTP;
216 
217  // Dirs
218  QString mTorrentDir;
219  QString mTmpDir;
220  bool mPreAlloc;
221 
222  // AdvancedDetails
223  QList<int> mFileColumnWidths;
224  QList<int> mPeersColumnWidths;
225  QList<int> mChunksColumnWidths;
226 
227  private:
228 };
229 
230 #endif
231 
BittorrentSettings::setTmpDir
static void setTmpDir(const QString &v)
Set TmpDir.
Definition: bittorrentsettings.h:115
BittorrentSettings::chunksColumnWidths
static QList< int > chunksColumnWidths()
Get ChunksColumnWidths.
Definition: bittorrentsettings.h:201
BittorrentSettings::mTorrentDir
QString mTorrentDir
Definition: bittorrentsettings.h:218
BittorrentSettings::mTmpDir
QString mTmpDir
Definition: bittorrentsettings.h:219
BittorrentSettings::setPreAlloc
static void setPreAlloc(bool v)
Set PreAlloc.
Definition: bittorrentsettings.h:134
BittorrentSettings::uploadLimit
static int uploadLimit()
Get UploadLimit.
Definition: bittorrentsettings.h:30
KConfigSkeleton
BittorrentSettings::port
static int port()
Get Port.
Definition: bittorrentsettings.h:68
BittorrentSettings::mChunksColumnWidths
QList< int > mChunksColumnWidths
Definition: bittorrentsettings.h:225
BittorrentSettings::torrentDir
static QString torrentDir()
Get TorrentDir.
Definition: bittorrentsettings.h:106
BittorrentSettings::downloadLimit
static int downloadLimit()
Get DownloadLimit.
Definition: bittorrentsettings.h:49
BittorrentSettings::mEnableUTP
bool mEnableUTP
Definition: bittorrentsettings.h:215
BittorrentSettings::setDownloadLimit
static void setDownloadLimit(int v)
Set DownloadLimit.
Definition: bittorrentsettings.h:39
BittorrentSettings::peersColumnWidths
static QList< int > peersColumnWidths()
Get PeersColumnWidths.
Definition: bittorrentsettings.h:182
BittorrentSettings::setUploadLimit
static void setUploadLimit(int v)
Set UploadLimit.
Definition: bittorrentsettings.h:20
BittorrentSettings::fileColumnWidths
static QList< int > fileColumnWidths()
Get FileColumnWidths.
Definition: bittorrentsettings.h:163
BittorrentSettings::mPeersColumnWidths
QList< int > mPeersColumnWidths
Definition: bittorrentsettings.h:224
BittorrentSettings::tmpDir
static QString tmpDir()
Get TmpDir.
Definition: bittorrentsettings.h:125
BittorrentSettings::setPort
static void setPort(int v)
Set Port.
Definition: bittorrentsettings.h:58
BittorrentSettings::mFileColumnWidths
QList< int > mFileColumnWidths
Definition: bittorrentsettings.h:223
BittorrentSettings::setPeersColumnWidths
static void setPeersColumnWidths(const QList< int > &v)
Set PeersColumnWidths.
Definition: bittorrentsettings.h:172
BittorrentSettings::enableUTP
static bool enableUTP()
Get EnableUTP.
Definition: bittorrentsettings.h:87
BittorrentSettings::mDownloadLimit
int mDownloadLimit
Definition: bittorrentsettings.h:213
BittorrentSettings::mPreAlloc
bool mPreAlloc
Definition: bittorrentsettings.h:220
BittorrentSettings::setEnableUTP
static void setEnableUTP(bool v)
Set EnableUTP.
Definition: bittorrentsettings.h:77
BittorrentSettings::mPort
int mPort
Definition: bittorrentsettings.h:214
BittorrentSettings::preAlloc
static bool preAlloc()
Get PreAlloc.
Definition: bittorrentsettings.h:144
BittorrentSettings::setFileColumnWidths
static void setFileColumnWidths(const QList< int > &v)
Set FileColumnWidths.
Definition: bittorrentsettings.h:153
BittorrentSettings
Definition: bittorrentsettings.h:9
BittorrentSettings::setTorrentDir
static void setTorrentDir(const QString &v)
Set TorrentDir.
Definition: bittorrentsettings.h:96
BittorrentSettings::setChunksColumnWidths
static void setChunksColumnWidths(const QList< int > &v)
Set ChunksColumnWidths.
Definition: bittorrentsettings.h:191
BittorrentSettings::mUploadLimit
int mUploadLimit
Definition: bittorrentsettings.h:212
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