1 #ifndef __DALI_INTERNAL_CLIPBOARD_H__
2 #define __DALI_INTERNAL_CLIPBOARD_H__
5 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.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://www.apache.org/licenses/LICENSE-2.0
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.
22 #include <clipboard.h>
23 #include <dali/public-api/object/base-object.h>
38 * Implementation of the Clip Board
41 class Clipboard : public Dali::BaseObject
46 * @copydoc Dali::ClipboardEventNotifier::Get()
48 static Dali::Clipboard Get();
52 * @param[in] ecoreXwin, The window is created by application.
54 Clipboard(Ecore_X_Window ecoreXwin);
59 * @copydoc Dali::Clipboard::SetItem()
61 bool SetItem(const std::string &itemData);
64 * @copydoc Dali::Clipboard::GetItem()
66 std::string GetItem( unsigned int index );
69 * @copydoc Dali::Clipboard::NumberOfClipboardItems()
71 unsigned int NumberOfItems();
74 * @copydoc Dali::Clipboard::ShowClipboard()
79 * @copydoc Dali::Clipboard::HideClipboard()
85 Ecore_X_Window mApplicationWindow;
86 Clipboard( const Clipboard& );
87 Clipboard& operator=( Clipboard& );
92 } // namespace Adaptor
94 } // namespace Internal
96 inline static Internal::Adaptor::Clipboard& GetImplementation(Dali::Clipboard& clipboard)
98 DALI_ASSERT_ALWAYS( clipboard && "Clipboard handle is empty" );
99 BaseObject& handle = clipboard.GetBaseObject();
100 return static_cast<Internal::Adaptor::Clipboard&>(handle);
103 inline static const Internal::Adaptor::Clipboard& GetImplementation(const Dali::Clipboard& clipboard)
105 DALI_ASSERT_ALWAYS( clipboard && "Clipboard handle is empty" );
106 const BaseObject& handle = clipboard.GetBaseObject();
107 return static_cast<const Internal::Adaptor::Clipboard&>(handle);
112 #endif // __DALI_INTERNAL_CLIPBOARD_H__