Tizen 2.1 base
[apps/osp/Home.git] / inc / HmICustomPageControlEventListener.h
1 //
2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
3 //
4 // Licensed under the Flora License, Version 1.0 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 //     http://floralicense.org/license/
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an AS IS BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16
17 /**
18  * @file        HmICustomPageControlEventListener.h
19  * @brief       Listener interface for CustomPageControl events
20  */
21
22 #ifndef _HM_ICUSTOM_PAGE_CONTROL_EVENT_LISTENER_H_
23 #define _HM_ICUSTOM_PAGE_CONTROL_EVENT_LISTENER_H_
24
25 class HomeItemInfo;
26
27 /**
28  * @class       ICustomPageControlEventListener
29  * @brief       Notifies about the events occurred in page control *
30  */
31
32 class ICustomPageControlEventListener
33 {
34 public:
35         /**
36          * This polymorphic destructor should be overridden if required.
37          * This way, the destructor of the derived classes are called when the
38          * destructor of this interface is called
39          */
40         virtual ~ICustomPageControlEventListener(void) {}
41
42         /**
43          *      This method gets called when Uninstall of an application requested
44          *      @param[in]      pItemInfo, the application's information to be un-installed
45          */
46         virtual void OnAppUninstallRequested(HomeItemInfo* pItemInfo) = 0;
47
48         /**
49          *      This method gets called when a new page gets added.
50          */
51         virtual void OnPageAdded(int pageNumber) = 0;
52
53         /**
54          *      This method gets called when the page gets deleted
55          *      @param[in]      pageNumber, gives the deleted page number
56          */
57         virtual void OnPageRemoved(int pageNumber) = 0;
58
59         /**
60          *      This method gets called when the page gets swept or scrolled
61          *
62          *      @param[in]      pageNumber, gives the currently shown page number
63          */
64         virtual void OnPageSwept(int pageNumber) = 0;
65
66 };
67
68
69 #endif // _HM_ICUSTOM_PAGE_CONTROL_EVENT_LISTENER_H_