Fixed Nabi Issues and poppup alignment changes
[apps/osp/Internet.git] / inc / IntSharePopup.h.bak
1 //\r
2 \r
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.\r
4 //\r
5 // Licensed under the Flora License, Version 1.0 (the License);\r
6 // you may not use this file except in compliance with the License.\r
7 // You may obtain a copy of the License at\r
8 //\r
9 //     http://floralicense.org/license/\r
10 //\r
11 // Unless required by applicable law or agreed to in writing, software\r
12 // distributed under the License is distributed on an AS IS BASIS,\r
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
14 // See the License for the specific language governing permissions and\r
15 // limitations under the License.\r
16 //\r
17 \r
18 // !Internet\r
19 /*@file:    IntSharePopUp.h\r
20  *@brief:       This header file contains the declarations of the SharePopup\r
21  *\r
22  */\r
23 \r
24 #ifndef INTSHAREPOPUP_H_\r
25 #define INTSHAREPOPUP_H_\r
26 \r
27 #include <FApp.h>\r
28 #include <FBase.h>\r
29 #include <FUi.h>\r
30 \r
31 class ShareInfo : public Tizen::Base::Object\r
32 {\r
33 public:\r
34         /**\r
35          * @brief               The Default constructor\r
36          */\r
37         ShareInfo(void);\r
38 \r
39         /**\r
40          * @brief               The Default destructor\r
41          */\r
42         ~ShareInfo(void);\r
43 \r
44         /**\r
45          * @brief               The method used to get the Page title\r
46          * @param[in]   void\r
47          * @return              String          The Page title\r
48          */\r
49         Tizen::Base::String GetPageTitle(void);\r
50 \r
51         /**\r
52          * @brief               The method used to get the Page URL\r
53          * @param[in]   void\r
54          * @return              String          The Page URL\r
55          */\r
56         Tizen::Base::String GetPageURL(void);\r
57 \r
58         /**\r
59          * @brief               The method used to set the Page title\r
60          * @param[in]   aPageTitle\r
61          */\r
62         void SetPageTitle(Tizen::Base::String aPageTitle);\r
63 \r
64         /**\r
65          * @brief               The method used to set the Page URL\r
66          * @param[in]   aPageURL\r
67          */\r
68         void SetPageUrl(Tizen::Base::String aPageURL);\r
69 \r
70 private:\r
71         Tizen::Base::String __pageTitle;\r
72         Tizen::Base::String __pageURL;\r
73 };\r
74 \r
75 class SharePopup\r
76   : public Tizen::App::IAppControlEventListener\r
77   , public Tizen::Ui::Controls::IListViewItemEventListener\r
78   , public Tizen::Ui::Controls::IListViewItemProvider\r
79   , public Tizen::Ui::Controls::Popup\r
80   , public Tizen::Ui::IActionEventListener\r
81   {\r
82   public:\r
83         /**\r
84          * @brief The Default Constructor\r
85          */\r
86         SharePopup(void);\r
87 \r
88         /**\r
89          * @brief The Default Destructor\r
90          */\r
91         ~SharePopup(void);\r
92 \r
93         /**\r
94          * @brief Initializes this SettingForm Form.\r
95          *\r
96          * @return              An error code\r
97          * @exception   true                            The method is succeIOrientationEventListenerssful.\r
98          * @exception   false                           An error Occured.\r
99          */\r
100         bool Initialize(void);\r
101 \r
102         virtual result OnTerminating(void);\r
103 \r
104         /**\r
105          * This function adds the share info object in the array list\r
106          *\r
107          * @return      An Error Code\r
108          * @param               An Object of ShareInfo.\r
109          */\r
110         result AddShareInfo(ShareInfo* pShareInfo);\r
111 \r
112         //IActionEventListener\r
113         virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);\r
114 \r
115         // IAppControlListener\r
116         void OnAppControlCompleted(const Tizen::Base::String& providerId, const Tizen::Base::String& operationId, const Tizen::Base::Collection::IList* pResultList);\r
117 \r
118         //IListViewItemProvider\r
119         virtual Tizen::Ui::Controls::ListItemBase* CreateItem(int index, int itemWidth);\r
120         virtual bool DeleteItem(int index, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth);\r
121         virtual int GetItemCount(void);\r
122 \r
123         // IListViewItemEventListener\r
124         virtual void OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListContextItemStatus state);\r
125         virtual void OnListViewItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListItemStatus status);\r
126         virtual void OnListViewItemSwept(Tizen::Ui::Controls::ListView& listView, int index, Tizen::Ui::Controls::SweepDirection direction);\r
127         virtual void OnListViewItemLongPressed(Tizen::Ui::Controls::ListView& listView, int index, int elementId, bool& invokeListViewItemCallback);\r
128 \r
129         /**\r
130          * This function displays the Notification\r
131          *\r
132          * @return      No return type.\r
133          * @param               none.\r
134          */\r
135         void StartMessageAppControl(void);\r
136 \r
137         /**\r
138          * This function Starts the EmailApp Control\r
139          *\r
140          * @return      No return type.\r
141          * @param               none.\r
142          */\r
143         void StartEmailAppControl(void);\r
144 \r
145 \r
146   protected:\r
147         static const int IDA_CANCEL_BUTTON;\r
148         static const int ID_FORMAT_MESSAGE_STRING;\r
149         static const int ID_FORMAT_EMAIL_STRING;\r
150         static const int ID_FORMAT_FACEBOOK_STRING;\r
151         static const int ID_FORMAT_TWITTER_STRING;\r
152 \r
153   private:\r
154         Tizen::Ui::Controls::ListView*  __pList;\r
155         Tizen::Base::Collection::ArrayList* __pShareList;\r
156   };\r
157 \r
158 #endif /* INTSHAREPOPUP_H_ */\r