Dali 3D User Interface Engine
clipboard-event-notifier-impl.h
Go to the documentation of this file.
1 #ifndef __DALI_INTERNAL_CLIPBOARD_EVENT_NOTIFIER_H__
2 #define __DALI_INTERNAL_CLIPBOARD_EVENT_NOTIFIER_H__
3 
4 /*
5  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
6  *
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
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
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.
18  *
19  */
20 
21 // EXTERNAL INCLUDES
22 #include <string>
25 
26 // INTERNAL INCLUDES
27 #include <clipboard-event-notifier.h>
28 
29 namespace Dali
30 {
31 
32 namespace Internal
33 {
34 
35 namespace Adaptor
36 {
37 
42 {
43 public:
44 
46 
47  // Creation
48 
54 
59 
60  // Public API
61 
65  const std::string& GetContent() const;
66 
71  void SetContent( const std::string& content );
72 
76  void ClearContent();
77 
82 
83 public: // Signals
84 
89  {
91  }
92 
93 private:
94 
95  // Construction & Destruction
96 
101 
105  virtual ~ClipboardEventNotifier();
106 
107  // Undefined
110 
111 private:
112 
113  std::string mContent;
114 
116 
117 public:
118 
119  // Helpers for public-api forwarding methods
120 
122  {
123  DALI_ASSERT_ALWAYS( detector && "ClipboardEventNotifier handle is empty" );
124 
125  BaseObject& handle = detector.GetBaseObject();
126 
127  return static_cast<Internal::Adaptor::ClipboardEventNotifier&>(handle);
128  }
129 
131  {
132  DALI_ASSERT_ALWAYS( detector && "ClipboardEventNotifier handle is empty" );
133 
134  const BaseObject& handle = detector.GetBaseObject();
135 
136  return static_cast<const Internal::Adaptor::ClipboardEventNotifier&>(handle);
137  }
138 
139 };
140 
141 } // namespace Adaptor
142 
143 } // namespace Internal
144 
145 } // namespace Dali
146 
147 #endif // __DALI_INTERNAL_CLIPBOARD_EVENT_NOTIFIER_H__
Dali Docs Home
Read more about Dali