automotive-message-broker  0.14.803
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
agent.h
1 #ifndef AGENT_H_
2 #define AGENT_H_
3 
4 #include <QScriptEngineAgent>
5 #include <QObject>
6 
7 class BluemonkeyAgent: public QObject, public QScriptEngineAgent
8 {
9  Q_OBJECT
10 public:
11  BluemonkeyAgent(QScriptEngine* engine);
12  void scriptLoad (qint64 id, const QString &program, const QString &fileName, int baseLineNumber );
13  void scriptUnload(qint64 id);
14 
15 private Q_SLOTS:
16  void timeout();
17 
18 private:
19  QList<quint64> idList;
20  QMap<QObject*,quint64> timerIdMap;
21 };
22 
23 
24 #endif