Revision 6faeae08

View differences:

GazeTkHub/GazeTkHub.pro
5 5
SUBDIRS +=  \
6 6
            GazeTkLib \
7 7
            Hub \
8
    				Plugins/DeviceEyetrackerDummy
8
    				Plugins/DeviceEyetrackerDummy \
9
    				Plugins/DeviceEyetrackerTobii
9 10

  
10 11
# where to find the sub projects - give the folders
11 12
GazeTkLib.subdir = GazeTkLib
......
13 14
DeviceEyetrackerDummy.subdir=Plugins/DeviceEyetrackerDummy
14 15

  
15 16
# Use .depends to specify that a project depends on another.
16
Hub.depends = GazeTkLib DeviceEyetrackerDummy
17
Hub.depends = GazeTkLib DeviceEyetrackerDummy DeviceEyetrackerTobii
17 18

  
18 19

  
19 20

  
GazeTkHub/GazeTkHub.pro.user
1 1
<?xml version="1.0" encoding="UTF-8"?>
2 2
<!DOCTYPE QtCreatorProject>
3
<!-- Written by QtCreator 3.5.1, 2015-10-27T14:36:30. -->
3
<!-- Written by QtCreator 3.5.1, 2015-10-27T14:42:50. -->
4 4
<qtcreator>
5 5
 <data>
6 6
  <variable>EnvironmentId</variable>
GazeTkHub/Plugins/DeviceEyetrackerTobii/DeviceEyetrackerTobii.json
1
{
2
    "Keys" : [ ]
3
}
GazeTkHub/Plugins/DeviceEyetrackerTobii/DeviceEyetrackerTobii.pro
1
#-------------------------------------------------
2
#
3
# Project created by QtCreator 2015-10-27T14:34:48
4
#
5
#-------------------------------------------------
6

  
7
QT       += core gui
8

  
9
TARGET = DeviceEyetrackerTobii
10
TEMPLATE = lib
11
CONFIG += plugin
12

  
13
DESTDIR = $$[QT_INSTALL_PLUGINS]/generic
14

  
15
SOURCES += deviceeyetrackertobii.cpp
16

  
17
HEADERS += deviceeyetrackertobii.h
18
DISTFILES += DeviceEyetrackerTobii.json
19

  
20
unix {
21
    target.path = /usr/lib
22
    INSTALLS += target
23
}
GazeTkHub/Plugins/DeviceEyetrackerTobii/deviceeyetrackertobii.cpp
1
#include "deviceeyetrackertobii.h"
2

  
3

  
4
DeviceEyetrackerTobii::DeviceEyetrackerTobii(QObject *parent) :
5
    QGenericPlugin(parent)
6
{
7
}
8

  
9
#if QT_VERSION < 0x050000
10
Q_EXPORT_PLUGIN2(DeviceEyetrackerTobii, DeviceEyetrackerTobii)
11
#endif // QT_VERSION < 0x050000
GazeTkHub/Plugins/DeviceEyetrackerTobii/deviceeyetrackertobii.h
1
#ifndef DEVICEEYETRACKERTOBII_H
2
#define DEVICEEYETRACKERTOBII_H
3

  
4
#include <QGenericPlugin>
5

  
6

  
7
class DeviceEyetrackerTobii : public QGenericPlugin
8
{
9
    Q_OBJECT
10
#if QT_VERSION >= 0x050000
11
    Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QGenericPluginFactoryInterface" FILE "DeviceEyetrackerTobii.json")
12
#endif // QT_VERSION >= 0x050000
13

  
14
public:
15
    DeviceEyetrackerTobii(QObject *parent = 0);
16
};
17

  
18
#endif // DEVICEEYETRACKERTOBII_H

Also available in: Unified diff