diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-09-30 15:01:35 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-09-30 15:02:01 +0200 |
commit | 72c46bdd7f5d430ab1ad1d420ed77c7f22df857a (patch) | |
tree | ad288a9b0eecb5c9d6afa9a42fcb87b017080484 /Tobii-EyeX/include/eyex-cpp/Notification.inl | |
parent | 6f1cc7dbf4af2503e6624d939c6f9dc7ee1cfd24 (diff) |
rename
Diffstat (limited to 'Tobii-EyeX/include/eyex-cpp/Notification.inl')
-rwxr-xr-x | Tobii-EyeX/include/eyex-cpp/Notification.inl | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/Tobii-EyeX/include/eyex-cpp/Notification.inl b/Tobii-EyeX/include/eyex-cpp/Notification.inl new file mode 100755 index 0000000..180fcd2 --- /dev/null +++ b/Tobii-EyeX/include/eyex-cpp/Notification.inl @@ -0,0 +1,49 @@ +/*********************************************************************************************************************
+ * Copyright 2013-2014 Tobii Technology AB. All rights reserved.
+ * Notification.inl
+ *********************************************************************************************************************/
+
+#if !defined(__TOBII_TX_CLIENT_CPPBINDINGS_Notification__INL__)
+#define __TOBII_TX_CLIENT_CPPBINDINGS_Notification__INL__
+
+/*********************************************************************************************************************/
+
+TX_NAMESPACE_BEGIN
+
+/*********************************************************************************************************************/
+
+inline Notification::Notification(const std::shared_ptr<const Context>& spContext, TX_HANDLE hNotification)
+: InteractionObject(spContext, hNotification)
+{ }
+
+/*********************************************************************************************************************/
+
+inline TX_NOTIFICATIONTYPE Notification::GetNotificationType() const
+{
+ TX_NOTIFICATIONTYPE notificationType;
+ TX_VALIDATE(txGetNotificationType(_hObject, ¬ificationType));
+ return notificationType;
+}
+
+/*********************************************************************************************************************/
+
+inline std::shared_ptr<InteractionObject> Notification::GetData() const
+{
+ Tx::Utils::ScopedHandle hData;
+ if(!TX_VALIDATE(txGetNotificationData(_hObject, &hData), TX_RESULT_NOTFOUND))
+ return nullptr;
+
+ auto spData = _spContext->CreateObject(hData);
+ return spData;
+}
+
+/*********************************************************************************************************************/
+
+TX_NAMESPACE_END
+
+/*********************************************************************************************************************/
+
+
+#endif // !defined(__TOBII_TX_CLIENT_CPPBINDINGS_Notification__INL__)
+
+/*********************************************************************************************************************/
|