xlang v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
QFileSystemWatcher.xcsm
浏览该文件的文档.
1//xlang Source, Name:QFileSystemWatcher.xcsm
2//Date: Tue Nov 21:50:30 2018
3
4package Qt{
5 @SuppressWarnings public class QFileSystemWatcher : QObject{
6
7 public QFileSystemWatcher(){
8
9 }
10
11 public QFileSystemWatcher(long handle){
12 super(handle);
13 }
14
15 public bool create(@NotNilptr QWidget parent){
16 nativehandle = QtXnl.createQObject(QType.qtFileWatch, this, parent != nilptr ? parent.nativehandle : 0l);
17 if (nativehandle == 0){
18 return false;
19 }
20 return true;
21 }
22
23 public bool addPath(String path){
24 return 1 == QtXnl.widget_set_intstring_value(nativehandle, Constant.FSWADDFILE, 0, path);
25 }
26
27 public bool removePath(String path){
28 return 1 == QtXnl.widget_set_intstring_value(nativehandle, Constant.FSWREMFILE, 0, path);
29 }
30
31
32 };
33};
bool create(@NotNilptr QWidget parent)
bool removePath(String path)
字符串类