-#ifndef __DALI_FEEDBACK_PLAYER_H__
-#define __DALI_FEEDBACK_PLAYER_H__
+#ifndef DALI_FEEDBACK_PLAYER_H
+#define DALI_FEEDBACK_PLAYER_H
/*
- * Copyright (c) 2018 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.
namespace Dali
{
-
namespace Internal DALI_INTERNAL
{
namespace Adaptor
{
class FeedbackPlayer;
}
-}
+} // namespace DALI_INTERNAL
/**
* @brief Plays feedback effects.
class DALI_ADAPTOR_API FeedbackPlayer : public BaseHandle
{
public:
-
/**
* @brief Create an uninitialized handle.
*
* @param[in] fileName Path to the sound file to play.
* @return A handle which can be used to stop the sound playback.
*/
- int PlaySound( const std::string& fileName );
+ int PlaySound(const std::string& fileName);
/**
* Stops a currently playing sound.
* @param[in] handle A handle to the currently playing sound.
*/
- void StopSound( int handle );
+ void StopSound(int handle);
/**
* Plays a feedback pattern.
* @param[in] type The type of feedback.
* @param[in] pattern The ID of the pattern to play.
*/
- void PlayFeedbackPattern( int type, int pattern );
+ void PlayFeedbackPattern(int type, int pattern);
/*
* Loads a file into data
bool LoadFile(const std::string& filename, std::string& data);
public: // Not intended for application developers
-
/**
* @brief This constructor is used by FeedbackPlayer::Get().
* @param[in] feedbackPlayer A pointer to the feedback player.
*/
- explicit DALI_INTERNAL FeedbackPlayer( Internal::Adaptor::FeedbackPlayer* feedbackPlayer );
+ explicit DALI_INTERNAL FeedbackPlayer(Internal::Adaptor::FeedbackPlayer* feedbackPlayer);
};
} // namespace Dali
-#endif // __DALI_FEEDBACK_PLAYER_H__
+#endif // DALI_FEEDBACK_PLAYER_H