diff options
Diffstat (limited to 'kdejava/koala/org/kde/koala/KTrader.java')
-rw-r--r-- | kdejava/koala/org/kde/koala/KTrader.java | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kdejava/koala/org/kde/koala/KTrader.java b/kdejava/koala/org/kde/koala/KTrader.java index db0fdb0a..1a93eec0 100644 --- a/kdejava/koala/org/kde/koala/KTrader.java +++ b/kdejava/koala/org/kde/koala/KTrader.java @@ -30,7 +30,7 @@ import org.kde.qt.TQObject; then will use KRun.run() to invoke the application. In "trader-speak", this looks like so: <pre> - ArrayList offers = KTrader.self().query("text/html", "Type == 'Application'"); + ArrayList offers = TDETrader.self().query("text/html", "Type == 'Application'"); KService.Ptr ptr = offers.first(); KURL.List lst; lst.append("http://www.kde.org/index.html"); @@ -50,7 +50,7 @@ import org.kde.qt.TQObject; actually do something with our query, then. Our code would look like so: <pre> - ArrayList offers = KTrader.self().query("text/html", "'KParts/ReadOnlyPart' in ServiceTypes"); + ArrayList offers = TDETrader.self().query("text/html", "'KParts/ReadOnlyPart' in ServiceTypes"); KService.Ptr ptr = offers.first(); KLibFactory factory = KLibLoader.self().factory( ptr.library() ); if (factory) @@ -72,12 +72,12 @@ import org.kde.qt.TQObject; @short Provides a way to query the KDE infrastructure for specific applications or components. */ -public class KTrader extends TQObject { - protected KTrader(Class dummy){super((Class) null);} +public class TDETrader extends TQObject { + protected TDETrader(Class dummy){super((Class) null);} public native TQMetaObject metaObject(); public native String className(); /** - The main function in the KTrader class. + The main function in the TDETrader class. It will return a list of services that match your specifications. The only required parameter is the service type. This is something like 'text/plain' or 'text/html'. The @@ -99,7 +99,7 @@ public class KTrader extends TQObject { a number @return A list of services that satisfy the query - @short The main function in the KTrader class. + @short The main function in the TDETrader class. @see #http://developer#kde#org/documentation/library/kdeqt/tradersyntax#html */ public native ArrayList query(String servicetype, String constraint, String preferences); @@ -129,23 +129,23 @@ public class KTrader extends TQObject { */ public native ArrayList query(String servicetype, String genericServiceType, String constraint, String preferences); /** - This is a static pointer to a KTrader instance. + This is a static pointer to a TDETrader instance. You will need - to use this to access the KTrader functionality since the + to use this to access the TDETrader functionality since the constuctors are protected. - @return Static KTrader instance + @return Static TDETrader instance - @short This is a static pointer to a KTrader instance. + @short This is a static pointer to a TDETrader instance. */ - public static native KTrader self(); + public static native TDETrader self(); /** @short */ - public KTrader() { + public TDETrader() { super((Class) null); - newKTrader(); + newTDETrader(); } - private native void newKTrader(); + private native void newTDETrader(); /** Deletes the wrapped C++ instance */ protected native void finalize() throws InternalError; /** Delete the wrapped C++ instance ahead of finalize() */ |