-#ifndef __DALI_EVENT_THREAD_CALLBACK_H_
-#define __DALI_EVENT_THREAD_CALLBACK_H_
+#ifndef DALI_EVENT_THREAD_CALLBACK_H
+#define DALI_EVENT_THREAD_CALLBACK_H
/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2020 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*/
// EXTERNAL INCLUDES
-#include <dali/public-api/common/dali-common.h>
#include <dali/public-api/signals/callback.h>
+// INTERNAL INCLUDES
+#include <dali/public-api/dali-adaptor-common.h>
+
namespace Dali
{
-
/**
* @brief The EventThreadCallback class provides a mechanism for the worker thread to trigger the execution of a given callback in main event thread .
*
* @note The EventThreadCallback object should only be created in the main thread.
*/
-class DALI_IMPORT_API EventThreadCallback
+class DALI_ADAPTOR_API EventThreadCallback
{
public:
-
/**
* @brief Constructor. Create an object that will call the given callback in main event thread.
*
* @param[in] callback The callback to call.
*/
- EventThreadCallback( CallbackBase* callback );
+ EventThreadCallback(CallbackBase* callback);
/**
* @brief Destructor.
void Trigger();
private:
-
// undefined copy constructor.
- EventThreadCallback( const EventThreadCallback& );
+ EventThreadCallback(const EventThreadCallback&);
// undefined assignment operator
- EventThreadCallback& operator=( const EventThreadCallback& );
+ EventThreadCallback& operator=(const EventThreadCallback&);
private:
-
struct Impl;
Impl* mImpl;
-
};
-}
-#endif /* __DALI_EVENT_THREAD_CALLBACK_H_ */
+} // namespace Dali
+#endif /* DALI_EVENT_THREAD_CALLBACK_H */