X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ffeedback%2Ffeedback-style.h;h=cdb1e21286bc2f76b2ca920faf4d49ba0768e528;hb=HEAD;hp=0f8d270f877d75fbf3aee28e6781c5bb3cf8c83d;hpb=e48daf4e855cbe98647a6c1d5ca54e1d706cf3da;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/feedback/feedback-style.h b/dali-toolkit/internal/feedback/feedback-style.h index 0f8d270..cdb1e21 100644 --- a/dali-toolkit/internal/feedback/feedback-style.h +++ b/dali-toolkit/internal/feedback/feedback-style.h @@ -1,8 +1,8 @@ -#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) 2014 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. @@ -19,25 +19,22 @@ */ // EXTERNAL INCLUDES -#include -#include #include -#include #include +#include +#include #include +#include // INTERNAL INCLUDES #include namespace Dali { - namespace Toolkit { - namespace Internal { - struct FeedbackStyleInfo; struct SignalFeedbackInfo; @@ -51,7 +48,6 @@ struct SignalFeedbackInfo; class FeedbackStyle : public ConnectionTracker { public: - /** * Constructor. */ @@ -84,7 +80,7 @@ public: * 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 @@ -94,13 +90,12 @@ public: 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 @@ -114,21 +109,21 @@ private: * @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 @@ -149,14 +144,12 @@ private: std::map mFeedbackPatternLut; ///< Used to convert feedback pattern strings into enumerated values std::map mStyleInfoLut; ///< Converts key strings into style information - - SlotDelegate< FeedbackStyle > mConnections; ///< Maintains the connections to the Object registry. }; -} // namespace Toolkit - } // namespace Internal +} // namespace Toolkit + } // namespace Dali -#endif // __DALI_INTERNAL_FEEDBACK_STYLE_H__ +#endif // DALI_INTERNAL_FEEDBACK_STYLE_H