X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Fdali-toolkit-test-utils%2Ftoolkit-clipboard.h;h=0f9cb42637a51d2c2b3d389f8a54b5c571086578;hp=cbaf46c72c10e23976b031078cfdedf02bd33304;hb=d07dc4c4a6067ba3080184d862bca40a90d1789c;hpb=30f6ca1e541089b19f2b349a8a12d8a5bcaf2f9e diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-clipboard.h b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-clipboard.h index cbaf46c..0f9cb42 100644 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-clipboard.h +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-clipboard.h @@ -1,21 +1,22 @@ #ifndef __TOOLKIT_CLIPBOARD_H__ #define __TOOLKIT_CLIPBOARD_H__ -// -// Copyright (c) 2014 Samsung Electronics Co., Ltd. -// -// Licensed under the Flora License, Version 1.0 (the License); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://floralicense.org/license/ -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an AS IS BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* + * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ #define __DALI_CLIPBOARD_H__ @@ -49,9 +50,9 @@ public: Clipboard(); /** - * Virtual destructor. + * Non virtual destructor. */ - virtual ~Clipboard(); + ~Clipboard(); /** * This constructor is used by Adaptor::GetClipboard(). @@ -73,11 +74,9 @@ public: bool SetItem( const std::string& itemData ); /** - * Retreive the string at the given index in the clip board. - * @param[in] index item in clipboard list to retrieve - * @return string the text item at the current index. + * Request clipboard service to retrieve an item */ - std::string GetItem( unsigned int index ); + void RequestItem(); /** * Returns the number of item currently in the clipboard @@ -95,6 +94,12 @@ public: */ void HideClipboard(); + /** + * @brief Retrieves the clipboard's visibility + * @return bool true if the clipboard is visible. + */ + bool IsVisible() const; + }; } // namespace Dali