3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Flora License, Version 1.1 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://floralicense.org/license/
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an AS IS BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 /*@file: IntSharePopUp.h
20 *@brief: This header file contains the declarations of the SharePopup
24 #ifndef INTSHAREPOPUP_H_
25 #define INTSHAREPOPUP_H_
33 class ShareInfo : public Tizen::Base::Object
38 * @brief The Default constructor
43 * @brief The Default destructor
48 * @brief The method used to get the Page title
50 * @return String The Page title
52 Tizen::Base::String GetPageTitle(void);
55 * @brief The method used to get the Page URL
57 * @return String The Page URL
59 Tizen::Base::String GetPageURL(void);
62 * @brief The method used to set the Page title
63 * @param[in] aPageTitle
65 void SetPageTitle(Tizen::Base::String aPageTitle);
68 * @brief The method used to set the Page URL
71 void SetPageUrl(Tizen::Base::String aPageURL);
73 void SetImageAttached(bool imageAttached);
75 bool GetImageAttached();
77 void SetImagePath(Tizen::Base::String aImagePath);
79 Tizen::Base::String GetImagePath(void);
82 Tizen::Base::String __pageTitle;
83 Tizen::Base::String __pageURL;
84 Tizen::Base::String __imagePath;
89 : public Tizen::App::IAppControlEventListener
90 , public Tizen::Base::Runtime::ITimerEventListener
91 , public Tizen::Ui::Controls::IListViewItemEventListener
92 , public Tizen::Ui::Controls::IListViewItemProvider
93 , public Tizen::Ui::Controls::Popup
94 , public Tizen::Ui::IActionEventListener
95 , public Tizen::Ui::IPropagatedKeyEventListener
96 , public Tizen::App::IAppControlResponseListener
101 * @brief The Default Constructor
106 * @brief The Default Destructor
111 * @brief Initializes this SettingForm Form.
113 * @return An error code
114 * @exception true The method is succeIOrientationEventListenerssful.
115 * @exception false An error Occured.
117 bool Initialize(void);
119 virtual result OnTerminating(void);
122 * This function adds the share info object in the array list
124 * @return An Error Code
125 * @param An Object of ShareInfo.
127 result AddShareInfo(ShareInfo* pShareInfo);
129 void RemoveAllShareInfo();
131 //ITimerEventListener
132 virtual void OnTimerExpired(Tizen::Base::Runtime::Timer& timer);
134 //IActionEventListener
135 virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
137 // IAppControlListener
138 void OnAppControlCompleted(const Tizen::Base::String& providerId, const Tizen::Base::String& operationId, const Tizen::Base::Collection::IList* pResultList);
140 //IListViewItemProvider
141 virtual Tizen::Ui::Controls::ListItemBase* CreateItem(int index, int itemWidth);
142 virtual bool DeleteItem(int index, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth);
143 virtual int GetItemCount(void);
145 // IListViewItemEventListener
146 virtual void OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListContextItemStatus state);
147 virtual void OnListViewItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListItemStatus status);
148 virtual void OnListViewItemSwept(Tizen::Ui::Controls::ListView& listView, int index, Tizen::Ui::Controls::SweepDirection direction);
149 virtual void OnListViewItemLongPressed(Tizen::Ui::Controls::ListView& listView, int index, int elementId, bool& invokeListViewItemCallback);
152 * This function displays the Notification
154 * @return No return type.
157 void StartMessageAppControl(void);
160 * This function Starts the EmailApp Control
162 * @return No return type.
165 void StartEmailAppControl(void);
167 void OnAppControlCompleteResponseReceived(const Tizen::App::AppId& appId, const Tizen::Base::String& operationId, Tizen::App::AppCtrlResult appControlResult, const Tizen::Base::Collection::IMap* pExtraData);
169 //IPropagatedKeyEventListener
170 virtual bool OnKeyPressed (Tizen::Ui::Control &source, const Tizen::Ui::KeyEventInfo &keyEventInfo){return false;}
171 virtual bool OnKeyReleased (Tizen::Ui::Control &source, const Tizen::Ui::KeyEventInfo &keyEventInfo);
172 virtual bool OnPreviewKeyPressed (Tizen::Ui::Control &source, const Tizen::Ui::KeyEventInfo &keyEventInfo){return false;}
173 virtual bool OnPreviewKeyReleased (Tizen::Ui::Control &source, const Tizen::Ui::KeyEventInfo &keyEventInfo){return false;}
176 static const int IDA_CANCEL_BUTTON;
177 static const int ID_FORMAT_MESSAGE_STRING;
178 static const int ID_FORMAT_EMAIL_STRING;
179 static const int ID_FORMAT_FACEBOOK_STRING;
180 static const int ID_FORMAT_TWITTER_STRING;
183 Tizen::Ui::Controls::ListView* __pList;
184 Tizen::Base::Collection::ArrayList* __pShareList;
185 bool __appControlOngoing;
186 Tizen::Base::Runtime::Timer* __pTimer;
189 #endif /* INTSHAREPOPUP_H_ */