From 9ba04742771370f59740e32e11c5f3a1e6a1b70a Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 5 Dec 2011 15:55:57 -0600 Subject: Initial TQt conversion --- qtjava/javalib/org/kde/qt/QDir.java | 64 ++++++++++++++++++------------------- 1 file changed, 32 insertions(+), 32 deletions(-) (limited to 'qtjava/javalib/org/kde/qt/QDir.java') diff --git a/qtjava/javalib/org/kde/qt/QDir.java b/qtjava/javalib/org/kde/qt/QDir.java index b2c4ae85..120cc240 100644 --- a/qtjava/javalib/org/kde/qt/QDir.java +++ b/qtjava/javalib/org/kde/qt/QDir.java @@ -4,10 +4,10 @@ package org.kde.qt; import org.kde.qt.Qt; import java.util.ArrayList; -public class QDir implements QtSupport { +public class TQDir implements QtSupport { private long _qt; private boolean _allocatedInJavaWorld = true; - protected QDir(Class dummy){} + protected TQDir(Class dummy){} public static final int Dirs = 0x001; public static final int Files = 0x002; @@ -36,30 +36,30 @@ public class QDir implements QtSupport { public static final int LocaleAware = 0x20; public static final int DefaultSort = -1; - public QDir() { - newQDir(); + public TQDir() { + newTQDir(); } - private native void newQDir(); - public QDir(String path, String nameFilter, int sortSpec, int filterSpec) { - newQDir(path,nameFilter,sortSpec,filterSpec); + private native void newTQDir(); + public TQDir(String path, String nameFilter, int sortSpec, int filterSpec) { + newTQDir(path,nameFilter,sortSpec,filterSpec); } - private native void newQDir(String path, String nameFilter, int sortSpec, int filterSpec); - public QDir(String path, String nameFilter, int sortSpec) { - newQDir(path,nameFilter,sortSpec); + private native void newTQDir(String path, String nameFilter, int sortSpec, int filterSpec); + public TQDir(String path, String nameFilter, int sortSpec) { + newTQDir(path,nameFilter,sortSpec); } - private native void newQDir(String path, String nameFilter, int sortSpec); - public QDir(String path, String nameFilter) { - newQDir(path,nameFilter); + private native void newTQDir(String path, String nameFilter, int sortSpec); + public TQDir(String path, String nameFilter) { + newTQDir(path,nameFilter); } - private native void newQDir(String path, String nameFilter); - public QDir(String path) { - newQDir(path); + private native void newTQDir(String path, String nameFilter); + public TQDir(String path) { + newTQDir(path); } - private native void newQDir(String path); - public QDir(QDir arg1) { - newQDir(arg1); + private native void newTQDir(String path); + public TQDir(TQDir arg1) { + newTQDir(arg1); } - private native void newQDir(QDir arg1); + private native void newTQDir(TQDir arg1); public native void setPath(String path); public native String path(); public native String absPath(); @@ -94,12 +94,12 @@ public class QDir implements QtSupport { public native ArrayList entryList(String nameFilter, int filterSpec, int sortSpec); public native ArrayList entryList(String nameFilter, int filterSpec); public native ArrayList entryList(String nameFilter); - // const QFileInfoList* entryInfoList(int arg1,int arg2); >>>> NOT CONVERTED - // const QFileInfoList* entryInfoList(int arg1); >>>> NOT CONVERTED - // const QFileInfoList* entryInfoList(); >>>> NOT CONVERTED - // const QFileInfoList* entryInfoList(const QString& arg1,int arg2,int arg3); >>>> NOT CONVERTED - // const QFileInfoList* entryInfoList(const QString& arg1,int arg2); >>>> NOT CONVERTED - // const QFileInfoList* entryInfoList(const QString& arg1); >>>> NOT CONVERTED + // const TQFileInfoList* entryInfoList(int arg1,int arg2); >>>> NOT CONVERTED + // const TQFileInfoList* entryInfoList(int arg1); >>>> NOT CONVERTED + // const TQFileInfoList* entryInfoList(); >>>> NOT CONVERTED + // const TQFileInfoList* entryInfoList(const TQString& arg1,int arg2,int arg3); >>>> NOT CONVERTED + // const TQFileInfoList* entryInfoList(const TQString& arg1,int arg2); >>>> NOT CONVERTED + // const TQFileInfoList* entryInfoList(const TQString& arg1); >>>> NOT CONVERTED public native boolean mkdir(String dirName, boolean acceptAbsPath); public native boolean mkdir(String dirName); public native boolean rmdir(String dirName, boolean acceptAbsPath); @@ -109,8 +109,8 @@ public class QDir implements QtSupport { public native boolean isRoot(); public native boolean isRelative(); public native void convertToAbs(); - public native boolean op_equals(QDir arg1); - public native boolean op_not_equals(QDir arg1); + public native boolean op_equals(TQDir arg1); + public native boolean op_not_equals(TQDir arg1); public native boolean remove(String fileName, boolean acceptAbsPath); public native boolean remove(String fileName); public native boolean rename(String name, String newName, boolean acceptAbsPaths); @@ -119,12 +119,12 @@ public class QDir implements QtSupport { public native boolean exists(String name); public native void refresh(); public static native String convertSeparators(String pathName); - // const QFileInfoList* drives(); >>>> NOT CONVERTED + // const TQFileInfoList* drives(); >>>> NOT CONVERTED public static native char separator(); public static native boolean setCurrent(String path); - public static native QDir current(); - public static native QDir home(); - public static native QDir root(); + public static native TQDir current(); + public static native TQDir home(); + public static native TQDir root(); public static native String currentDirPath(); public static native String homeDirPath(); public static native String rootDirPath(); -- cgit v1.2.1