Remove unnecessray Clipboard creation in text controller
[platform/core/uifw/dali-toolkit.git] / automated-tests / src / dali-toolkit / dali-toolkit-test-utils / toolkit-clipboard.h
index 0f9cb42..d3d684d 100644 (file)
@@ -1,8 +1,8 @@
-#ifndef  __TOOLKIT_CLIPBOARD_H__
-#define  __TOOLKIT_CLIPBOARD_H__
+#ifndef  TOOLKIT_CLIPBOARD_H
+#define  TOOLKIT_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.
@@ -18,7 +18,7 @@
  *
  */
 
-#define __DALI_CLIPBOARD_H__
+#define DALI_CLIPBOARD_H
 
 // EXTERNAL INCLUDES
 #include <dali/public-api/math/rect.h>
@@ -67,6 +67,13 @@ public:
   static Clipboard 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
    * @param[in] itemData string to send to clip board
    * @return bool true if the internal clip board sending was successful.
@@ -103,4 +110,4 @@ public:
 };
 } // namespace Dali
 
-#endif // __TOOLKIT_CLIPBOARD_H__
+#endif // TOOLKIT_CLIPBOARD_H