• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdenetwork
  • Sitemap
  • Contact Us
 

kopete/protocols/messenger/libpapillon

connector.h

Go to the documentation of this file.
00001 /*
00002    connector.h - Papillon Socket connector abstract class.
00003 
00004    Copyright (c) 2006 by Michaƫl Larouche <larouche@kde.org>
00005 
00006    Based on code Copyright (c) 2004 Matt Rogers <mattr@kde.org>
00007    Based on code copyright (c) 2004 SuSE Linux AG <http://www.suse.com>
00008    Based on Iris, Copyright (C) 2003 Justin Karneges
00009 
00010    *************************************************************************
00011    *                                                                       *
00012    * This library is free software; you can redistribute it and/or         *
00013    * modify it under the terms of the GNU Lesser General Public            *
00014    * License as published by the Free Software Foundation; either          *
00015    * version 2 of the License, or (at your option) any later version.      *
00016    *                                                                       *
00017    *************************************************************************
00018 */
00019 #ifndef PAPILLON_CONNECTOR_H
00020 #define PAPILLON_CONNECTOR_H
00021 
00022 
00023 #include <QtCore/QObject>
00024 #include <QtNetwork/QHostAddress>
00025 
00026 #include <Papillon/Macros>
00027 
00028 namespace Papillon
00029 {
00030 
00031 class ByteStream;
00032 
00036 class PAPILLON_EXPORT Connector : public QObject
00037 {
00038     Q_OBJECT
00039 public:
00040     Connector(QObject *parent=0);
00041     virtual ~Connector();
00042 
00043     virtual void connectToServer(const QString &server, quint16 port)=0;
00044     virtual ByteStream *stream() const=0;
00045     virtual void done()=0;
00046     virtual Connector *createNewConnector(QObject *parent = 0)=0;
00047 
00048     bool havePeerAddress() const;
00049     QHostAddress peerAddress() const;
00050     quint16 peerPort() const;
00051 
00052 signals:
00053     void connected();
00054     void error();
00055 
00056 protected:
00057     void setPeerAddressNone();
00058     void setPeerAddress(const QHostAddress &addr, quint16 port);
00059 
00060 private:
00061     class Private;
00062     Private *d;
00063 };
00064 
00065 }
00066 #endif

kopete/protocols/messenger/libpapillon

Skip menu "kopete/protocols/messenger/libpapillon"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdenetwork

Skip menu "kdenetwork"
  • kget
  • kopete
  •   kopete
  •   libkopete
  •       libpapillon
  • krfb
Generated for kdenetwork by doxygen 1.5.4
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