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>
29 #include <FGrpBitmap.h>
31 namespace Tizen { namespace Web
33 class _HistoryItemImpl;
34 class _WebHistoryImpl;
37 namespace Tizen { namespace Web { namespace Controls
40 }}} // Tizen::Web::Controls
42 namespace Tizen { namespace Web
47 * @brief This class is used for accessing a history item stored in the PageNavigationList class or the WebHistory class.
51 * The %HistoryItem class provides access to the Controls::PageNavigationList class item and the WebHistory class.
52 * Each item contains the title and the URL of the page visited.
54 class _OSP_EXPORT_ HistoryItem
55 : public Tizen::Base::Object
59 * This destructor overrides Tizen::Base::Object::~Object().
63 virtual ~HistoryItem(void);
66 * Gets the page title of the current history item.
70 * @return The title of the current history item
72 Tizen::Base::String GetTitle(void) const;
75 * Gets the URL of the current history item.
79 * @return The URL of the current history item
81 Tizen::Base::String GetUrl(void) const;
84 * Gets the favicon image from HistoryItem
90 * @exception E_SUCCESS The method is successful.
91 * @remarks The specific error code can be accessed using the GetLastResult() method.
93 Tizen::Graphics::Bitmap* GetFaviconN(void) const;
97 // This default constructor is intentionally declared as private to implement the Singleton semantic
99 // @remarks This constructor is hidden.
104 // The implementation of this copy constructor is intentionally blank and declared as private to prohibit copying of objects.
106 // @param[in] item The instance of the %HistoryItem class to copy from
107 // @remarks This constructor is hidden.
109 HistoryItem(const HistoryItem& item);
112 // The implementation of this copy assignment operator is intentionally blank and declared as private to prohibit copying of objects.
114 // @param[in] item The instance of the %HistoryItem class to assign from
115 // @remarks This operator is hidden.
117 HistoryItem& operator =(const HistoryItem& item);
120 _HistoryItemImpl* __pHistoryItemImpl;
122 friend class Tizen::Web::Controls::_WebImpl;
124 friend class _HistoryItemImpl;
126 friend class _WebHistoryImpl;
130 #endif // _FWEB_HISTORY_ITEM_H_