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 FWebCtrl_PageNavigationListImpl.h
20 * @brief The file contains the declaration of _PageNavigationListImpl class.
22 * The file contains the declaration of _PageNavigationListImpl class.
24 #ifndef _FWEB_CTRL_INTERNAL_PAGE_NAVIGATION_LIST_IMPL_H_
25 #define _FWEB_CTRL_INTERNAL_PAGE_NAVIGATION_LIST_IMPL_H_
27 #include <unique_ptr.h>
28 #include <FBaseColAllElementsDeleter.h>
29 #include <FBaseColIList.h>
30 #include <FBaseObject.h>
32 namespace Tizen { namespace Web
37 namespace Tizen { namespace Web { namespace Controls
39 class PageNavigationList;
42 class _PageNavigationListImpl
43 : public Tizen::Base::Object
46 _PageNavigationListImpl(void);
48 virtual ~_PageNavigationListImpl(void);
50 void SetPageNavigationList(Tizen::Base::Collection::IList* pList, int currentIndex);
52 const Tizen::Web::HistoryItem* GetCurrentItem(void) const;
54 int GetCurrentIndex(void) const;
56 const Tizen::Web::HistoryItem* GetItemAt(int index) const;
58 int GetItemCount(void) const;
60 static _PageNavigationListImpl* GetInstance(PageNavigationList* pPageNavigationList);
62 static const _PageNavigationListImpl* GetInstance(const PageNavigationList* pPageNavigationList);
65 _PageNavigationListImpl(_PageNavigationListImpl& pageNavigationListImpl);
67 _PageNavigationListImpl& operator =(const _PageNavigationListImpl& pageNavigationListImpl);
70 std::unique_ptr<Tizen::Base::Collection::IList, Tizen::Base::Collection::AllElementsDeleter> __pNavigationList;
73 }; // _PageNavigationListImpl
75 }}} // Tizen::Web::Controls
76 #endif // _FWEB_CTRL_INTERNAL_PAGE_NAVIGATION_LIST_IMPL_H_