summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KMimeType.java
diff options
context:
space:
mode:
Diffstat (limited to 'kdejava/koala/org/kde/koala/KMimeType.java')
-rw-r--r--kdejava/koala/org/kde/koala/KMimeType.java66
1 files changed, 33 insertions, 33 deletions
diff --git a/kdejava/koala/org/kde/koala/KMimeType.java b/kdejava/koala/org/kde/koala/KMimeType.java
index 2180f548..bab07d89 100644
--- a/kdejava/koala/org/kde/koala/KMimeType.java
+++ b/kdejava/koala/org/kde/koala/KMimeType.java
@@ -3,10 +3,10 @@ package org.kde.koala;
import org.kde.qt.Qt;
import org.kde.qt.QtSupport;
-import org.kde.qt.QDataStream;
-import org.kde.qt.QPixmap;
+import org.kde.qt.TQDataStream;
+import org.kde.qt.TQPixmap;
import java.util.ArrayList;
-import org.kde.qt.QVariant;
+import org.kde.qt.TQVariant;
/**
@@ -62,11 +62,11 @@ public class KMimeType extends KServiceType {
The stream must already be positionned at the correct offset
@short
*/
- public KMimeType(QDataStream _str, int offset) {
+ public KMimeType(TQDataStream _str, int offset) {
super((Class) null);
newKMimeType(_str,offset);
}
- private native void newKMimeType(QDataStream _str, int offset);
+ private native void newKMimeType(TQDataStream _str, int offset);
/**
Return the filename of the icon associated with the mimetype.
The arguments are unused, but provided so that KMimeType-derived classes
@@ -103,10 +103,10 @@ public class KMimeType extends KServiceType {
@short Use this function only if you don't have a special URL for which you search a pixmap.
*/
- public native QPixmap pixmap(int group, int force_size, int state, StringBuffer path);
- public native QPixmap pixmap(int group, int force_size, int state);
- public native QPixmap pixmap(int group, int force_size);
- public native QPixmap pixmap(int group);
+ public native TQPixmap pixmap(int group, int force_size, int state, StringBuffer path);
+ public native TQPixmap pixmap(int group, int force_size, int state);
+ public native TQPixmap pixmap(int group, int force_size);
+ public native TQPixmap pixmap(int group);
/**
Find the pixmap for a given file of this mimetype.
Convenience method that uses icon(), but also locates and
@@ -123,10 +123,10 @@ public class KMimeType extends KServiceType {
@short Find the pixmap for a given file of this mimetype.
*/
- public native QPixmap pixmap(KURL _url, int _group, int _force_size, int _state, StringBuffer _path);
- public native QPixmap pixmap(KURL _url, int _group, int _force_size, int _state);
- public native QPixmap pixmap(KURL _url, int _group, int _force_size);
- public native QPixmap pixmap(KURL _url, int _group);
+ public native TQPixmap pixmap(KURL _url, int _group, int _force_size, int _state, StringBuffer _path);
+ public native TQPixmap pixmap(KURL _url, int _group, int _force_size, int _state);
+ public native TQPixmap pixmap(KURL _url, int _group, int _force_size);
+ public native TQPixmap pixmap(KURL _url, int _group);
/**
Returns the descriptive comment associated with the MIME type.
@return the descriptive comment associated with the MIME type
@@ -165,13 +165,13 @@ public class KMimeType extends KServiceType {
@param qs the stream to load from
@short Load the mimetype from a stream.
*/
- public native void load(QDataStream qs);
+ public native void load(TQDataStream qs);
/**
Save the mimetype to a stream.
@param qs the stream to save to
@short Save the mimetype to a stream.
*/
- public native void save(QDataStream qs);
+ public native void save(TQDataStream qs);
/**
Returns the property with the given <code>_name.</code>
@param _name the name of the property
@@ -180,7 +180,7 @@ public class KMimeType extends KServiceType {
@short Returns the property with the given <code>_name.</code>
@see #propertyNames
*/
- public native QVariant property(String _name);
+ public native TQVariant property(String _name);
/**
Retrieves a list of all properties associated with this
KMimeType.
@@ -230,12 +230,12 @@ public class KMimeType extends KServiceType {
@short Convenience method to find the pixmap for a URL.
*/
- public static native QPixmap pixmapForURL(KURL _url, long _mode, int _group, int _force_size, int _state, StringBuffer _path);
- public static native QPixmap pixmapForURL(KURL _url, long _mode, int _group, int _force_size, int _state);
- public static native QPixmap pixmapForURL(KURL _url, long _mode, int _group, int _force_size);
- public static native QPixmap pixmapForURL(KURL _url, long _mode, int _group);
- public static native QPixmap pixmapForURL(KURL _url, long _mode);
- public static native QPixmap pixmapForURL(KURL _url);
+ public static native TQPixmap pixmapForURL(KURL _url, long _mode, int _group, int _force_size, int _state, StringBuffer _path);
+ public static native TQPixmap pixmapForURL(KURL _url, long _mode, int _group, int _force_size, int _state);
+ public static native TQPixmap pixmapForURL(KURL _url, long _mode, int _group, int _force_size);
+ public static native TQPixmap pixmapForURL(KURL _url, long _mode, int _group);
+ public static native TQPixmap pixmapForURL(KURL _url, long _mode);
+ public static native TQPixmap pixmapForURL(KURL _url);
/**
The same functionality as pixmapForURL(), but this method returns the name
of the icon to load. You'll have to use KIconLoader to load the pixmap for it.
@@ -276,7 +276,7 @@ public class KMimeType extends KServiceType {
@short Retrieve a pointer to the mime type <code>_name</code> or a pointer to the default mime type "application/octet-stream".
@see KServiceType#serviceType
*/
- // KMimeType::Ptr mimeType(const QString& arg1); >>>> NOT CONVERTED
+ // KMimeType::Ptr mimeType(const TQString& arg1); >>>> NOT CONVERTED
/**
Finds a KMimeType with the given <code>_url.</code>
This function looks at mode_t first.
@@ -337,9 +337,9 @@ public class KMimeType extends KServiceType {
@short Finds a KMimeType with the given <code>_url.</code>
*/
- // KMimeType::Ptr findByPath(const QString& arg1,mode_t arg2,bool arg3); >>>> NOT CONVERTED
- // KMimeType::Ptr findByPath(const QString& arg1,mode_t arg2); >>>> NOT CONVERTED
- // KMimeType::Ptr findByPath(const QString& arg1); >>>> NOT CONVERTED
+ // KMimeType::Ptr findByPath(const TQString& arg1,mode_t arg2,bool arg3); >>>> NOT CONVERTED
+ // KMimeType::Ptr findByPath(const TQString& arg1,mode_t arg2); >>>> NOT CONVERTED
+ // KMimeType::Ptr findByPath(const TQString& arg1); >>>> NOT CONVERTED
/**
Tries to find out the MIME type of a data chunk by looking for
certain magic numbers and characteristic strings in it.
@@ -351,8 +351,8 @@ public class KMimeType extends KServiceType {
@short Tries to find out the MIME type of a data chunk by looking for certain magic numbers and characteristic strings in it.
*/
- // KMimeType::Ptr findByContent(const QByteArray& arg1,int* arg2); >>>> NOT CONVERTED
- // KMimeType::Ptr findByContent(const QByteArray& arg1); >>>> NOT CONVERTED
+ // KMimeType::Ptr findByContent(const TQByteArray& arg1,int* arg2); >>>> NOT CONVERTED
+ // KMimeType::Ptr findByContent(const TQByteArray& arg1); >>>> NOT CONVERTED
/**
Tries to find out the MIME type of a file by looking for
certain magic numbers and characteristic strings in it.
@@ -367,14 +367,14 @@ public class KMimeType extends KServiceType {
@short Tries to find out the MIME type of a file by looking for certain magic numbers and characteristic strings in it.
*/
- // KMimeType::Ptr findByFileContent(const QString& arg1,int* arg2); >>>> NOT CONVERTED
- // KMimeType::Ptr findByFileContent(const QString& arg1); >>>> NOT CONVERTED
+ // KMimeType::Ptr findByFileContent(const TQString& arg1,int* arg2); >>>> NOT CONVERTED
+ // KMimeType::Ptr findByFileContent(const TQString& arg1); >>>> NOT CONVERTED
/**
Returns whether a file has an internal format that is human readable,
or that would be human readable after decompression.
@short Returns whether a file has an internal format that is human readable, or that would be human readable after decompression.
*/
- // KMimeType::Format findFormatByFileContent(const QString& arg1); >>>> NOT CONVERTED
+ // KMimeType::Format findFormatByFileContent(const TQString& arg1); >>>> NOT CONVERTED
/**
Get all the mimetypes.
Useful for showing the list of
@@ -410,8 +410,8 @@ public class KMimeType extends KServiceType {
matching pattern if any.
@short
*/
- // KMimeType::Ptr diagnoseFileName(const QString& arg1,QString& arg2); >>>> NOT CONVERTED
- protected native void loadInternal(QDataStream arg1);
+ // KMimeType::Ptr diagnoseFileName(const TQString& arg1,TQString& arg2); >>>> NOT CONVERTED
+ protected native void loadInternal(TQDataStream arg1);
protected native void init(KDesktopFile arg1);
protected native int patternsAccuracy();
/**