3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
\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
9 // http://floralicense.org/license/
\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
19 /*@file: IntSharePopUp.h
\r
20 *@brief: This header file contains the declarations of the SharePopup
\r
24 #ifndef INTSHAREPOPUP_H_
\r
25 #define INTSHAREPOPUP_H_
\r
31 class ShareInfo : public Tizen::Base::Object
\r
35 * @brief The Default constructor
\r
40 * @brief The Default destructor
\r
45 * @brief The method used to get the Page title
\r
47 * @return String The Page title
\r
49 Tizen::Base::String GetPageTitle(void);
\r
52 * @brief The method used to get the Page URL
\r
54 * @return String The Page URL
\r
56 Tizen::Base::String GetPageURL(void);
\r
59 * @brief The method used to set the Page title
\r
60 * @param[in] aPageTitle
\r
62 void SetPageTitle(Tizen::Base::String aPageTitle);
\r
65 * @brief The method used to set the Page URL
\r
66 * @param[in] aPageURL
\r
68 void SetPageUrl(Tizen::Base::String aPageURL);
\r
71 Tizen::Base::String __pageTitle;
\r
72 Tizen::Base::String __pageURL;
\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
84 * @brief The Default Constructor
\r
89 * @brief The Default Destructor
\r
94 * @brief Initializes this SettingForm Form.
\r
96 * @return An error code
\r
97 * @exception true The method is succeIOrientationEventListenerssful.
\r
98 * @exception false An error Occured.
\r
100 bool Initialize(void);
\r
102 virtual result OnTerminating(void);
\r
105 * This function adds the share info object in the array list
\r
107 * @return An Error Code
\r
108 * @param An Object of ShareInfo.
\r
110 result AddShareInfo(ShareInfo* pShareInfo);
\r
112 //IActionEventListener
\r
113 virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
\r
115 // IAppControlListener
\r
116 void OnAppControlCompleted(const Tizen::Base::String& providerId, const Tizen::Base::String& operationId, const Tizen::Base::Collection::IList* pResultList);
\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
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
130 * This function displays the Notification
\r
132 * @return No return type.
\r
135 void StartMessageAppControl(void);
\r
138 * This function Starts the EmailApp Control
\r
140 * @return No return type.
\r
143 void StartEmailAppControl(void);
\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
154 Tizen::Ui::Controls::ListView* __pList;
\r
155 Tizen::Base::Collection::ArrayList* __pShareList;
\r
158 #endif /* INTSHAREPOPUP_H_ */
\r