1 #ifndef __DALI_INTERNAL_CLIPBOARD_H__
2 #define __DALI_INTERNAL_CLIPBOARD_H__
5 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
7 // Licensed under the Flora License, Version 1.0 (the License);
8 // you may not use this file except in compliance with the License.
9 // You may obtain a copy of the License at
11 // http://floralicense.org/license/
13 // Unless required by applicable law or agreed to in writing, software
14 // distributed under the License is distributed on an AS IS BASIS,
15 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 // See the License for the specific language governing permissions and
17 // limitations under the License.
21 #include <dali/public-api/adaptor-framework/common/clipboard.h>
22 #include <dali/public-api/object/base-object.h>
37 * Implementation of the Clip Board
40 class Clipboard : public Dali::BaseObject
45 * @copydoc Dali::ClipboardEventNotifier::Get()
47 static Dali::Clipboard Get();
51 * @param[in] ecoreXwin, The window is created by application.
54 Clipboard(Ecore_X_Window ecoreXwin);
58 * @copydoc Dali::Clipboard::SetItem()
60 bool SetItem(const std::string &itemData);
63 * @copydoc Dali::Clipboard::GetItem()
65 std::string GetItem( unsigned int index );
68 * @copydoc Dali::Clipboard::NumberOfClipboardItems()
70 unsigned int NumberOfItems();
73 * @copydoc Dali::Clipboard::ShowClipboard()
78 * @copydoc Dali::Clipboard::HideClipboard()
84 Ecore_X_Window mApplicationWindow;
85 Clipboard( const Clipboard& );
86 Clipboard& operator=( Clipboard& );
91 } // namespace Adaptor
93 } // namespace Internal
95 inline static Internal::Adaptor::Clipboard& GetImplementation(Dali::Clipboard& clipboard)
97 DALI_ASSERT_ALWAYS( clipboard && "Clipboard handle is empty" );
98 BaseObject& handle = clipboard.GetBaseObject();
99 return static_cast<Internal::Adaptor::Clipboard&>(handle);
102 inline static const Internal::Adaptor::Clipboard& GetImplementation(const Dali::Clipboard& clipboard)
104 DALI_ASSERT_ALWAYS( clipboard && "Clipboard handle is empty" );
105 const BaseObject& handle = clipboard.GetBaseObject();
106 return static_cast<const Internal::Adaptor::Clipboard&>(handle);
111 #endif // __DALI_INTERNAL_CLIPBOARD_H__