<privilege>http://tizen.org/privilege/externalstorage</privilege>
<privilege>http://tizen.org/privilege/externalstorage.appdata</privilege>
<privilege>http://tizen.org/privilege/display</privilege>
+ <privilege>http://tizen.org/privilege/network.get</privilege>
</privileges>
</manifest>
\ No newline at end of file
m_timer = ecore_timer_add(DEFAULT_POPUP_INTERVAL, _hide_cb, this);
}
+void NotificationPopup::show(const std::string& message, const std::string &message_add, bool progressVisible)
+{
+ BROWSER_LOGD("[%s,%d]", __func__, __LINE__);
+ m_message = message + message_add;
+ createLayout(progressVisible);
+ m_timer = ecore_timer_add(DEFAULT_POPUP_INTERVAL, _hide_cb, this);
+}
+
void NotificationPopup::dismiss()
{
BROWSER_LOGD("[%s,%d]", __func__, __LINE__);
NotificationPopup();
static NotificationPopup *createNotificationPopup(Evas_Object *parent);
void show(const std::string &message, bool progressVisible = true);
+ void show(const std::string &message, const std::string &message_add, bool progressVisible = true);
void dismiss();
static Eina_Bool _hide_cb(void *data);
#include "Tools/GeneralTools.h"
#include "Tools/SnapshotType.h"
#include "SettingsPrettySignalConnector.h"
+#include "net_connection.h"
namespace tizen_browser{
namespace base_ui{
popup->show(_("IDS_BR_HEADER_UNABLE_TO_DOWNLOAD_ABB"), false);
break;
case DOWNLOAD_STARTING_DOWNLOAD:
- popup->show(_("IDS_BR_POP_STARTING_DOWNLOAD_ING"), false);
+ connection_type_e connection_type;
+ connection_h handle;
+
+ if (connection_create(&handle) < 0) {
+ BROWSER_LOGD("Fail to create network handle");
+ }
+ if (connection_get_type(handle, &connection_type) < 0) {
+ BROWSER_LOGD("Fail to get download type");
+ if (connection_destroy(handle) < 0) {
+ BROWSER_LOGD("Fail to get download type");
+ }
+ }
+
+ if (connection_type == CONNECTION_TYPE_BT){
+ popup->show(_("IDS_BR_POP_STARTING_DOWNLOAD_ING"), _("Unable to use tethering."), false);
+ }
+ else{
+ popup->show(_("IDS_BR_POP_STARTING_DOWNLOAD_ING"), false);
+ }
+
+ if (connection_destroy(handle) < 0) {
+ BROWSER_LOGD("Fail to destroy network handle");
+ }
break;
case DOWNLOAD_SAVEDPAGES:
popup->show(_("IDS_BR_OPT_SAVEDPAGES"), false);