add patch
[framework/osp/web.git] / src / controls / FWebCtrl_PageNavigationListImpl.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
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
8 //
9 //     http://www.apache.org/licenses/LICENSE-2.0
10 //
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.
16 //
17
18 /**
19  * @file                FWebCtrl_PageNavigationListImpl.h
20  * @brief               The file contains the declaration of _PageNavigationListImpl class.
21  *
22  * The file contains the declaration of _PageNavigationListImpl class.
23  */
24 #ifndef _FWEB_CTRL_INTERNAL_PAGE_NAVIGATION_LIST_IMPL_H_
25 #define _FWEB_CTRL_INTERNAL_PAGE_NAVIGATION_LIST_IMPL_H_
26
27 #include <unique_ptr.h>
28 #include <FBaseColAllElementsDeleter.h>
29 #include <FBaseColIList.h>
30 #include <FBaseObject.h>
31
32 namespace Tizen { namespace Web
33 {
34 class HistoryItem;
35 }} // Tizen::Web
36
37 namespace Tizen { namespace Web { namespace Controls
38 {
39 class PageNavigationList;
40
41
42 class _PageNavigationListImpl
43         : public Tizen::Base::Object
44 {
45 public:
46         _PageNavigationListImpl(void);
47
48         virtual ~_PageNavigationListImpl(void);
49
50         void SetPageNavigationList(Tizen::Base::Collection::IList* pList, int currentIndex);
51
52         const Tizen::Web::HistoryItem* GetCurrentItem(void) const;
53
54         int GetCurrentIndex(void) const;
55
56         const Tizen::Web::HistoryItem* GetItemAt(int index) const;
57
58         int GetItemCount(void) const;
59
60         static _PageNavigationListImpl* GetInstance(PageNavigationList* pPageNavigationList);
61
62         static const _PageNavigationListImpl* GetInstance(const PageNavigationList* pPageNavigationList);
63
64 private:
65         _PageNavigationListImpl(_PageNavigationListImpl& pageNavigationListImpl);
66
67         _PageNavigationListImpl& operator =(const _PageNavigationListImpl& pageNavigationListImpl);
68
69 private:
70         std::unique_ptr<Tizen::Base::Collection::IList, Tizen::Base::Collection::AllElementsDeleter> __pNavigationList;
71
72         int __currentIndex;
73 }; // _PageNavigationListImpl
74
75 }}} // Tizen::Web::Controls
76 #endif // _FWEB_CTRL_INTERNAL_PAGE_NAVIGATION_LIST_IMPL_H_