-#ifndef __TOOLKIT_CLIPBOARD_H__
-#define __TOOLKIT_CLIPBOARD_H__
+#ifndef TOOLKIT_TEXT_CLIPBOARD_H
+#define TOOLKIT_TEXT_CLIPBOARD_H
/*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 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.
*
*/
-#define __DALI_CLIPBOARD_H__
+#define DALI_TEXT_CLIPBOARD_H
// EXTERNAL INCLUDES
#include <dali/public-api/math/rect.h>
namespace Adaptor
{
-class Clipboard;
+class TextClipboard;
}
}
* The Clipboard can operate using various funtion.
* Clipboard can manage it's item and set show / hide status.
*/
-class Clipboard : public BaseHandle
+class TextClipboard : public BaseHandle
{
public:
/**
* Create an uninitialized Clipboard;
* this can be initialized with one of the derived Clipboard' New() methods
*/
- Clipboard();
+ TextClipboard();
/**
* Non virtual destructor.
*/
- ~Clipboard();
+ ~TextClipboard();
/**
* This constructor is used by Adaptor::GetClipboard().
* @param[in] clipboard A pointer to the clipboard.
*/
- Clipboard( Internal::Adaptor::Clipboard* clipboard );
+ TextClipboard( Internal::Adaptor::TextClipboard* clipboard );
/**
- * Retrieve a handle to the ClipboardEventNotifier instance
- * @return A handle to the Clipboard
+ * Retrieve a handle to the TextClipboardEventNotifier instance
+ * @return A handle to the TextClipboard
*/
- static Clipboard Get();
+ static TextClipboard Get();
+
+ /**
+ * @brief Checks whether the clipboard is available.
+ *
+ * @return true, if it is available, false otherwise.
+ */
+ static bool IsAvailable();
/**
* Send the given string to the clipboard
bool SetItem( const std::string& itemData );
/**
- * Retreive the string at the given index in the clip board.
- * @param[in] index item in clipboard list to retrieve
- * @return string the text item at the current index.
+ * Request clipboard service to retrieve an item
*/
- std::string GetItem( unsigned int index );
+ void RequestItem();
/**
* Returns the number of item currently in the clipboard
*/
void HideClipboard();
+ /**
+ * @brief Retrieves the clipboard's visibility
+ * @return bool true if the clipboard is visible.
+ */
+ bool IsVisible() const;
+
};
} // namespace Dali
-#endif // __TOOLKIT_CLIPBOARD_H__
+#endif // TOOLKIT_TextCLIPBOARD_H