Tizen 2.0 Release
[apps/osp/Phone.git] / inc / PhnSuggestionItemProvider.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                PhnSuggestionItemProvider.h
19  * @brief               This is the header file for the %SuggestionItemProvider class.
20  *
21  * This header file contains the declarations for %SuggestionItemProvider class.
22  */
23 #include <FBase.h>
24 #include <FUi.h>
25
26 #ifndef _PHN_SUGGESTION_ITEM_PROVIDER_H_
27 #define _PHN_SUGGESTION_ITEM_PROVIDER_H_
28
29 using namespace Tizen::Ui;
30 using namespace Tizen::Ui::Controls;
31
32 class DialPresentationModel;
33
34 /**
35  * @class SuggestionItemProvider
36  * @brief This class provides Item provider for search contact list.
37  *
38  */
39 class SuggestionItemProvider
40         : public IListViewItemProvider
41 {
42 public:
43         SuggestionItemProvider(DialPresentationModel& pDialPresentationModel);
44         ~SuggestionItemProvider(void);
45         ///IListViewItemProvider method
46         virtual Tizen::Ui::Controls::ListItemBase* CreateItem(int index, int itemWidth);
47         ///IListViewItemProvider method
48         virtual bool DeleteItem(int index, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth);
49         ///IListViewItemProvider method
50         virtual int GetItemCount(void);
51
52 private:
53         //Internal function to return EnrichedText with Text + Highlighted keyword, if any.
54         Tizen::Graphics::EnrichedText* ConstructEnrichedTextN(Tizen::Base::String& text,Tizen::Base::String& keyword, int textFontStyle, int buttonStatus);
55
56 private:
57         DialPresentationModel& __dialPresentationModel;
58 };
59 #endif // _PHN_SUGGESTION_ITEM_PROVIDER_H_