home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / ksslsession.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-10-10  |  1.8 KB  |  74 lines

  1. /* This file is part of the KDE project
  2.  *
  3.  * Copyright (C) 2003 George Staikos <staikos@kde.org>
  4.  *
  5.  * This library is free software; you can redistribute it and/or
  6.  * modify it under the terms of the GNU Library General Public
  7.  * License as published by the Free Software Foundation; either
  8.  * version 2 of the License, or (at your option) any later version.
  9.  *
  10.  * This library is distributed in the hope that it will be useful,
  11.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  13.  * Library General Public 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
  17.  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  18.  * Boston, MA 02110-1301, USA.
  19.  */
  20.  
  21. #ifndef _KSSLSESSION_H
  22. #define _KSSLSESSION_H
  23.  
  24. #include <qstring.h>
  25.  
  26. #include <kdelibs_export.h>
  27.  
  28. class KSSL;
  29.  
  30. class KSSLSessionPrivate;
  31.  
  32. /**
  33.  * KDE SSL Session Information
  34.  *
  35.  * This class contains data about an SSL session.
  36.  * It is just used as a container that is taken from or passed to KSSL objects.
  37.  *
  38.  * @author George Staikos <staikos@kde.org>
  39.  * @see KSSL
  40.  * @short KDE SSL Session Information
  41.  */
  42. class KIO_EXPORT KSSLSession {
  43. friend class KSSL;
  44. public:
  45.     /**
  46.      *  Destroy this instance
  47.      */
  48.     ~KSSLSession();
  49.  
  50.     /**
  51.      *  Convert to a base64 encoded string (so it can be copied safely)
  52.      */
  53.     QString toString() const;
  54.  
  55.     /**
  56.      *  Create as session ID object from a base64 encoded string.
  57.      *  @param s the session id in base64 encoded ASN.1 format
  58.      *  @return a KSSLSession object, or 0L on error
  59.      */
  60.     static KSSLSession* fromString(const QString& s);
  61.  
  62. protected:
  63.     KSSLSession();
  64.     KSSLSession(const KSSLSession&);
  65.     void *_session;
  66.  
  67. private:
  68.     KSSLSessionPrivate *d;
  69. };
  70.  
  71.  
  72. #endif
  73.  
  74.