2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 * @file FWebHistoryItem.h
20 * @brief This is the header file for the %HistoryItem class.
22 * This header file contains the declarations of the %HistoryItem class.
24 #ifndef _FWEB_HISTORY_ITEM_H_
25 #define _FWEB_HISTORY_ITEM_H_
27 #include <FBaseObject.h>
28 #include <FBaseString.h>
30 namespace Tizen { namespace Graphics
35 namespace Tizen { namespace Web
37 class _HistoryItemImpl;
38 class _WebHistoryImpl;
41 namespace Tizen { namespace Web { namespace Controls
44 }}} // Tizen::Web::Controls
46 namespace Tizen { namespace Web
51 * @brief This class is used for accessing a history item stored in the PageNavigationList class or the %WebHistory class.
55 * The %HistoryItem class provides access to the Controls::PageNavigationList class item and the WebHistory class.
56 * Each item contains the title and the URL of the page visited.
58 class _OSP_EXPORT_ HistoryItem
59 : public Tizen::Base::Object
63 * This destructor overrides Tizen::Base::Object::~Object().
67 virtual ~HistoryItem(void);
70 * Gets the page title of the current history item.
74 * @return The title of the current history item
76 Tizen::Base::String GetTitle(void) const;
79 * Gets the URL of the current history item.
83 * @return The URL of the current history item
85 Tizen::Base::String GetUrl(void) const;
88 * Gets the favicon image from %HistoryItem.
94 * @exception E_SUCCESS The method is successful.
95 * @exception E_SYSTEM Either of the following conditions has occurred: @n
96 * - The method cannot proceed due to a severe system error. @n
97 * - The method has failed because it does not work on a service application.
98 * @remarks The specific error code can be accessed using the GetLastResult() method.
100 Tizen::Graphics::Bitmap* GetFaviconN(void) const;
104 // This default constructor is intentionally declared as private to implement the Singleton semantic
106 // @remarks This constructor is hidden.
111 // The implementation of this copy constructor is intentionally blank and declared as private to prohibit copying of objects.
113 // @param[in] item The instance of the %HistoryItem class to copy from
114 // @remarks This constructor is hidden.
116 HistoryItem(const HistoryItem& item);
119 // The implementation of this copy assignment operator is intentionally blank and declared as private to prohibit copying of objects.
121 // @param[in] item The instance of the %HistoryItem class to assign from
122 // @remarks This operator is hidden.
124 HistoryItem& operator =(const HistoryItem& item);
127 _HistoryItemImpl* __pHistoryItemImpl;
129 friend class Tizen::Web::Controls::_WebImpl;
131 friend class _HistoryItemImpl;
133 friend class _WebHistoryImpl;
137 #endif // _FWEB_HISTORY_ITEM_H_