165 public static final int QEVENT_REQUESTSOFTWAREINPUTPANEL = 199; |
165 public static final int QEVENT_REQUESTSOFTWAREINPUTPANEL = 199; |
166 |
166 |
167 // QInputContextFactory key |
167 // QInputContextFactory key |
168 public static final String QINPUTCONTEXT_COEFEP = "coefep"; |
168 public static final String QINPUTCONTEXT_COEFEP = "coefep"; |
169 |
169 |
170 |
|
171 // CntServicesContact actions |
170 // CntServicesContact actions |
172 public static final String CNT_ACTIONALL = "all"; |
171 public static final String CNT_ACTIONALL = "all"; |
173 public static final String CNT_ACTIONCALL ="call"; |
172 public static final String CNT_ACTIONCALL ="call"; |
174 public static final String CNT_ACTIONSMS = "sms"; |
173 public static final String CNT_ACTIONSMS = "sms"; |
175 public static final String CNT_ACTIONEMAIL= "email"; |
174 public static final String CNT_ACTIONEMAIL= "email"; |
176 |
175 |
177 // CntServicesContact filters |
176 // CntServicesContact filters |
178 public static final String CNT_DISPLAYALL = "all"; |
177 public static final String CNT_DISPLAYALL = "all"; |
179 public static final String CNT_FILTERDISPLAYFAVORITES = "favorites"; |
178 public static final String CNT_FILTERDISPLAYFAVORITES = "favorites"; |
180 |
|
181 |
|
182 |
|
183 |
179 |
184 // Implementation specific codes for the signals emitted by the Qt widgets |
180 // Implementation specific codes for the signals emitted by the Qt widgets |
185 public static final int QSIGNAL_ID_RANGE_FIRST = 1000; |
181 public static final int QSIGNAL_ID_RANGE_FIRST = 1000; |
186 public static final int QSIGNAL_PRESSED = QSIGNAL_ID_RANGE_FIRST; |
182 public static final int QSIGNAL_PRESSED = QSIGNAL_ID_RANGE_FIRST; |
187 public static final int QSIGNAL_RELEASED = QSIGNAL_ID_RANGE_FIRST + 2; |
183 public static final int QSIGNAL_RELEASED = QSIGNAL_ID_RANGE_FIRST + 2; |
1500 public static final native String QInputDialog_swt_getText(int parentHandle, String title, String label, int echoMode, String defaultText, String dialogId, int layoutDirection); |
1496 public static final native String QInputDialog_swt_getText(int parentHandle, String title, String label, int echoMode, String defaultText, String dialogId, int layoutDirection); |
1501 public static final native String QInputDialog_swt_getInteger(int parentHandle, String title, String label, int min, |
1497 public static final native String QInputDialog_swt_getInteger(int parentHandle, String title, String label, int min, |
1502 int max, int defaultValue, String dialogId, int layoutDirection); |
1498 int max, int defaultValue, String dialogId, int layoutDirection); |
1503 |
1499 |
1504 // |
1500 // |
1505 // QWebView |
|
1506 // |
|
1507 public static final native int QWebView_new(); |
|
1508 public static final native void QWebView_back(int handle); |
|
1509 public static final native void QWebView_forward(int handle); |
|
1510 public static final native void QWebView_reload(int handle); |
|
1511 public static final native void QWebView_setHtml(int handle, String html); |
|
1512 public static final native void QWebView_setUrl(int handle, String url); |
|
1513 public static final native void QWebView_stop(int handle); |
|
1514 public static final native String QWebView_swt_backUrl(int handle); |
|
1515 public static final native boolean QWebView_swt_canGoBack(int handle); |
|
1516 public static final native boolean QWebView_swt_canGoForward(int handle); |
|
1517 public static final native boolean QWebView_swt_evaluateJavaScript(int handle, String script); |
|
1518 public static final native String QWebView_swt_forwardUrl(int handle); |
|
1519 public static final native String QWebView_url(int handle); |
|
1520 |
|
1521 // |
|
1522 // QSystemTrayIcon |
1501 // QSystemTrayIcon |
1523 // |
1502 // |
1524 public static final native boolean QSystemTrayIcon_isSystemTrayAvailable(); |
1503 public static final native boolean QSystemTrayIcon_isSystemTrayAvailable(); |
1525 public static final native int QSystemTrayIcon_new( int handle); |
1504 public static final native int QSystemTrayIcon_new( int handle); |
1526 public static final native void QSystemTrayIcon_setIcon(int handle,int icon ); |
1505 public static final native void QSystemTrayIcon_setIcon(int handle,int icon ); |
1725 |
1704 |
1726 // |
1705 // |
1727 // Other |
1706 // Other |
1728 // |
1707 // |
1729 public static final native int EventHandler_new( ); |
1708 public static final native int EventHandler_new( ); |
1730 public static final native void EventHandler_destroy( int handle ); |
1709 public static final native void EventHandler_destroy(int handle); |
|
1710 |
1731 /** |
1711 /** |
1732 * Creates a QObject which implements slots to receive the signals and passes |
1712 * Creates a QObject which implements slots to receive signals and passes |
1733 * them to Java along with signal parameters and the signal id. |
1713 * them to the Display along with the signal parameters and the signal id. |
1734 * @param widget The handle of the widget which will send the signal. |
1714 * @param widget The handle of the widget which will send the signal. |
1735 * @param peer The peer Java object where signal is delivered to (The Display) |
|
1736 * @param signalId The id that can be used to identify the signal. |
1715 * @param signalId The id that can be used to identify the signal. |
1737 * @return handle of the slot object, owned by the widget |
1716 * @return Handle of the slot object, owned by the widget that was passed as the first parameter. |
1738 */ |
1717 */ |
1739 public static final native int SignalHandler_new( int widget, Object peer, int signalId ); |
1718 public static final native int SignalHandler_new(int widget, int signalId); |
|
1719 |
|
1720 /** |
|
1721 * Creates a QObject which implements slots to receive signals and forwards |
|
1722 * them to the given Object along with the signal parameters and the signal id. |
|
1723 * @param widget The handle of the widget which will send the signal. |
|
1724 * @param peer The peer Java object where the signal is delivered to. |
|
1725 * @param signalId The id that can be used to identify the signal. |
|
1726 * @return Handle of the slot object, owned by the widget that was passed as the first parameter. |
|
1727 */ |
|
1728 public static final native int SignalForwarder_new(int widget, Object peer, int signalId); |
|
1729 |
1740 /** |
1730 /** |
1741 * Creates the JNI utility used for all JNI activity. |
1731 * Creates the JNI utility used for all JNI activity. |
1742 * @param display The Display |
|
1743 * @return handle or 0 in case of failure, doesn't throw an exception |
1732 * @return handle or 0 in case of failure, doesn't throw an exception |
1744 */ |
1733 */ |
1745 public static final native int JniUtils_new(Object display); |
1734 public static final native int JniUtils_new(); |
1746 |
1735 |
1747 /** |
1736 /** |
1748 * Performs a check if the QObject can be safely deleted immediately. If not |
1737 * Performs a check if the QObject can be safely deleted immediately. If not |
1749 * then a deleteLater event should be posted. It's possible that an object can't |
1738 * then a deleteLater event should be posted. It's possible that an object can't |
1750 * be deleted safely e.g. when inside an event listener of the object. |
1739 * be deleted safely e.g. when inside an event listener of the object. |
1751 */ |
1740 */ |
1752 public static final native boolean JniUtils_safeToDelete(int handle, int qObjectHandle); |
1741 public static final native boolean JniUtils_safeToDelete(int handle, int qObjectHandle); |
|
1742 |
1753 private static final native int windowServer(); |
1743 private static final native int windowServer(); |
1754 |
1744 |
1755 /** |
1745 /** |
1756 * Some platforms require initialization before Qt-APIs can be |
1746 * Some platforms require initialization before Qt-APIs can be |
1757 * used. This method will perform the required initialization. |
1747 * used. This method will perform the required initialization. |
1758 * |
1748 * |
1759 * @return 0 in case of success, non-zero in case of failure. |
1749 * @return 0 in case of success, non-zero in case of failure. |
1760 */ |
1750 */ |
1761 public static final native int initUiThread(int uid); |
1751 public static final native int initUiThread(int uid); |
|
1752 |
1762 /** |
1753 /** |
1763 * Some platforms require initialization before Qt-APIs can be used |
1754 * Some platforms require initialization before Qt-APIs can be used |
1764 * and cleaning up after the application is done with them. This method will |
1755 * and cleaning up after the application is done with them. This method will |
1765 * perform the required cleaning up. |
1756 * perform the required cleaning up. |
1766 */ |
1757 */ |
1767 public static final native void cleanUpUiThread(); |
1758 public static final native void cleanUpUiThread(); |
1768 |
1759 |
1769 // Add new stuff above Other, Other is the last category |
|
1770 |
|
1771 |
|
1772 public static final native void setSymbianAppName(String name); |
1760 public static final native void setSymbianAppName(String name); |
1773 |
1761 |
1774 |
1762 // Add new stuff above the category "Other", that is the last category |
1775 } |
1763 } |