Tizen 2.1 base
[apps/osp/Home.git] / inc / HmIHomePresentationModelListener.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        HmIHomePresentationModelListener.h
19  * @brief       keeps the declaration for IHomePresentationModelEventListener,
20  * which contains the event callback methods for HomePresentationModel events.
21  */
22
23 #ifndef _HM_IHOME_PRESENTATION_MODEL_LISTENER_H_
24 #define _HM_IHOME_PRESENTATION_MODEL_LISTENER_H_
25
26 /**
27  * @class       IHomePresentationModelEventListener
28  * @brief       Event listener for the Model events
29  */
30 class IHomePresentationModelEventListener
31 {
32 public:
33         /**
34          * This polymorphic destructor should be overridden if required.
35          * This way, the destructors of the derived classes are called when the
36          * destructor of this interface is called
37          */
38         virtual ~IHomePresentationModelEventListener(void) {}
39
40         /**
41          * Installation completed successfully
42          *
43          * @param[in] Info, application info of the installed application
44          */
45         virtual void OnInstallationCompleted(const HomeItemInfo& pItemInfo) = 0;
46
47         /**
48          * Installation is in progress
49          *
50          * @param[in] Info, application info of the application being installed.
51          */
52         virtual void OnInstallationInProgress(const HomeItemInfo& pInfo, int progress) {}
53
54         /**
55          * Un-Installation completed successfully
56          *
57          * @param[in] Info, application info of the un-installed application
58          */
59         virtual void OnUnInstallationCompleted(const HomeItemInfo& pItemInfo) = 0;
60
61         /**
62          * Installation completed successfully
63          *
64          * @param[in] Info, application info of the installed application
65          */
66         virtual void OnUpdatePageRequestedN(Tizen::Base::Collection::ArrayList* pPageList) = 0;
67
68 };
69 #endif //_HM_IHOME_PRESENTATION_MODEL_LISTENER_H_