be99bda8605448577fcafe89c7cc8155ea7aa5cc
[platform/core/uifw/dali-adaptor.git] / adaptors / tizen / public-api / adaptor-framework / common / clipboard-event-notifier.cpp
1 //
2 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
3 //
4 // Licensed under the Flora License, Version 1.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
7 //
8 //     http://floralicense.org/license/
9 //
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.
15 //
16
17 // CLASS HEADER
18 #include <dali/public-api/adaptor-framework/common/clipboard-event-notifier.h>
19
20 // INTERNAL INCLUDES
21 #include <internal/common/clipboard-event-notifier-impl.h>
22
23 namespace Dali
24 {
25
26 const char* const ClipboardEventNotifier::SIGNAL_CONTENT_SELECTED( "content-selected" );
27
28 ClipboardEventNotifier::ClipboardEventNotifier()
29 {
30 }
31
32 ClipboardEventNotifier ClipboardEventNotifier::Get()
33 {
34   return Internal::Adaptor::ClipboardEventNotifier::Get();
35 }
36
37 ClipboardEventNotifier::~ClipboardEventNotifier()
38 {
39 }
40
41 const std::string& ClipboardEventNotifier::GetContent() const
42 {
43   return Internal::Adaptor::ClipboardEventNotifier::GetImplementation(*this).GetContent();
44 }
45
46 void ClipboardEventNotifier::SetContent( const std::string& content )
47 {
48   Internal::Adaptor::ClipboardEventNotifier::GetImplementation(*this).SetContent(content);
49 }
50
51 void ClipboardEventNotifier::ClearContent()
52 {
53   Internal::Adaptor::ClipboardEventNotifier::GetImplementation(*this).ClearContent();
54 }
55
56 void ClipboardEventNotifier::EmitContentSelectedSignal()
57 {
58   Internal::Adaptor::ClipboardEventNotifier::GetImplementation(*this).EmitContentSelectedSignal();
59 }
60
61 ClipboardEventNotifier::ClipboardEventSignalV2& ClipboardEventNotifier::ContentSelectedSignal()
62 {
63   return Internal::Adaptor::ClipboardEventNotifier::GetImplementation(*this).ContentSelectedSignal();
64 }
65
66 ClipboardEventNotifier::ClipboardEventNotifier( Internal::Adaptor::ClipboardEventNotifier* notifier )
67 : BaseHandle( notifier )
68 {
69 }
70
71 } // namespace Dali