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

KIMAP Library

  • sources
  • kde-4.12
  • kdepimlibs
  • kimap
loginjob.h
1 /*
2  Copyright (c) 2009 Kevin Ottens <ervin@kde.org>
3  Copyright (c) 2009 Andras Mantia <amantia@kde.org>
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 KIMAP_LOGINJOB_H
22 #define KIMAP_LOGINJOB_H
23 
24 #include "kimap_export.h"
25 
26 #include "job.h"
27 
28 namespace KIMAP {
29 
30 class Session;
31 struct Message;
32 class LoginJobPrivate;
33 
34 class KIMAP_EXPORT LoginJob : public Job
35 {
36  Q_OBJECT
37  Q_DECLARE_PRIVATE( LoginJob )
38 
39  friend class SessionPrivate;
40 
41  public:
42  enum EncryptionMode {
43  Unencrypted = 0,
44  TlsV1,
45  SslV2,
46  SslV3,
47  SslV3_1,
48  AnySslVersion
49  };
50 
51  enum AuthenticationMode {
52  ClearText = 0,
53  Login,
54  Plain,
55  CramMD5,
56  DigestMD5,
57  NTLM,
58  GSSAPI,
59  Anonymous
60  };
61 
62  enum ErrorCode {
63  ERR_COULD_NOT_CONNECT = KJob::UserDefinedError + 23 // same as in kio
64  };
65 
66  explicit LoginJob( Session *session );
67  virtual ~LoginJob();
68 
69  QString userName() const;
70  void setUserName( const QString &userName );
71 
76  QString authorizationName() const;
77 
89  void setAuthorizationName( const QString &authorizationName );
90 
91  QString password() const;
92  void setPassword( const QString &password );
93 
103  QString serverGreeting() const;
104 
111  void setEncryptionMode(EncryptionMode mode);
112 
117  EncryptionMode encryptionMode();
118 
119  void setAuthenticationMode( AuthenticationMode mode );
120 
121  protected:
122  virtual void doStart();
123  virtual void handleResponse( const Message &response );
124  virtual void connectionLost();
125 
126  private:
127  Q_PRIVATE_SLOT( d_func(), void sslResponse(bool) )
128 };
129 
130 }
131 
132 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KIMAP Library

Skip menu "KIMAP Library"
  • Main Page
  • Namespace List
  • Namespace Members
  • 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
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

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