2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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
8 // http://floralicense.org/license/
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.
18 * @file HmICustomPageControlEventListener.h
19 * @brief Listener interface for CustomPageControl events
22 #ifndef _HM_ICUSTOM_PAGE_CONTROL_EVENT_LISTENER_H_
23 #define _HM_ICUSTOM_PAGE_CONTROL_EVENT_LISTENER_H_
28 * @class ICustomPageControlEventListener
29 * @brief Notifies about the events occurred in page control *
32 class ICustomPageControlEventListener
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
40 virtual ~ICustomPageControlEventListener(void) {}
43 * This method gets called when Uninstall of an application requested
44 * @param[in] pItemInfo, the application's information to be un-installed
46 virtual void OnAppUninstallRequested(HomeItemInfo* pItemInfo) = 0;
49 * This method gets called when a new page gets added.
51 virtual void OnPageAdded(int pageNumber) = 0;
54 * This method gets called when the page gets deleted
55 * @param[in] pageNumber, gives the deleted page number
57 virtual void OnPageRemoved(int pageNumber) = 0;
60 * This method gets called when the page gets swept or scrolled
62 * @param[in] pageNumber, gives the currently shown page number
64 virtual void OnPageSwept(int pageNumber) = 0;
69 #endif // _HM_ICUSTOM_PAGE_CONTROL_EVENT_LISTENER_H_