-#ifndef __DALI_TTS_PLAYER_H__
-#define __DALI_TTS_PLAYER_H__
+#ifndef DALI_TTS_PLAYER_H
+#define DALI_TTS_PLAYER_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.
#include <dali/public-api/object/base-handle.h>
#include <dali/public-api/signals/dali-signal.h>
+// INTERNAL INCLUDES
+#include <dali/public-api/dali-adaptor-common.h>
+
namespace Dali
{
/**
{
class TtsPlayer;
}
-}
+} // namespace DALI_INTERNAL
/**
* @brief The Text-to-speech (TTS) Player.
* @SINCE_1_0.0
*/
-class DALI_IMPORT_API TtsPlayer : public BaseHandle
+class DALI_ADAPTOR_API TtsPlayer : public BaseHandle
{
public: // ENUMs
-
/**
* @brief Enumeration for the instance of TTS mode.
* @SINCE_1_0.0
*/
enum Mode
{
- DEFAULT = 0, ///< Default mode for normal application @SINCE_1_0.0
- NOTIFICATION, ///< Notification mode, such as playing utterance is started or completed @SINCE_1_0.0
+ DEFAULT = 0, ///< Default mode for normal application @SINCE_1_0.0
+ NOTIFICATION, ///< Notification mode, such as playing utterance is started or completed @SINCE_1_0.0
SCREEN_READER, ///< Screen reader mode. To help visually impaired users interact with their devices, screen reader reads text or graphic elements on the screen using the TTS engine. @SINCE_1_0.0
MODE_NUM
};
*/
enum State
{
- UNAVAILABLE = 0, ///< Player is not available @SINCE_1_0.0
- READY, ///< Player is ready to play @SINCE_1_0.0
- PLAYING, ///< Player is playing @SINCE_1_0.0
- PAUSED ///< Player is paused @SINCE_1_0.0
+ UNAVAILABLE = 0, ///< Player is not available @SINCE_1_0.0
+ READY, ///< Player is ready to play @SINCE_1_0.0
+ PLAYING, ///< Player is playing @SINCE_1_0.0
+ PAUSED ///< Player is paused @SINCE_1_0.0
};
public: // Typedefs
-
/**
* @brief Type of signal emitted when the TTS state changes.
* @SINCE_1_0.0
*/
- typedef Signal< void ( const Dali::TtsPlayer::State, const Dali::TtsPlayer::State ) > StateChangedSignalType;
+ typedef Signal<void(const Dali::TtsPlayer::State, const Dali::TtsPlayer::State)> StateChangedSignalType;
public: // API
-
/**
* @brief Creates an uninitialized handle.
*
TtsPlayer& operator=(const TtsPlayer& rhs);
/**
+ * @brief Move constructor.
+ *
+ * @SINCE_1_9.24
+ * @param[in] rhs A reference to the moved handle
+ */
+ TtsPlayer(TtsPlayer&& rhs);
+
+ /**
+ * @brief Move assignment operator.
+ *
+ * @SINCE_1_9.24
+ * @param[in] rhs A reference to the moved handle
+ * @return A reference to this handle
+ */
+ TtsPlayer& operator=(TtsPlayer&& rhs);
+
+ /**
* @brief Starts playing the audio data synthesized from the specified text.
*
* @SINCE_1_0.0
Dali::TtsPlayer::StateChangedSignalType& StateChangedSignal();
public: // Not intended for application developers
-
/// @cond internal
/**
* @brief This constructor is used by TtsPlayer::Get().
* @SINCE_1_0.0
* @param[in] ttsPlayer A pointer to the TTS player
*/
- explicit DALI_INTERNAL TtsPlayer( Internal::Adaptor::TtsPlayer* ttsPlayer );
+ explicit DALI_INTERNAL TtsPlayer(Internal::Adaptor::TtsPlayer* ttsPlayer);
/// @endcond
};
*/
} // namespace Dali
-#endif // __DALI_TTS_PLAYER_H__
+#endif // DALI_TTS_PLAYER_H