• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 API Reference
  • KDE Home
  • Contact Us
 

mailtransport

  • mailtransport
transportbase.h
1 // This file is generated by kconfig_compiler from mailtransport.kcfg.
2 // All changes you do to this file will be lost.
3 #ifndef MAILTRANSPORT_TRANSPORTBASE_H
4 #define MAILTRANSPORT_TRANSPORTBASE_H
5 
6 #include <mailtransport/mailtransport_export.h>
7 
8 #include <kconfigskeleton.h>
9 #include <kdebug.h>
10 
11 namespace MailTransport {
12 
13 class MAILTRANSPORT_EXPORT TransportBase : public KConfigSkeleton
14 {
15  public:
16  class EnumType
17  {
18  public:
19  enum type { SMTP, Sendmail, Akonadi, COUNT };
20  };
21  class EnumEncryption
22  {
23  public:
24  enum type { None, SSL, TLS, COUNT };
25  };
26  class EnumAuthenticationType
27  {
28  public:
29  enum type { LOGIN, PLAIN, CRAM_MD5, DIGEST_MD5, GSSAPI, NTLM, APOP, CLEAR, ANONYMOUS, COUNT };
30  };
31 
32  TransportBase( const QString & transportId );
33  ~TransportBase();
34 
38  void setId( int v )
39  {
40  if (!isImmutable( QString::fromLatin1( "id" ) ))
41  mId = v;
42  }
43 
47  int id() const
48  {
49  return mId;
50  }
51 
55  ItemInt *idItem()
56  {
57  return mIdItem;
58  }
59 
63  void setName( const QString & v )
64  {
65  if (!isImmutable( QString::fromLatin1( "name" ) ))
66  mName = v;
67  }
68 
72  QString name() const
73  {
74  return mName;
75  }
76 
80  ItemString *nameItem()
81  {
82  return mNameItem;
83  }
84 
88  void setType( int v )
89  {
90  if (!isImmutable( QString::fromLatin1( "type" ) ))
91  mType = v;
92  }
93 
97  int type() const
98  {
99  return mType;
100  }
101 
105  ItemEnum *typeItem()
106  {
107  return mTypeItem;
108  }
109 
113  void setHost( const QString & v )
114  {
115  if (!isImmutable( QString::fromLatin1( "host" ) ))
116  mHost = v;
117  }
118 
122  QString host() const
123  {
124  return mHost;
125  }
126 
130  ItemString *hostItem()
131  {
132  return mHostItem;
133  }
134 
138  void setPort( uint v )
139  {
140  if (!isImmutable( QString::fromLatin1( "port" ) ))
141  mPort = v;
142  }
143 
147  uint port() const
148  {
149  return mPort;
150  }
151 
155  ItemUInt *portItem()
156  {
157  return mPortItem;
158  }
159 
163  void setUserName( const QString & v )
164  {
165  if (!isImmutable( QString::fromLatin1( "userName" ) ))
166  mUserName = v;
167  }
168 
172  QString userName() const
173  {
174  return mUserName;
175  }
176 
180  ItemString *userNameItem()
181  {
182  return mUserNameItem;
183  }
184 
188  void setPrecommand( const QString & v )
189  {
190  if (!isImmutable( QString::fromLatin1( "precommand" ) ))
191  mPrecommand = v;
192  }
193 
197  QString precommand() const
198  {
199  return mPrecommand;
200  }
201 
205  ItemString *precommandItem()
206  {
207  return mPrecommandItem;
208  }
209 
213  void setRequiresAuthentication( bool v )
214  {
215  if (!isImmutable( QString::fromLatin1( "requiresAuthentication" ) ))
216  mRequiresAuthentication = v;
217  }
218 
222  bool requiresAuthentication() const
223  {
224  return mRequiresAuthentication;
225  }
226 
230  ItemBool *requiresAuthenticationItem()
231  {
232  return mRequiresAuthenticationItem;
233  }
234 
238  void setStorePassword( bool v )
239  {
240  if (!isImmutable( QString::fromLatin1( "storePassword" ) ))
241  mStorePassword = v;
242  }
243 
247  bool storePassword() const
248  {
249  return mStorePassword;
250  }
251 
255  ItemBool *storePasswordItem()
256  {
257  return mStorePasswordItem;
258  }
259 
263  void setEncryption( int v )
264  {
265  if (!isImmutable( QString::fromLatin1( "encryption" ) ))
266  mEncryption = v;
267  }
268 
272  int encryption() const
273  {
274  return mEncryption;
275  }
276 
280  ItemEnum *encryptionItem()
281  {
282  return mEncryptionItem;
283  }
284 
288  void setAuthenticationType( int v )
289  {
290  if (!isImmutable( QString::fromLatin1( "authenticationType" ) ))
291  mAuthenticationType = v;
292  }
293 
297  int authenticationType() const
298  {
299  return mAuthenticationType;
300  }
301 
305  ItemEnum *authenticationTypeItem()
306  {
307  return mAuthenticationTypeItem;
308  }
309 
313  void setSpecifyHostname( bool v )
314  {
315  if (!isImmutable( QString::fromLatin1( "specifyHostname" ) ))
316  mSpecifyHostname = v;
317  }
318 
322  bool specifyHostname() const
323  {
324  return mSpecifyHostname;
325  }
326 
330  ItemBool *specifyHostnameItem()
331  {
332  return mSpecifyHostnameItem;
333  }
334 
338  void setLocalHostname( const QString & v )
339  {
340  if (!isImmutable( QString::fromLatin1( "localHostname" ) ))
341  mLocalHostname = v;
342  }
343 
347  QString localHostname() const
348  {
349  return mLocalHostname;
350  }
351 
355  ItemString *localHostnameItem()
356  {
357  return mLocalHostnameItem;
358  }
359 
363  void setSpecifySenderOverwriteAddress( bool v )
364  {
365  if (!isImmutable( QString::fromLatin1( "specifySenderOverwriteAddress" ) ))
366  mSpecifySenderOverwriteAddress = v;
367  }
368 
372  bool specifySenderOverwriteAddress() const
373  {
374  return mSpecifySenderOverwriteAddress;
375  }
376 
380  ItemBool *specifySenderOverwriteAddressItem()
381  {
382  return mSpecifySenderOverwriteAddressItem;
383  }
384 
388  void setSenderOverwriteAddress( const QString & v )
389  {
390  if (!isImmutable( QString::fromLatin1( "senderOverwriteAddress" ) ))
391  mSenderOverwriteAddress = v;
392  }
393 
397  QString senderOverwriteAddress() const
398  {
399  return mSenderOverwriteAddress;
400  }
401 
405  ItemString *senderOverwriteAddressItem()
406  {
407  return mSenderOverwriteAddressItem;
408  }
409 
410  protected:
411  QString mParamtransportId;
412 
413  // Transport $(transportId)
414  int mId;
415  QString mName;
416  int mType;
417  QString mHost;
418  uint mPort;
419  QString mUserName;
420  QString mPrecommand;
421  bool mRequiresAuthentication;
422  bool mStorePassword;
423  int mEncryption;
424  int mAuthenticationType;
425  bool mSpecifyHostname;
426  QString mLocalHostname;
427  bool mSpecifySenderOverwriteAddress;
428  QString mSenderOverwriteAddress;
429 
430  private:
431  ItemInt *mIdItem;
432  ItemString *mNameItem;
433  ItemEnum *mTypeItem;
434  ItemString *mHostItem;
435  ItemUInt *mPortItem;
436  ItemString *mUserNameItem;
437  ItemString *mPrecommandItem;
438  ItemBool *mRequiresAuthenticationItem;
439  ItemBool *mStorePasswordItem;
440  ItemEnum *mEncryptionItem;
441  ItemEnum *mAuthenticationTypeItem;
442  ItemBool *mSpecifyHostnameItem;
443  ItemString *mLocalHostnameItem;
444  ItemBool *mSpecifySenderOverwriteAddressItem;
445  ItemString *mSenderOverwriteAddressItem;
446 };
447 
448 }
449 
450 #endif
451 
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Jul 27 2021 06:50:51 by doxygen 1.8.20 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

mailtransport

Skip menu "mailtransport"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Related Pages

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
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