Dali 3D User Interface Engine
clipboard-impl.h
Go to the documentation of this file.
1 #ifndef __DALI_INTERNAL_CLIPBOARD_H__
2 #define __DALI_INTERNAL_CLIPBOARD_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
23 
24 // INTERNAL INCLUDES
25 #include <clipboard.h>
26 
27 namespace Dali
28 {
29 
30 namespace Internal
31 {
32 
33 namespace Adaptor
34 {
35 
41 {
42 public:
43 
44  // Hide the specific windowing system
45  struct Impl;
46 
50  static Dali::Clipboard Get();
51 
56  Clipboard(Impl* impl);
57 
61  virtual ~Clipboard();
62 
66  bool SetItem(const std::string &itemData);
67 
71  std::string GetItem( unsigned int index );
72 
76  unsigned int NumberOfItems();
77 
81  void ShowClipboard();
82 
86  void HideClipboard();
87 
88 private:
89 
90  // Undefined
91  Clipboard( const Clipboard& );
93 
94 private:
95 
96  Impl* mImpl;
97 
98 }; // class clipboard
99 
100 
101 } // namespace Adaptor
102 
103 } // namespace Internal
104 
105  inline static Internal::Adaptor::Clipboard& GetImplementation(Dali::Clipboard& clipboard)
106  {
107  DALI_ASSERT_ALWAYS( clipboard && "Clipboard handle is empty" );
108  BaseObject& handle = clipboard.GetBaseObject();
109  return static_cast<Internal::Adaptor::Clipboard&>(handle);
110  }
111 
112  inline static const Internal::Adaptor::Clipboard& GetImplementation(const Dali::Clipboard& clipboard)
113  {
114  DALI_ASSERT_ALWAYS( clipboard && "Clipboard handle is empty" );
115  const BaseObject& handle = clipboard.GetBaseObject();
116  return static_cast<const Internal::Adaptor::Clipboard&>(handle);
117  }
118 
119 } // namespace Dali
120 
121 #endif // __DALI_INTERNAL_CLIPBOARD_H__
Dali Docs Home
Read more about Dali