~ubuntu-branches/ubuntu/saucy/kopete/saucy-proposed

« back to all changes in this revision

Viewing changes to protocols/irc/libkirc/kernel/kircsocket_p.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2013-06-21 02:22:39 UTC
  • Revision ID: package-import@ubuntu.com-20130621022239-63l3zc8p0nf26pt6
Tags: upstream-4.10.80
ImportĀ upstreamĀ versionĀ 4.10.80

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    kircsocket.cpp - IRC socket.
 
3
 
 
4
    Copyright (c) 2002      by Nick Betcher <nbetcher@kde.org>
 
5
    Copyright (c) 2003-2007 by Michel Hermier <michel.hermier@gmail.com>
 
6
    Copyright (c) 2006      by Tommi Rantala <tommi.rantala@cs.helsinki.fi>
 
7
 
 
8
    Kopete    (c) 2002-2007 by the Kopete developers <kopete-devel@kde.org>
 
9
 
 
10
    *************************************************************************
 
11
    *                                                                       *
 
12
    * This program is free software; you can redistribute it and/or modify  *
 
13
    * it under the terms of the GNU General Public License as published by  *
 
14
    * the Free Software Foundation; either version 2 of the License, or     *
 
15
    * (at your option) any later version.                                   *
 
16
    *                                                                       *
 
17
    *************************************************************************
 
18
*/
 
19
 
 
20
#ifndef KIRCSOCKET_P_H
 
21
#define KIRCSOCKET_P_H
 
22
 
 
23
#include "kircsocket.h"
 
24
 
 
25
namespace KIrc
 
26
{
 
27
 
 
28
class Context;
 
29
class Handler;
 
30
 
 
31
class KIRC_EXPORT SocketPrivate
 
32
        : public QObject
 
33
{
 
34
        Q_OBJECT
 
35
        Q_DECLARE_PUBLIC(KIrc::Socket)
 
36
 
 
37
public:
 
38
        explicit SocketPrivate(KIrc::Socket *socket);
 
39
 
 
40
public Q_SLOTS:
 
41
        void socketGotError(QAbstractSocket::SocketError);
 
42
        void socketReadyRead();
 
43
 
 
44
public:
 
45
        KIrc::Socket *q_ptr;
 
46
 
 
47
        KIrc::Context *context;
 
48
        QAbstractSocket *socket;
 
49
        KIrc::Socket::ConnectionState state;
 
50
        KIrc::EntityPtr owner;
 
51
};
 
52
 
 
53
}
 
54
 
 
55
#endif
 
56