• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

mailtransport

servertest.h

00001 /*
00002     Copyright (C) 2007 KovoKs <info@kovoks.nl>
00003     Copyright (c) 2008 Thomas McGuire <thomas.mcguire@gmx.net>
00004 
00005     This library is free software; you can redistribute it and/or modify it
00006     under the terms of the GNU Library General Public License as published by
00007     the Free Software Foundation; either version 2 of the License, or (at your
00008     option) any later version.
00009 
00010     This library is distributed in the hope that it will be useful, but WITHOUT
00011     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00012     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00013     License for more details.
00014 
00015     You should have received a copy of the GNU Library General Public License
00016     along with this library; see the file COPYING.LIB.  If not, write to the
00017     Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00018     02110-1301, USA.
00019 */
00020 
00021 #ifndef MAILTRANSPORT_SERVERTEST_H
00022 #define MAILTRANSPORT_SERVERTEST_H
00023 
00024 #include <mailtransport/mailtransport_export.h>
00025 #include <mailtransport/transport.h>
00026 
00027 #include <QtGui/QWidget>
00028 #include <QtCore/QHash>
00029 
00030 class QProgressBar;
00031 
00032 namespace MailTransport
00033 {
00034 
00035 class ServerTestPrivate;
00036 
00042 class MAILTRANSPORT_EXPORT ServerTest : public QWidget
00043 {
00044     Q_OBJECT
00045     Q_PROPERTY( QString server READ server WRITE setServer )
00046     Q_PROPERTY( QString protocol READ protocol WRITE setProtocol )
00047     Q_PROPERTY( QProgressBar *progressBar READ progressBar WRITE setProgressBar )
00048 
00049   public:
00050 
00056     enum Capability {
00057       Pipelining, 
00058       Top,        
00059       UIDL        
00060     };
00061 
00066     ServerTest( QWidget *parent = 0 );
00067 
00071     ~ServerTest();
00072 
00076     void setServer( const QString &server );
00077 
00081     QString server();
00082 
00102     void setPort( Transport::EnumEncryption::type encryptionMode, uint port );
00103 
00113     int port( Transport::EnumEncryption::type encryptionMode );
00114 
00125     void setFakeHostname( const QString &fakeHostname );
00126 
00130     QString fakeHostname();
00131 
00137     void setProgressBar( QProgressBar *pb );
00138 
00142     QProgressBar *progressBar();
00143 
00148     void setProtocol( const QString &protocol );
00149 
00153     QString protocol();
00154 
00158     void start();
00159 
00165     QList< int > normalProtocols();
00166 
00173     QList< int > tlsProtocols();
00174 
00180     QList< int > secureProtocols();
00181 
00189     QList< Capability > capabilities() const;
00190 
00191   Q_SIGNALS:
00196     void finished( QList< int > );
00197 
00198   private:
00199     Q_DECLARE_PRIVATE( ServerTest )
00200     ServerTestPrivate *const d;
00201 
00202     Q_PRIVATE_SLOT( d, void slotNormalPossible() )
00203     Q_PRIVATE_SLOT( d, void slotTlsDone() )
00204     Q_PRIVATE_SLOT( d, void slotSslPossible() )
00205     Q_PRIVATE_SLOT( d, void slotReadNormal( const QString &text ) )
00206     Q_PRIVATE_SLOT( d, void slotReadSecure( const QString &text ) )
00207     Q_PRIVATE_SLOT( d, void slotNormalNotPossible() )
00208     Q_PRIVATE_SLOT( d, void slotSslNotPossible() )
00209     Q_PRIVATE_SLOT( d, void slotUpdateProgress() )
00210 };
00211 
00212 } // namespace MailTransport
00213 
00214 #endif // MAILTRANSPORT_SERVERTEST_H

mailtransport

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.6.2-20100208
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal