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 PhnSuggestionItemProvider.h
19 * @brief This is the header file for the %SuggestionItemProvider class.
21 * This header file contains the declarations for %SuggestionItemProvider class.
26 #ifndef _PHN_SUGGESTION_ITEM_PROVIDER_H_
27 #define _PHN_SUGGESTION_ITEM_PROVIDER_H_
29 using namespace Tizen::Ui;
30 using namespace Tizen::Ui::Controls;
32 class DialPresentationModel;
35 * @class SuggestionItemProvider
36 * @brief This class provides Item provider for search contact list.
39 class SuggestionItemProvider
40 : public IListViewItemProvider
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);
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);
57 DialPresentationModel& __dialPresentationModel;
59 #endif // _PHN_SUGGESTION_ITEM_PROVIDER_H_