~neon/pykde4/master

« back to all changes in this revision

Viewing changes to extra/kde3920/ksslsession.h

  • Committer: Simon Edwards
  • Date: 2007-09-02 19:43:19 UTC
  • Revision ID: git-v1:6b8df0c7009f6b218f54589a9bc313cd8c4f82b9

Initial drop of PyKDE4 - Python bindings for the KDE API. See the README file
for more info about the current state of PyKDE4.


svn path=/trunk/KDE/kdebindings/python/pykde4/; revision=707731

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 <QtCore/QString>
 
25
 
 
26
#include <kio/kio_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