Tizen 2.0 Release
[apps/osp/Phone.git] / inc / PhnLogsDetailItemProvider.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                PhnActiveCallForm.h
19  * @brief               This is the header file for the %DlLogsDetailItemDataProvider class.
20  *
21  * This header file contains the declarations for %DlLogsDetailItemDataProvider class.
22  */
23 #ifndef _PHN_LOGS_DETAIL_ITEM_PROVIDER_H_
24 #define _PHN_LOGS_DETAIL_ITEM_PROVIDER_H_
25
26 #include <FBase.h>
27 #include <FUi.h>
28
29 using namespace Tizen::Ui;
30 using namespace Tizen::Ui::Controls;
31
32 class CallLogManager;
33 class CallLogDetails;
34
35 /**
36  * @class DlLogsDetailItemDataProvider
37  * @brief This class provides Item provider for list memo
38  *
39  */
40 class DlLogsDetailItemDataProvider
41         : public IListViewItemProvider
42 {
43 public:
44         DlLogsDetailItemDataProvider(void);
45
46         ~DlLogsDetailItemDataProvider(void);
47
48         ///IListViewItemProvider method
49         virtual Tizen::Ui::Controls::ListItemBase* CreateItem(int index, int itemWidth);
50
51         ///IListViewItemProvider method
52         virtual bool DeleteItem(int index, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth);
53
54         ///IListViewItemProvider method
55         virtual int GetItemCount(void);
56
57         void SetViewMode(bool mode);
58
59         void ResetDetailsList(void);
60
61 protected:
62         static const int ID_NAME_STRING;
63         static const int ID_NUMBER_STRING;
64         static const int ID_TIME_STRING;
65         static const int ID_CALLTYPE_BITMAP;
66
67         static const int X_TEXT_LINE1_ITEM;
68         static const int Y_TEXT_LINE1_ITEM;
69         static const int H_TEXT_LINE1_ITEM;
70         static const int W_TEXT_LINE1_ITEM;
71
72         static const int X_TEXT_LINE2_ITEM;
73         static const int Y_TEXT_LINE2_ITEM;
74         static const int H_TEXT_LINE2_ITEM;
75         static const int W_TEXT_LINE2_ITEM;
76
77         static const int X_TEXT_TIME_ITEM;
78         static const int Y_TEXT_TIME_ITEM;
79         static const int H_TEXT_TIME_ITEM;
80         static const int W_TEXT_TIME_ITEM;
81
82
83         static const int X_CALLTYPE_BITMAP_ITEM;
84         static const int Y_CALLTYPE_BITMAP_ITEM;
85         static const int H_CALLTYPE_BITMAP_ITEM;
86         static const int W_CALLTYPE_BITMAP_ITEM;
87 private:
88         bool __isEditMode;
89         CallLogManager* __pCallMgr;
90         Tizen::Base::Collection::IListT<CallLogDetails>* __pCalllogListByNumber;
91 };
92
93 #endif /* _PHN_LOGS_DETAIL_ITEM_PROVIDER_H_ */