qmca  0.0.20
epicsobject.h
Go to the documentation of this file.
1 #ifndef EPICSOBJECT_H
2 #define EPICSOBJECT_H
3 
4 #include <QObject>
5 #include <QString>
6 #include <QMutex>
7 #include <cadef.h>
8 
9 class EpicsObject : public QObject
10 {
11  Q_OBJECT;
12 
13  public:
14  EpicsObject(QString pvName, QObject *parent=0, int debug=0);
15  virtual ~EpicsObject();
16 
17  void changeConnection(QString pv);
18  int count();
19  QString pvName();
20  QString toolTip();
21  virtual void connected();
22  virtual void disconnected();
23 
24  chid channelID();
25 
26  int debug();
27  void setDebug(int dbg);
28 
29  void settle(double t);
30 
31  void ca_pend_io(double t);
32 
33  signals:
34  void valueChanged();
35 
36  private:
37  virtual caEventCallBackFunc *get_event_handler() = 0;
38  EpicsObject(const EpicsObject &copy);
39  EpicsObject& operator= (const EpicsObject&copy);
40 
41  public:
42  static QMutex m_Mutex;
43 
44  private:
45  QString m_PVName;
46 
47  protected:
49  evid m_EventID;
51  int m_Debug;
52 };
53 
54 #endif
virtual ~EpicsObject()
Definition: epicsobject.cpp:20
void setDebug(int dbg)
void settle(double t)
virtual caEventCallBackFunc * get_event_handler()=0
bool m_HasEventHandler
Definition: epicsobject.h:50
QString pvName()
Definition: epicsobject.cpp:30
EpicsObject(QString pvName, QObject *parent=0, int debug=0)
Definition: epicsobject.cpp:7
virtual void disconnected()
Definition: epicsobject.cpp:59
evid m_EventID
Definition: epicsobject.h:49
void changeConnection(QString pv)
Definition: epicsobject.cpp:84
void valueChanged()
static QMutex m_Mutex
Definition: epicsobject.h:42
chid channelID()
Definition: epicsobject.cpp:63
QString m_PVName
Definition: epicsobject.h:45
QString toolTip()
Definition: epicsobject.cpp:35
virtual void connected()
Definition: epicsobject.cpp:45
EpicsObject & operator=(const EpicsObject &copy)
chid m_ChannelID
Definition: epicsobject.h:48
void ca_pend_io(double t)