void ZaScreenHis::onclick(ZaObj * obj,ZaEvent *env) { if (obj == m_list) { ZaScreenFlash * l_flash = (ZaScreenFlash *)ZaResLib::getInstance()->getScreen("ZaScreenFlash"); ZaScreenBase * l_src = (ZaScreenBase *)ZaResLib::getInstance()->getScreen("ZaScreenRead"); string p= m_list->m_v[ m_list->m_index]; l_flash->changeScreen(this,l_src,l_src,p.c_str(),ZaScreenFlash::LEFT); } else if (obj == m_list->m_delete) { fprintf(stderr,"-ZaScreenHis::onclick-%d---\n",m_list->m_index); m_list->removeItem(m_list->m_index); } else if ( obj == m_dict) { ZaScreenFlash * l_flash = (ZaScreenFlash *)ZaResLib::getInstance()->getScreen("ZaScreenFlash"); ZaScreenBase * l_src = (ZaScreenBase *)ZaResLib::getInstance()->getScreen("ZaScreenDict"); l_src->m_srceencaller = this; string p= ""; l_flash->changeScreen(this,l_src,l_src,p.c_str(),ZaScreenFlash::ALPHA); } else if (obj == m_help) { navigator_invoke("http://www.bbcubezone.com/app/bb/Book%20Reader/Content0.htm",NULL); } else if ( obj == m_dir) { ZaScreenFlash * l_flash = (ZaScreenFlash *)ZaResLib::getInstance()->getScreen("ZaScreenFlash"); ZaScreenBase * l_src = (ZaScreenBase *)ZaResLib::getInstance()->getScreen("ZaScreenDir"); string p= ""; l_flash->changeScreen(this,l_src,l_src,p.c_str(),ZaScreenFlash::LEFT); } else if (obj == m_mail) { // mailto:<em>comma_delimited_list_of_email_addresses</em> // * ?to=<em>comma_delimited_list_of_email_addresses</em> // * &cc=<em>comma_delimited_list_of_email_addresses</em> // * &bcc=<em>comma_delimited_list_of_email_addresses</em> // * &body=<em>body_of_message</em> // * &subject=<em>subject_of_message</em> string ls = "mailto"; ls.append(":"); ls.append("[email protected]"); ls.append("&body=\n\nbug report: \n\n\n"); ls.append("advices:\n\n\n"); ls.append("attach epub file or URL in public:\n\n"); ls.append("&subject=about Book Reader(v1.8.2.500) App"); navigator_invoke(ls.c_str(),NULL); } }
Error OSBB10::shell_open(String p_uri) { char* msg = NULL; int ret = navigator_invoke(p_uri.utf8().get_data(), &msg); return ret == BPS_SUCCESS ? OK : FAILED; };
bool LaunchBrowser (const char *inUtf8URL) { char* err = NULL; int result = navigator_invoke (inUtf8URL, &err); bps_free (err); return (result == BPS_SUCCESS); }
QT_BEGIN_NAMESPACE static bool navigatorInvoke(const QUrl &url) { if (!url.isValid() || url.isRelative()) return false; int ret = navigator_invoke(url.toString().toUtf8(), 0); return (ret == BPS_SUCCESS); }
bool QQnxNavigatorBps::requestInvokeUrl(const QByteArray &encodedUrl) { char *error = 0; int ret = navigator_invoke(encodedUrl, &error); if (error) { qWarning() << Q_FUNC_INFO << "error=" << error; bps_free(error); } return (ret == BPS_SUCCESS); }
void handle_dialog_response(bps_event_t *event) { /* * Double check that the event is valid */ if (event == NULL) { return; } int selectedIndex = dialog_event_get_selected_index(event); fprintf(stderr,"SELECTION: %i\n",selectedIndex); switch (selectedIndex){ case 2: navigator_invoke("appworld://content/92507", 0); break; case 1: navigator_invoke("http://www.mappau.com", 0); break; } dialog_destroy(alert_dialog); alert_dialog = 0; }
void LaunchEmail(const char *email_address) { char* error; navigator_invoke((std::string("mailto:") + email_address).c_str(), &error); }
void LaunchMarket(const char *url) { char* error; navigator_invoke(url, &error); }
void LaunchBrowser(const char *url) { char* error; navigator_invoke(url, &error); }