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

mailtransport

  • 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 <QtGui/QWidget>
28 #include <QtCore/QHash>
29 
30 class QProgressBar;
31 
32 namespace MailTransport
33 {
34 
35 class ServerTestPrivate;
36 
42 class MAILTRANSPORT_EXPORT ServerTest : public QWidget
43 {
44  Q_OBJECT
45  Q_PROPERTY( QString server READ server WRITE setServer )
46  Q_PROPERTY( QString protocol READ protocol WRITE setProtocol )
47  Q_PROPERTY( QProgressBar *progressBar READ progressBar WRITE setProgressBar )
48 
49  public:
50 
56  enum Capability {
57  Pipelining,
58  Top,
59  UIDL
60  };
61 
67  ServerTest( QWidget *parent = 0 );
68 
72  ~ServerTest();
73 
77  void setServer( const QString &server );
78 
82  QString server();
83 
103  void setPort( Transport::EnumEncryption::type encryptionMode, uint port );
104 
114  int port( Transport::EnumEncryption::type encryptionMode );
115 
126  void setFakeHostname( const QString &fakeHostname );
127 
131  QString fakeHostname();
132 
138  void setProgressBar( QProgressBar *pb );
139 
143  QProgressBar *progressBar();
144 
149  void setProtocol( const QString &protocol );
150 
154  QString protocol();
155 
159  void start();
160 
166  QList<int> normalProtocols();
167 
172  bool isNormalPossible();
173 
180  QList<int> tlsProtocols();
181 
187  QList<int> secureProtocols();
188 
193  bool isSecurePossible();
194 
202  QList<Capability> capabilities() const;
203 
204  Q_SIGNALS:
209  void finished( QList<int> );
210 
211  private:
212  Q_DECLARE_PRIVATE( ServerTest )
213  ServerTestPrivate *const d;
214 
215  Q_PRIVATE_SLOT( d, void slotNormalPossible() )
216  Q_PRIVATE_SLOT( d, void slotTlsDone() )
217  Q_PRIVATE_SLOT( d, void slotSslPossible() )
218  Q_PRIVATE_SLOT( d, void slotReadNormal( const QString &text ) )
219  Q_PRIVATE_SLOT( d, void slotReadSecure( const QString &text ) )
220  Q_PRIVATE_SLOT( d, void slotNormalNotPossible() )
221  Q_PRIVATE_SLOT( d, void slotSslNotPossible() )
222  Q_PRIVATE_SLOT( d, void slotUpdateProgress() )
223 };
224 
225 } // namespace MailTransport
226 
227 #endif // MAILTRANSPORT_SERVERTEST_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Dec 10 2012 13:47:51 by doxygen 1.8.1.2 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.9.4 API Reference

Skip menu "kdepimlibs-4.9.4 API Reference"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • 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