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

kopete/libkopete

  • sources
  • kde-4.14
  • kdenetwork
  • kopete
  • libkopete
kopetesockettimeoutwatcher.h
Go to the documentation of this file.
1 /*
2  kopetesockettimeoutwatcher.h - Kopete Socket Timeout Watcher
3 
4  Copyright (c) 2009 Roman Jarosz <kedgedev@centrum.cz>
5  Kopete (c) 2009 by the Kopete developers <kopete-devel@kde.org>
6 
7  *************************************************************************
8  * *
9  * This library is free software; you can redistribute it and/or *
10  * modify it under the terms of the GNU Lesser General Public *
11  * License as published by the Free Software Foundation; either *
12  * version 2 of the License, or (at your option) any later version. *
13  * *
14  *************************************************************************
15 */
16 #ifndef KOPETESOCKETTIMEOUTWATCHER_H
17 #define KOPETESOCKETTIMEOUTWATCHER_H
18 
19 #include "kopete_export.h"
20 
21 #include <QObject>
22 #include <QAbstractSocket>
23 
24 class QTimer;
25 
26 namespace Kopete
27 {
31 class KOPETE_EXPORT SocketTimeoutWatcher : public QObject
32 {
33 Q_OBJECT
34 public:
44  static SocketTimeoutWatcher* watch( QAbstractSocket* socket, quint32 msecTimeout = 15000 );
45 
46  ~SocketTimeoutWatcher();
47 
48 signals:
53  void error( QAbstractSocket::SocketError socketError );
54  void errorInt( int socketError );
55 
56 private slots:
57  void bytesWritten();
58  void ackTimeoutCheck();
59 
60 private:
61  SocketTimeoutWatcher( QAbstractSocket* socket, quint32 msecTimeout );
62 
63  static QSet<QAbstractSocket*> watchedSocketSet;
64  QAbstractSocket* mSocket;
65  QTimer* mAckCheckTimer;
66  bool mActive;
67  quint32 mTimeoutThreshold;
68 };
69 
70 }
71 
72 #endif
KOPETE_EXPORT
#define KOPETE_EXPORT
Definition: kopete_export.h:27
QAbstractSocket
Kopete::SocketTimeoutWatcher
Definition: kopetesockettimeoutwatcher.h:31
QTimer
QObject
kopete_export.h
QSet< QAbstractSocket * >
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kopete/libkopete

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

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