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 <dali/public-api/object/base-object.h>
25 #include <clipboard.h>
37 * Implementation of the Clip Board
40 class Clipboard : public Dali::BaseObject
44 // Hide the specific windowing system
48 * @copydoc Dali::ClipboardEventNotifier::Get()
50 static Dali::Clipboard Get();
54 * @param[in] impl Some data from a specific windowing system.
56 Clipboard(Impl* impl);
64 * @copydoc Dali::Clipboard::SetItem()
66 bool SetItem(const std::string &itemData);
69 * @copydoc Dali::Clipboard::GetItem()
71 std::string GetItem( unsigned int index );
74 * @copydoc Dali::Clipboard::NumberOfClipboardItems()
76 unsigned int NumberOfItems();
79 * @copydoc Dali::Clipboard::ShowClipboard()
84 * @copydoc Dali::Clipboard::HideClipboard()
91 Clipboard( const Clipboard& );
92 Clipboard& operator=( Clipboard& );
101 } // namespace Adaptor
103 } // namespace Internal
105 inline static Internal::Adaptor::Clipboard& GetImplementation(Dali::Clipboard& clipboard)
107 DALI_ASSERT_ALWAYS( clipboard && "Clipboard handle is empty" );
108 BaseObject& handle = clipboard.GetBaseObject();
109 return static_cast<Internal::Adaptor::Clipboard&>(handle);
112 inline static const Internal::Adaptor::Clipboard& GetImplementation(const Dali::Clipboard& clipboard)
114 DALI_ASSERT_ALWAYS( clipboard && "Clipboard handle is empty" );
115 const BaseObject& handle = clipboard.GetBaseObject();
116 return static_cast<const Internal::Adaptor::Clipboard&>(handle);
121 #endif // __DALI_INTERNAL_CLIPBOARD_H__