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

krdc

  • sources
  • kde-4.12
  • kdenetwork
  • krdc
tubesmanager.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** Copyright (C) 2009-2011 Collabora Ltd <info@collabora.co.uk>
4 ** Copyright (C) 2009 Abner Silva <abner.silva@kdemail.net>
5 **
6 ** This file is part of KDE.
7 **
8 ** This program is free software; you can redistribute it and/or modify
9 ** it under the terms of the GNU General Public License as published by
10 ** the Free Software Foundation; either version 2 of the License, or
11 ** (at your option) any later version.
12 **
13 ** This program is distributed in the hope that it will be useful,
14 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 ** GNU General Public License for more details.
17 **
18 ** You should have received a copy of the GNU General Public License
19 ** along with this program; see the file COPYING. If not, write to
20 ** the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 ** Boston, MA 02110-1301, USA.
22 **
23 ****************************************************************************/
24 
25 #ifndef TUBESMANAGER_H
26 #define TUBESMANAGER_H
27 
28 #include <TelepathyQt/StreamTubeClient>
29 #include <QtNetwork/QHostAddress>
30 #include <KUrl>
31 
32 class TubesManager : public QObject
33 {
34  Q_OBJECT
35 
36 public:
37  explicit TubesManager(QObject *parent);
38  virtual ~TubesManager();
39 
40  void closeTube(const KUrl & url);
41 
42 Q_SIGNALS:
43  void newConnection(KUrl);
44 
45 private Q_SLOTS:
46  void onTubeAccepted(
47  const QHostAddress & listenAddress,
48  quint16 listenPort,
49  const QHostAddress & sourceAddress,
50  quint16 sourcePort,
51  const Tp::AccountPtr & account,
52  const Tp::IncomingStreamTubeChannelPtr & tube);
53 
54 private:
55  Tp::StreamTubeClientPtr m_stubeClient;
56  QHash<KUrl, Tp::IncomingStreamTubeChannelPtr> m_tubes;
57 };
58 
59 #endif
TubesManager::newConnection
void newConnection(KUrl)
TubesManager::closeTube
void closeTube(const KUrl &url)
Definition: tubesmanager.cpp:63
QObject
TubesManager
Definition: tubesmanager.h:32
TubesManager::~TubesManager
virtual ~TubesManager()
Definition: tubesmanager.cpp:58
TubesManager::TubesManager
TubesManager(QObject *parent)
Definition: tubesmanager.cpp:33
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:54:04 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

krdc

Skip menu "krdc"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

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