2 * Copyright (c) 2023 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #include <dali/devel-api/adaptor-framework/clipboard.h>
22 #include <dali/internal/clipboard/common/clipboard-impl.h>
26 Clipboard::Clipboard()
30 Clipboard::~Clipboard()
34 Clipboard::Clipboard(Internal::Adaptor::Clipboard* impl)
39 Clipboard Clipboard::Get()
41 return Internal::Adaptor::Clipboard::Get();
44 bool Clipboard::IsAvailable()
46 return Internal::Adaptor::Clipboard::IsAvailable();
49 Clipboard::DataSentSignalType& Clipboard::DataSentSignal()
51 return GetImplementation(*this).DataSentSignal();
54 Clipboard::DataReceivedSignalType& Clipboard::DataReceivedSignal()
56 return GetImplementation(*this).DataReceivedSignal();
59 bool Clipboard::SetData(const ClipData& clipData)
61 return GetImplementation(*this).SetData(clipData);
64 uint32_t Clipboard::GetData(const std::string& mimeType)
66 return GetImplementation(*this).GetData(mimeType);
69 size_t Clipboard::NumberOfItems()
71 return GetImplementation(*this).NumberOfItems();
74 void Clipboard::ShowClipboard()
76 GetImplementation(*this).ShowClipboard();
79 void Clipboard::HideClipboard()
81 GetImplementation(*this).HideClipboard(false);
84 bool Clipboard::IsVisible() const
86 return GetImplementation(*this).IsVisible();