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_
32 class ShareInfo : public Tizen::Base::Object
36 * @brief The Default constructor
41 * @brief The Default destructor
46 * @brief The method used to get the Page title
48 * @return String The Page title
50 Tizen::Base::String GetPageTitle(void);
53 * @brief The method used to get the Page URL
55 * @return String The Page URL
57 Tizen::Base::String GetPageURL(void);
60 * @brief The method used to set the Page title
61 * @param[in] aPageTitle
63 void SetPageTitle(Tizen::Base::String aPageTitle);
66 * @brief The method used to set the Page URL
69 void SetPageUrl(Tizen::Base::String aPageURL);
71 void SetImageAttached(bool imageAttached);
73 bool GetImageAttached();
75 void SetImagePath(Tizen::Base::String aImagePath);
77 Tizen::Base::String GetImagePath(void);
80 Tizen::Base::String __pageTitle;
81 Tizen::Base::String __pageURL;
82 Tizen::Base::String __imagePath;
87 : public Tizen::App::IAppControlEventListener
88 , public Tizen::Ui::Controls::IListViewItemEventListener
89 , public Tizen::Ui::Controls::IListViewItemProvider
90 , public Tizen::Ui::Controls::Popup
91 , public Tizen::Ui::IActionEventListener
92 , public Tizen::App::IAppControlResponseListener
96 * @brief The Default Constructor
101 * @brief The Default Destructor
106 * @brief Initializes this SettingForm Form.
108 * @return An error code
109 * @exception true The method is succeIOrientationEventListenerssful.
110 * @exception false An error Occured.
112 bool Initialize(void);
114 virtual result OnTerminating(void);
117 * This function adds the share info object in the array list
119 * @return An Error Code
120 * @param An Object of ShareInfo.
122 result AddShareInfo(ShareInfo* pShareInfo);
124 void RemoveAllShareInfo();
126 //IActionEventListener
127 virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
129 // IAppControlListener
130 void OnAppControlCompleted(const Tizen::Base::String& providerId, const Tizen::Base::String& operationId, const Tizen::Base::Collection::IList* pResultList);
132 //IListViewItemProvider
133 virtual Tizen::Ui::Controls::ListItemBase* CreateItem(int index, int itemWidth);
134 virtual bool DeleteItem(int index, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth);
135 virtual int GetItemCount(void);
137 // IListViewItemEventListener
138 virtual void OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListContextItemStatus state);
139 virtual void OnListViewItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListItemStatus status);
140 virtual void OnListViewItemSwept(Tizen::Ui::Controls::ListView& listView, int index, Tizen::Ui::Controls::SweepDirection direction);
141 virtual void OnListViewItemLongPressed(Tizen::Ui::Controls::ListView& listView, int index, int elementId, bool& invokeListViewItemCallback);
144 * This function displays the Notification
146 * @return No return type.
149 void StartMessageAppControl(void);
152 * This function Starts the EmailApp Control
154 * @return No return type.
157 void StartEmailAppControl(void);
159 void OnAppControlCompleteResponseReceived(const Tizen::App::AppId& appId, const Tizen::Base::String& operationId, Tizen::App::AppCtrlResult appControlResult, const Tizen::Base::Collection::IMap* pExtraData);
162 static const int IDA_CANCEL_BUTTON;
163 static const int ID_FORMAT_MESSAGE_STRING;
164 static const int ID_FORMAT_EMAIL_STRING;
165 static const int ID_FORMAT_FACEBOOK_STRING;
166 static const int ID_FORMAT_TWITTER_STRING;
169 Tizen::Ui::Controls::ListView* __pList;
170 Tizen::Base::Collection::ArrayList* __pShareList;
171 bool __appControlOngoing;
175 #endif /* INTSHAREPOPUP_H_ */