[dali_2.3.42] Merge branch 'devel/master'
[platform/core/uifw/dali-adaptor.git] / dali / devel-api / adaptor-framework / clipboard.h
index c5a7bcd..707b936 100644 (file)
@@ -82,6 +82,9 @@ public:
   /// @brief Data receive completed signal.
   typedef Signal<void(uint32_t, const char*, const char*)> DataReceivedSignalType;
 
+  /// @brief To catch data selection event.
+  typedef Signal<void(const char*)> DataSelectedSignalType;
+
   /**
    * @brief Create an uninitialized Clipboard.
    * this can be initialized with one of the derived Clipboard's New() methods
@@ -131,6 +134,18 @@ public:
   DataReceivedSignalType& DataReceivedSignal();
 
   /**
+   * @brief This signal is emitted when the data seleted.
+   */
+  DataSelectedSignalType& DataSelectedSignal();
+
+  /**
+   * @brief Check if there is data in the clipboard with a given mime type.
+   * @param[in] mimeType mime type to search for.
+   * @return bool true if there is data, otherwise false.
+   */
+  bool HasType(const std::string& mimeType);
+
+  /**
    * @brief Send the given data to the clipboard.
    * @param[in] clipData data to send to the clipboard
    * @return bool true if the internal clipboard sending was successful.