summaryrefslogtreecommitdiff
path: root/src/controls/FWebCtrl_PageNavigationListImpl.h
blob: a8b4893c7d13ec19ffd281793b5fcfa55e5a1a92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
//
// Open Service Platform
// Copyright (c) 2012 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.
//

/**
 * @file		FWebCtrl_PageNavigationListImpl.h
 * @brief		The file contains the declaration of _PageNavigationListImpl class.
 *
 * The file contains the declaration of _PageNavigationListImpl class.
 */
#ifndef _FWEB_CTRL_INTERNAL_PAGE_NAVIGATION_LIST_IMPL_H_
#define _FWEB_CTRL_INTERNAL_PAGE_NAVIGATION_LIST_IMPL_H_

#include <unique_ptr.h>
#include <FBaseColAllElementsDeleter.h>
#include <FBaseColIList.h>
#include <FBaseObject.h>

namespace Tizen { namespace Web
{
class HistoryItem;
}} // Tizen::Web

namespace Tizen { namespace Web { namespace Controls
{
class PageNavigationList;


class _PageNavigationListImpl
	: public Tizen::Base::Object
{
public:
	_PageNavigationListImpl(void);

	virtual ~_PageNavigationListImpl(void);

	void SetPageNavigationList(Tizen::Base::Collection::IList* pList, int currentIndex);

	const Tizen::Web::HistoryItem* GetCurrentItem(void) const;

	int GetCurrentIndex(void) const;

	const Tizen::Web::HistoryItem* GetItemAt(int index) const;

	int GetItemCount(void) const;

	static _PageNavigationListImpl* GetInstance(PageNavigationList* pPageNavigationList);

	static const _PageNavigationListImpl* GetInstance(const PageNavigationList* pPageNavigationList);

private:
	_PageNavigationListImpl(_PageNavigationListImpl& pageNavigationListImpl);

	_PageNavigationListImpl& operator =(const _PageNavigationListImpl& pageNavigationListImpl);

private:
	std::unique_ptr<Tizen::Base::Collection::IList, Tizen::Base::Collection::AllElementsDeleter> __pNavigationList;

	int __currentIndex;
}; // _PageNavigationListImpl

}}} // Tizen::Web::Controls
#endif // _FWEB_CTRL_INTERNAL_PAGE_NAVIGATION_LIST_IMPL_H_