Choreonoid  1.8
SocketNotifier.h
Go to the documentation of this file.
1 
5 #ifndef CNOID_BASE_SOCKET_NOTIFIER_H
6 #define CNOID_BASE_SOCKET_NOTIFIER_H
7 
8 #include <cnoid/Signal>
9 #include <QSocketNotifier>
10 #include "exportdecl.h"
11 
12 namespace cnoid {
13 
14 class CNOID_EXPORT SocketNotifier : public QSocketNotifier
15 {
16  Q_OBJECT;
17 
18 public:
19  SocketNotifier(int socket, Type type, QObject* parent = 0);
20 
21  SignalProxy<void(int socket)> sigActivated() {
22  return sigActivated_;
23  }
24 
25 private Q_SLOTS:
26  void onActivated(int socket);
27 
28 private:
29  Signal<void(int)> sigActivated_;
30 };
31 
32 }
33 
34 #endif
cnoid::SocketNotifier::sigActivated
SignalProxy< void(int socket)> sigActivated()
Definition: SocketNotifier.h:21
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::Signal
Definition: Signal.h:165
cnoid::SignalProxy
Definition: Signal.h:470
cnoid::SocketNotifier
Definition: SocketNotifier.h:14