xlang v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
QCefQuery.x
浏览该文件的文档.
1//xlang Source, Name:QCefQuery.x
2//Date: Fri Oct 19:45:22 2022
3package Qt{
4 @SuppressWarnings public class QCefQuery : QCore{
5 bool bAttached = false;
6
7 public static QCefQuery fromHandle(long handle){
8 QCefQuery qf = new QCefQuery();
9 qf.bAttached = true;
10 qf.nativehandle = handle;
11 return qf;
12 }
13
14 public QCefQuery(long h){
15 nativehandle = h;
16 }
17
18 public QCefQuery(){
19 nativehandle = QtXnl.createNObject(QType.qtCefQuery, 0);
20 }
21
22 public String request(){
23 return (String)QtXnl.core_getString(nativehandle, Constant.QCEFQUERY_REQUEST);
24 }
25
26 public long id(){
27 return QtXnl.long_get(nativehandle, Constant.QCEFQUERY_ID);
28 }
29
30 public String response(){
31 return (String)QtXnl.core_getString(nativehandle, Constant.QCEFQUERY_RESPONSE);
32 }
33
34 public bool result(){
35 return QtXnl.widget_get_int_bool(nativehandle, Constant.QCEFQUERY_RESULT, 0);
36 }
37
38 public int error(){
39 return QtXnl.widget_get_int_value(nativehandle, Constant.QCEFQUERY_ERROR);
40 }
41
42 public void setResponseResult(bool success, String response, int error){
43 QtXnl.widget_set_intintstring_value(nativehandle, Constant.QCEFQUERY_SETRESPONSERESULT, success ? 1 : 0, error, response);
44 }
45
46 public void finalize(){
47 if (bAttached == false){
48 QtXnl.widget_slot(nativehandle, Constant.QCEFQUERYCTOR);
49 }
50 }
51 };
52};
String response()
Definition QCefQuery.x:30
void finalize()
Definition QCefQuery.x:46
QCefQuery(long h)
Definition QCefQuery.x:14
bool result()
Definition QCefQuery.x:34
long id()
Definition QCefQuery.x:26
void setResponseResult(bool success, String response, int error)
Definition QCefQuery.x:42
int error()
Definition QCefQuery.x:38
static QCefQuery fromHandle(long handle)
Definition QCefQuery.x:7
String request()
Definition QCefQuery.x:22
字符串类