diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-16 11:29:59 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-16 11:29:59 +0200 |
commit | b0b7c2b0e1762a7c0058e7f507a3b7cc9a03daf6 (patch) | |
tree | 246864539eba1669fc19a2007038dfb692a04788 /ftnoir_tracker_hatire/ftnoir_tracker_hat.h | |
parent | dfbe00cb1d9ce4cb52448cf4c1d577fe7b1eaad7 (diff) |
all: use macros for symbol exposure
Diffstat (limited to 'ftnoir_tracker_hatire/ftnoir_tracker_hat.h')
-rw-r--r-- | ftnoir_tracker_hatire/ftnoir_tracker_hat.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/ftnoir_tracker_hatire/ftnoir_tracker_hat.h b/ftnoir_tracker_hatire/ftnoir_tracker_hat.h index 9471ebfb..e3c5a26b 100644 --- a/ftnoir_tracker_hatire/ftnoir_tracker_hat.h +++ b/ftnoir_tracker_hatire/ftnoir_tracker_hat.h @@ -123,36 +123,35 @@ private: //******************************************************************************************************* // FaceTrackNoIR Tracker DLL. Functions used to get general info on the Tracker //******************************************************************************************************* -class TrackerDll : #if defined(OPENTRACK_API) -public Metadata +class TrackerDll : public Metadata +{ + QString name() { return QString("Hatire Arduino"); } + QIcon icon() { return QIcon(":/images/hatire.png"); } +}; #else +class TrackerDll : +public Metadata public ITrackerDll -#endif { public: TrackerDll(); ~TrackerDll(); -#ifndef OPENTRACK_API void Initialize(); -#endif -#ifdef OPENTRACK_API QString name(); QIcon icon(); -#else void getFullName(QString *strToBeFilled); void getShortName(QString *strToBeFilled); void getDescription(QString *strToBeFilled); void getIcon(QIcon *icon); -#endif private: QString trackerFullName; // Trackers' name and description QString trackerShortName; QString trackerDescription; }; - +#endif #endif // FTNOIR_TRACKER_HAT_H |