-#ifndef __DALI_INTERNAL_FEEDBACK_STYLE_H__
-#define __DALI_INTERNAL_FEEDBACK_STYLE_H__
+#ifndef DALI_INTERNAL_FEEDBACK_STYLE_H
+#define DALI_INTERNAL_FEEDBACK_STYLE_H
/*
- * Copyright (c) 2019 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 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 <map>
-#include <dali/public-api/object/base-handle.h>
#include <dali/devel-api/adaptor-framework/feedback-player.h>
-#include <dali/public-api/signals/connection-tracker.h>
#include <dali/public-api/adaptor-framework/style-change.h>
+#include <dali/public-api/object/base-handle.h>
+#include <dali/public-api/signals/connection-tracker.h>
#include <dali/public-api/signals/slot-delegate.h>
+#include <map>
// INTERNAL INCLUDES
#include <dali-toolkit/internal/feedback/feedback-ids.h>
namespace Dali
{
-
namespace Toolkit
{
-
namespace Internal
{
-
struct FeedbackStyleInfo;
struct SignalFeedbackInfo;
class FeedbackStyle : public ConnectionTracker
{
public:
-
/**
* Constructor.
*/
* Connects feedback to signals for the newly created object
* @param [in] object Handle to the newly created object
*/
- void ObjectCreated( BaseHandle object );
+ void ObjectCreated(BaseHandle object);
/**
* Style changed so reload the theme file
void StyleChanged(const std::string& userDefinedThemePath, StyleChange::Type styleChange);
private:
-
/**
* Helper to retrieve styleInfo from mStyleInfoLut
* @param type A string described a type of object
* @return The style information for the given object
*/
- const FeedbackStyleInfo& GetStyleInfo( const std::string& type) const;
+ const FeedbackStyleInfo& GetStyleInfo(const std::string& type) const;
/**
* Callback function for Dali::Toolkit::PushButton::SignalPressed signal
* @param [in] data A string represenation of the theme.
* @param [in] format The string representation format ie JSON.
*/
- void LoadFromString( const std::string& data );
+ void LoadFromString(const std::string& data);
/**
* Helper to store signal information.
* @param [in] styleInfo The information will be stored here.
* @param [in] signalInfo The information to add.
*/
- void AddSignalInfo( FeedbackStyleInfo& styleInfo, SignalFeedbackInfo&& signalInfo );
+ void AddSignalInfo(FeedbackStyleInfo& styleInfo, SignalFeedbackInfo&& signalInfo);
/**
* Map a pattern string to feedback pattern ID.
* @param [in] pattern The pattern string.
* @return A feedback pattern ID.
*/
- FeedbackPattern GetFeedbackPattern( const std::string& pattern );
+ FeedbackPattern GetFeedbackPattern(const std::string& pattern);
/**
* Plays a feedback effect
std::map<const std::string, FeedbackStyleInfo> mStyleInfoLut; ///< Converts key strings into style information
};
-} // namespace Toolkit
-
} // namespace Internal
+} // namespace Toolkit
+
} // namespace Dali
-#endif // __DALI_INTERNAL_FEEDBACK_STYLE_H__
+#endif // DALI_INTERNAL_FEEDBACK_STYLE_H