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

mailtransport

  • sources
  • kde-4.14
  • kdepimlibs
  • mailtransport
servertest.h
1 /*
2  Copyright (C) 2007 KovoKs <info@kovoks.nl>
3  Copyright (c) 2008 Thomas McGuire <thomas.mcguire@gmx.net>
4 
5  This library is free software; you can redistribute it and/or modify it
6  under the terms of the GNU Library General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or (at your
8  option) any later version.
9 
10  This library is distributed in the hope that it will be useful, but WITHOUT
11  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13  License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to the
17  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18  02110-1301, USA.
19 */
20 
21 #ifndef MAILTRANSPORT_SERVERTEST_H
22 #define MAILTRANSPORT_SERVERTEST_H
23 
24 #include <mailtransport/mailtransport_export.h>
25 #include <mailtransport/transport.h>
26 
27 #include <QWidget>
28 #include <QtCore/QHash>
29 
30 class QProgressBar;
31 
32 namespace MailTransport {
33 
34 class ServerTestPrivate;
35 
41 class MAILTRANSPORT_EXPORT ServerTest : public QWidget
42 {
43  Q_OBJECT
44  Q_PROPERTY( QString server READ server WRITE setServer )
45  Q_PROPERTY( QString protocol READ protocol WRITE setProtocol )
46  Q_PROPERTY( QProgressBar *progressBar READ progressBar WRITE setProgressBar )
47 
48  public:
49 
55  enum Capability {
56  Pipelining,
57  Top,
58  UIDL
59  };
60 
66  ServerTest( QWidget *parent = 0 );
67 
71  ~ServerTest();
72 
76  void setServer( const QString &server );
77 
81  QString server();
82 
102  void setPort( Transport::EnumEncryption::type encryptionMode, uint port );
103 
113  int port( Transport::EnumEncryption::type encryptionMode );
114 
125  void setFakeHostname( const QString &fakeHostname );
126 
130  QString fakeHostname();
131 
137  void setProgressBar( QProgressBar *pb );
138 
142  QProgressBar *progressBar();
143 
148  void setProtocol( const QString &protocol );
149 
153  QString protocol();
154 
158  void start();
159 
165  QList<int> normalProtocols();
166 
171  bool isNormalPossible();
172 
179  QList<int> tlsProtocols();
180 
186  QList<int> secureProtocols();
187 
192  bool isSecurePossible();
193 
201  QList<Capability> capabilities() const;
202 
203  Q_SIGNALS:
208  void finished( QList<int> );
209 
210  private:
211  Q_DECLARE_PRIVATE( ServerTest )
212  ServerTestPrivate *const d;
213 
214  Q_PRIVATE_SLOT( d, void slotNormalPossible() )
215  Q_PRIVATE_SLOT( d, void slotTlsDone() )
216  Q_PRIVATE_SLOT( d, void slotSslPossible() )
217  Q_PRIVATE_SLOT( d, void slotReadNormal( const QString &text ) )
218  Q_PRIVATE_SLOT( d, void slotReadSecure( const QString &text ) )
219  Q_PRIVATE_SLOT( d, void slotNormalNotPossible() )
220  Q_PRIVATE_SLOT( d, void slotSslNotPossible() )
221  Q_PRIVATE_SLOT( d, void slotUpdateProgress() )
222 };
223 
224 } // namespace MailTransport
225 
226 #endif // MAILTRANSPORT_SERVERTEST_H
QProgressBar
QWidget
MailTransport::ServerTest::Top
POP3 only. The server supports fetching only the headers.
Definition: servertest.h:57
MailTransport::ServerTest
This class can be used to test certain server to see if they support stuff.
Definition: servertest.h:41
MailTransport::ServerTest::Capability
Capability
This enumeration has the special capabilities a server might support.
Definition: servertest.h:55
QString
QList< int >
MailTransport::ServerTest::Pipelining
POP3 only. The server supports pipeplining of commands.
Definition: servertest.h:56
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:48 by doxygen 1.8.7 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 API Reference

Skip menu "kdepimlibs 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

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