From a23f1fc1a162ecb85ed44484372faa26141af33a Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 25 Jan 2013 13:12:29 -0600 Subject: Rename KServer, KSocket, KIO_EXPORT, KIOInput, KIOJob, KIOConfig, KIOBuffer, and KBuffer to avoid conflicts with KDE4 --- kdejava/koala/org/kde/koala/KBufferedIO.java | 8 +- .../koala/org/kde/koala/KBufferedIOSignals.java | 2 +- kdejava/koala/org/kde/koala/KCModule.java | 275 ----- kdejava/koala/org/kde/koala/KCModuleInfo.java | 231 ---- kdejava/koala/org/kde/koala/KCModuleLoader.java | 120 -- kdejava/koala/org/kde/koala/KCModuleSignals.java | 25 - kdejava/koala/org/kde/koala/KConfig.java | 232 ---- kdejava/koala/org/kde/koala/KConfigBackEnd.java | 120 -- kdejava/koala/org/kde/koala/KConfigBase.java | 936 ---------------- kdejava/koala/org/kde/koala/KConfigGroup.java | 53 - kdejava/koala/org/kde/koala/KConfigGroupSaver.java | 66 -- kdejava/koala/org/kde/koala/KConfigINIBackEnd.java | 117 -- kdejava/koala/org/kde/koala/KIO.java | 1179 -------------------- kdejava/koala/org/kde/koala/Makefile.am | 2 +- kdejava/koala/org/kde/koala/TDECModule.java | 275 +++++ kdejava/koala/org/kde/koala/TDECModuleInfo.java | 231 ++++ kdejava/koala/org/kde/koala/TDECModuleLoader.java | 120 ++ kdejava/koala/org/kde/koala/TDECModuleSignals.java | 25 + kdejava/koala/org/kde/koala/TDEConfig.java | 232 ++++ kdejava/koala/org/kde/koala/TDEConfigBackEnd.java | 120 ++ kdejava/koala/org/kde/koala/TDEConfigBase.java | 936 ++++++++++++++++ kdejava/koala/org/kde/koala/TDEConfigGroup.java | 53 + .../koala/org/kde/koala/TDEConfigGroupSaver.java | 66 ++ .../koala/org/kde/koala/TDEConfigINIBackEnd.java | 117 ++ kdejava/koala/org/kde/koala/TDEIO.java | 1179 ++++++++++++++++++++ 25 files changed, 3360 insertions(+), 3360 deletions(-) delete mode 100644 kdejava/koala/org/kde/koala/KCModule.java delete mode 100644 kdejava/koala/org/kde/koala/KCModuleInfo.java delete mode 100644 kdejava/koala/org/kde/koala/KCModuleLoader.java delete mode 100644 kdejava/koala/org/kde/koala/KCModuleSignals.java delete mode 100644 kdejava/koala/org/kde/koala/KConfig.java delete mode 100644 kdejava/koala/org/kde/koala/KConfigBackEnd.java delete mode 100644 kdejava/koala/org/kde/koala/KConfigBase.java delete mode 100644 kdejava/koala/org/kde/koala/KConfigGroup.java delete mode 100644 kdejava/koala/org/kde/koala/KConfigGroupSaver.java delete mode 100644 kdejava/koala/org/kde/koala/KConfigINIBackEnd.java delete mode 100644 kdejava/koala/org/kde/koala/KIO.java create mode 100644 kdejava/koala/org/kde/koala/TDECModule.java create mode 100644 kdejava/koala/org/kde/koala/TDECModuleInfo.java create mode 100644 kdejava/koala/org/kde/koala/TDECModuleLoader.java create mode 100644 kdejava/koala/org/kde/koala/TDECModuleSignals.java create mode 100644 kdejava/koala/org/kde/koala/TDEConfig.java create mode 100644 kdejava/koala/org/kde/koala/TDEConfigBackEnd.java create mode 100644 kdejava/koala/org/kde/koala/TDEConfigBase.java create mode 100644 kdejava/koala/org/kde/koala/TDEConfigGroup.java create mode 100644 kdejava/koala/org/kde/koala/TDEConfigGroupSaver.java create mode 100644 kdejava/koala/org/kde/koala/TDEConfigINIBackEnd.java create mode 100644 kdejava/koala/org/kde/koala/TDEIO.java (limited to 'kdejava/koala/org') diff --git a/kdejava/koala/org/kde/koala/KBufferedIO.java b/kdejava/koala/org/kde/koala/KBufferedIO.java index ce43f24d..0af84786 100644 --- a/kdejava/koala/org/kde/koala/KBufferedIO.java +++ b/kdejava/koala/org/kde/koala/KBufferedIO.java @@ -16,7 +16,7 @@ import org.kde.qt.QtSupport; KExtendedSocket is a subclass of this one. This is so that applications written using TQSocket's buffering characteristics will be more easily ported to the more powerful KExtendedSocket class. - KBufferedIO already provides a powerful internal buffering algorithm. However, + TDEBufferedIO already provides a powerful internal buffering algorithm. However, this does not include the I/O itself, which must be implemented in derived classes. Thus, to implement a class that does some I/O, you must override, in addition to the pure TQIODevice methods, these two: @@ -31,14 +31,14 @@ import org.kde.qt.QtSupport; If your derived class reimplements the buffering algorithm, you must then decide which buffering functions to override. For instance, you may want to change the protected functions like feedReadBuffer() and consumeReadBuffer(). - See {@link KBufferedIOSignals} for signals emitted by KBufferedIO + See {@link TDEBufferedIOSignals} for signals emitted by TDEBufferedIO @author Thiago Macieira @short Buffered I/O. */ -public class KBufferedIO extends KAsyncIO { - protected KBufferedIO(Class dummy){super((Class) null);} +public class TDEBufferedIO extends KAsyncIO { + protected TDEBufferedIO(Class dummy){super((Class) null);} /** The modes for closed() signal @short The modes for closed() signal diff --git a/kdejava/koala/org/kde/koala/KBufferedIOSignals.java b/kdejava/koala/org/kde/koala/KBufferedIOSignals.java index 229cae4e..1b81b725 100644 --- a/kdejava/koala/org/kde/koala/KBufferedIOSignals.java +++ b/kdejava/koala/org/kde/koala/KBufferedIOSignals.java @@ -4,7 +4,7 @@ package org.kde.koala; import org.kde.qt.TQMetaObject; import org.kde.qt.QtSupport; -public interface KBufferedIOSignals { +public interface TDEBufferedIOSignals { /** This signal gets sent whenever bytes are written from the buffer. @param nbytes the number of bytes sent. diff --git a/kdejava/koala/org/kde/koala/KCModule.java b/kdejava/koala/org/kde/koala/KCModule.java deleted file mode 100644 index 3f26535e..00000000 --- a/kdejava/koala/org/kde/koala/KCModule.java +++ /dev/null @@ -1,275 +0,0 @@ -//Auto-generated by kalyptus. DO NOT EDIT. -package org.kde.koala; - -import org.kde.qt.Qt; -import org.kde.qt.TQMetaObject; -import org.kde.qt.QtSupport; -import org.kde.qt.TQWidget; -import org.kde.qt.TQWidget; - -/** - - The base class for control center modules. - Starting from KDE 2.0, control center modules are realized as shared - libraries that are loaded into the control center at runtime. - The module in principle is a simple widget displaying the - item to be changed. The module has a very small interface. - All the necessary glue logic and the GUI bells and whistles - are provided by the control center and must not concern - the module author. - To write a config module, you have to create a library - that contains at one factory function like this: -
- #include 
- typedef KGenericFactory YourTDECModuleFactory;
- K_EXPORT_COMPONENT_FACTORY( yourLibName, YourTDECModuleFactory("name_of_the_po_file") );
- 
- The parameter "name_of_the_po_file" has to correspond with the messages target - that you created in your Makefile.am. - See http://developer.kde.org/documentation/other/kcm_howto.html - for more detailed documentation. - See {@link TDECModuleSignals} for signals emitted by TDECModule - @author Matthias Hoelzer-Kluepfel - - @short The base class for control center modules. - -*/ -public class TDECModule extends TQWidget { - protected TDECModule(Class dummy){super((Class) null);} - /** - An enumeration type for the buttons used by this module. - You should only use Help, Default and Apply. The rest is obsolete. - @short An enumeration type for the buttons used by this module. - @see TDECModule#buttons - @see @see - @see TDECModule#setButtons - */ - public static final int Help = 1; - public static final int Default = 2; - public static final int Apply = 16; - public static final int Reset = 4; - public static final int Cancel = 8; - public static final int Ok = 32; - public static final int SysDefault = 64; - - public native TQMetaObject metaObject(); - public native String className(); - public TDECModule(TQWidget parent, String name, String[] args) { - super((Class) null); - newTDECModule(parent,name,args); - } - private native void newTDECModule(TQWidget parent, String name, String[] args); - public TDECModule(TQWidget parent, String name) { - super((Class) null); - newTDECModule(parent,name); - } - private native void newTDECModule(TQWidget parent, String name); - public TDECModule(TQWidget parent) { - super((Class) null); - newTDECModule(parent); - } - private native void newTDECModule(TQWidget parent); - public TDECModule() { - super((Class) null); - newTDECModule(); - } - private native void newTDECModule(); - public TDECModule(TDEInstanceInterface instance, TQWidget parent, String[] args) { - super((Class) null); - newTDECModule(instance,parent,args); - } - private native void newTDECModule(TDEInstanceInterface instance, TQWidget parent, String[] args); - public TDECModule(TDEInstanceInterface instance, TQWidget parent) { - super((Class) null); - newTDECModule(instance,parent); - } - private native void newTDECModule(TDEInstanceInterface instance, TQWidget parent); - public TDECModule(TDEInstanceInterface instance) { - super((Class) null); - newTDECModule(instance); - } - private native void newTDECModule(TDEInstanceInterface instance); - /** - Load the configuration data into the module. - The load method sets the user interface elements of the - module to reflect the current settings stored in the - configuration files. - This method is invoked whenever the module should read its configuration - (most of the times from a config file) and update the user interface. - This happens when the user clicks the "Reset" button in the control - center, to undo all of his changes and restore the currently valid - settings. - If you use TDEConfigXT, loading is taken care of automatically and - you do not need to do it manually. However, if you for some reason reimplement it and - also are using TDEConfigXT, you must call this function otherwise the loading of TDEConfigXT - options will not work. - @short Load the configuration data into the module. - */ - public native void load(); - /** - Save the configuration data. - The save method stores the config information as shown - in the user interface in the config files. - If necessary, this method also updates the running system, - e.g. by restarting applications. This normally does not apply for - KSettings.Dialog modules where the updating is taken care of by - KSettings.Dispatcher. - save is called when the user clicks "Apply" or "Ok". - If you use TDEConfigXT, saving is taken care off automatically and - you do not need to load manually. However, if you for some reason reimplement it and - also are using TDEConfigXT, you must call this function, otherwise the saving of TDEConfigXT - options will not work. Call it at the very end of your reimplementation, to avoid - changed() signals getting emitted when you modify widgets. - @short Save the configuration data. - */ - public native void save(); - /** - Sets the configuration to sensible default values. - This method is called when the user clicks the "Default" - button. It should set the display to useful values. - If you use TDEConfigXT, you do not have to reimplement this function since - the fetching and settings of default values is done automatically. However, if you - reimplement and also are using TDEConfigXT, remember to call the base function at the - very end of your reimplementation. - @short Sets the configuration to sensible default values. - */ - public native void defaults(); - /** - Set the configuration to system default values. - This method is called when the user clicks the "System-Default" - button. It should set the display to the system default values. - @note The default behavior is to call defaults(). - @short Set the configuration to system default values. - */ - public native void sysdefaults(); - /** - Return a tquick-help text. - This method is called when the module is docked. - The tquick-help text should contain a short description of the module and - links to the module's help files. You can use TQML formatting tags in the text. - @note make sure the tquick help text gets translated (use i18n()). - @short Return a tquick-help text. - */ - public native String quickHelp(); - /** - This is generally only called for the KBugReport. - If you override you should have it return a pointer to a constant. - @return the TDEAboutData for this module - - @short This is generally only called for the KBugReport. - */ - public native TDEAboutData aboutData(); - /** - This sets the TDEAboutData returned by aboutData() - @short This sets the TDEAboutData returned by aboutData() - */ - public native void setAboutData(TDEAboutData about); - /** - Indicate which buttons will be used. - The return value is a value or'ed together from - the Button enumeration type. - @short Indicate which buttons will be used. - @see TDECModule#setButtons - */ - public native int buttons(); - /** - Get the RootOnly message for this module. - When the module must be run as root, or acts differently - for root and a normal user, it is sometimes useful to - customize the message that appears at the top of the module - when used as a normal user. This function returns this - customized message. If none has been set, a default message - will be used. - @short Get the RootOnly message for this module. - @see TDECModule#setRootOnlyMsg - */ - public native String rootOnlyMsg(); - /** - Tell if KControl should show a RootOnly message when run as - a normal user. - In some cases, the module don't want a RootOnly message to - appear (for example if it has already one). This function - tells KControl if a RootOnly message should be shown - @short Tell if KControl should show a RootOnly message when run as a normal user. - @see TDECModule#setUseRootOnlyMsg - */ - public native boolean useRootOnlyMsg(); - public native TDEInstanceInterface instance(); - /** - @return a list of @ref TDEConfigDialogManager's in use, if any. - - @short - */ - // const TQPtrList& configs(); >>>> NOT CONVERTED - /** - Adds a TDEConfigskeleton config to watch the widget widget - This function is useful if you need to handle multiple configuration files. - @param config the TDEConfigSkeleton to use - @param widget the widget to watch - @return a pointer to the TDEConfigDialogManager in use - - @short Adds a TDEConfigskeleton config to watch the widget widget - */ - // TDEConfigDialogManager* addConfig(TDEConfigSkeleton* arg1,TQWidget* arg2); >>>> NOT CONVERTED - /** - Sets the tquick help. - @short Sets the tquick help. - */ - protected native void setQuickHelp(String help); - /** - Sets the buttons to display. - Help: shows a "Help" button. - Default: shows a "Use Defaults" button - Apply: in kcontrol this will show an "Apply" and "Reset" button - in kcmshell this will show an "Ok", "Apply" and "Cancel" button - If Apply is not specified, kcmshell will show a "Close" button. - @short Sets the buttons to display. - @see TDECModule#buttons - */ - protected native void setButtons(int btn); - /** - Sets the RootOnly message. - This message will be shown at the top of the module of the - corresponding desktop file contains the line X-TDE-RootOnly=true. - If no message is set, a default one will be used. - @short Sets the RootOnly message. - @see TDECModule#rootOnlyMsg - */ - protected native void setRootOnlyMsg(String msg); - /** - Change whether or not the RootOnly message should be shown. - Following the value of on, the RootOnly message will be - shown or not. - @short Change whether or not the RootOnly message should be shown. - @see TDECModule#useRootOnlyMsg - */ - protected native void setUseRootOnlyMsg(boolean on); - /** - Returns the changed state of automatically managed widgets in this dialog - @short Returns the changed state of automatically managed widgets in this dialog - */ - protected native boolean managedWidgetChangeState(); - /** - Call this method when your manually managed widgets change state between - changed and not changed - @short Call this method when your manually managed widgets change state between changed and not changed - */ - protected native void unmanagedWidgetChangeState(boolean arg1); - /** - Calling this slot is equivalent to emitting changed(true). - @short Calling this slot is equivalent to emitting changed(true). - */ - protected native void changed(); - /** - A managed widget was changed, the widget settings and the current - settings are compared and a corresponding changed() signal is emitted - @short A managed widget was changed, the widget settings and the current settings are compared and a corresponding changed() signal is emitted - */ - protected native void widgetChanged(); - /** Deletes the wrapped C++ instance */ - protected native void finalize() throws InternalError; - /** Delete the wrapped C++ instance ahead of finalize() */ - public native void dispose(); - /** Has the wrapped C++ instance been deleted? */ - public native boolean isDisposed(); -} diff --git a/kdejava/koala/org/kde/koala/KCModuleInfo.java b/kdejava/koala/org/kde/koala/KCModuleInfo.java deleted file mode 100644 index c1461b1c..00000000 --- a/kdejava/koala/org/kde/koala/KCModuleInfo.java +++ /dev/null @@ -1,231 +0,0 @@ -//Auto-generated by kalyptus. DO NOT EDIT. -package org.kde.koala; - -import org.kde.qt.Qt; -import org.kde.qt.QtSupport; -import java.util.ArrayList; - -/** - - A class that provides information about a TDECModule - TDECModuleInfo provides various technical information, such as icon, library - etc. about a TDECModule.n - @note Any values set with the set functions is not - written back with TDECModuleInfo it only reads value from the desktop file. - @author Daniel Molkentin - - @short A class that provides information about a TDECModule - -*/ -public class TDECModuleInfo implements QtSupport { - private long _qt; - private boolean _allocatedInJavaWorld = true; - protected TDECModuleInfo(Class dummy){} - - /** - Constructs a TDECModuleInfo. - @note a TDECModuleInfo object will have to be manually deleted, it is not - done automatically for you. - @param desktopFile the desktop file representing the module, or - the name of the module. - @short Constructs a TDECModuleInfo. - */ - public TDECModuleInfo(String desktopFile) { - newTDECModuleInfo(desktopFile); - } - private native void newTDECModuleInfo(String desktopFile); - /** - Same as above but takes a KService.Ptr as argument. - @note moduleInfo must be a valid pointer. - @param moduleInfo specifies the module - @short Same as above but takes a KService.Ptr as argument. - */ - // TDECModuleInfo* TDECModuleInfo(KService::Ptr arg1); >>>> NOT CONVERTED - /** - Same as above but takes a TDECModuleInfo as argument. - @param rhs specifies the module - @short Same as above but takes a TDECModuleInfo as argument. - */ - public TDECModuleInfo(TDECModuleInfo rhs) { - newTDECModuleInfo(rhs); - } - private native void newTDECModuleInfo(TDECModuleInfo rhs); - /** - Same as above but creates an empty TDECModuleInfo. - You should not normally call this. - @short Same as above but creates an empty TDECModuleInfo. - */ - public TDECModuleInfo() { - newTDECModuleInfo(); - } - private native void newTDECModuleInfo(); - /** - Equal operator - @return true if rhs equals itself - - @short Equal operator - */ - public native boolean op_equals(TDECModuleInfo rhs); - /** - @return true if rhs is not equal itself - - @short - */ - public native boolean op_not_equals(TDECModuleInfo rhs); - /** - @return the filename of the .desktop file that describes the KCM - - @short - */ - public native String fileName(); - /** - @return the keywords associated with this KCM. - - @short - */ - public native ArrayList keywords(); - /** - Returns the module's factory name, if it's set. If not, the library - name is returned. - @return the module's factory name - - @short Returns the module's factory name, if it's set. - */ - public native String factoryName(); - /** - @return the module\'s (translated) name - - @short - */ - public native String moduleName(); - /** - @return a KSharedPtr to KService created from the modules .desktop file - - @short - */ - // KService::Ptr service(); >>>> NOT CONVERTED - /** - @return the module's (translated) comment field - - @short - */ - public native String comment(); - /** - @return the module's icon name - - @short - */ - public native String icon(); - /** - @return the path of the module's documentation - - @short - */ - public native String docPath(); - /** - @return the library name - - @short - */ - public native String library(); - /** - @return a handle (usually the contents of the FactoryName field) - - @short - */ - public native String handle(); - /** - @return the weight of the module which determines the order of the pages in - the KCMultiDialog. It's set by the X-TDE-Weight field. - - @short - */ - public native int weight(); - /** - @return whether the module might require root permissions - - @short - */ - public native boolean needsRootPrivileges(); - /** - @return true if the module should be conditionally - loaded. - - @short - */ - public native boolean needsTest(); - /** - Sets the object's keywords. - @param keyword the new keywords - @short Sets the object's keywords. - */ - protected native void setKeywords(String[] keyword); - /** - Sets the object's name. - @param name the new name - @short Sets the object's name. - */ - protected native void setName(String name); - /** - Sets the object's name. - @param comment the new comment - @short Sets the object's name. - */ - protected native void setComment(String comment); - /** - Sets the object's icon. - @param icon the name of the new icon - @short Sets the object's icon. - */ - protected native void setIcon(String icon); - /** - Set the object's library - @param lib the name of the new library without any extensions or prefixs. - @short Set the object's library - */ - protected native void setLibrary(String lib); - /** - Sets the factory name - @param handle The new factory name - @short Sets the factory name - */ - protected native void setHandle(String handle); - /** - Sets the object's weight property which determines in what - order modules will be displayed. Default is 100. - @param weight the new weight - @short Sets the object's weight property which determines in what order modules will be displayed. - */ - protected native void setWeight(int weight); - /** - Sets if the module should be tested for loading. - @param val the value to set - @short Sets if the module should be tested for loading. - */ - protected native void setNeedsTest(boolean val); - /** - Toggles whether the represented module needs root privileges. - Use with caution. - @param needsRootPrivileges if module needs root privilges - @short Toggles whether the represented module needs root privileges. - */ - protected native void setNeedsRootPrivileges(boolean needsRootPrivileges); - /** - Sets the object's documentation path - @param p the new documentation path - @short Sets the object's documentation path - */ - protected native void setDocPath(String p); - /** - Reads the service entries specific for TDECModule from the desktop file. - The usual desktop entries are read in init. - @short Reads the service entries specific for TDECModule from the desktop file. - */ - protected native void loadAll(); - /** Deletes the wrapped C++ instance */ - protected native void finalize() throws InternalError; - /** Delete the wrapped C++ instance ahead of finalize() */ - public native void dispose(); - /** Has the wrapped C++ instance been deleted? */ - public native boolean isDisposed(); -} diff --git a/kdejava/koala/org/kde/koala/KCModuleLoader.java b/kdejava/koala/org/kde/koala/KCModuleLoader.java deleted file mode 100644 index 926a5088..00000000 --- a/kdejava/koala/org/kde/koala/KCModuleLoader.java +++ /dev/null @@ -1,120 +0,0 @@ -//Auto-generated by kalyptus. DO NOT EDIT. -package org.kde.koala; - -import org.kde.qt.Qt; -import org.kde.qt.QtSupport; -import org.kde.qt.TQWidget; - -/** - - @class Loads a KControl Module. - TDECModuleLoader tries in several ways - to locate and load a TDECModule. If loading fails a - zero pointer is returned. \n - It is very unlikely TDECModuleLoader is what you want - and {@link TDECModuleProxy} suits your needs. - @author Frans Englich - - @short @class Loads a KControl Module. - -*/ -public class TDECModuleLoader implements QtSupport { - private long _qt; - private boolean _allocatedInJavaWorld = true; - protected TDECModuleLoader(Class dummy){} - - /** - Determines the way errors are reported - @short Determines the way errors are reported - */ - public static final int None = 0; - public static final int Inline = 1; - public static final int Dialog = 2; - public static final int Both = 3; - - public TDECModuleLoader() { - newTDECModuleLoader(); - } - private native void newTDECModuleLoader(); - /** - Loads a {@link TDECModule}. If loading fails a zero pointer is returned. - @param module what module to load - @param report see ErrorReporting - @param withFallback if true and loading failed a separate window - with the module may appear and a zero pointer is a returned - @return a pointer to the loaded @ref TDECModule - - @short Loads a @ref TDECModule. - */ - public static native TDECModule loadModule(TDECModuleInfo module, int report, boolean withFallback, TQWidget parent, String name, String[] args); - public static native TDECModule loadModule(TDECModuleInfo module, int report, boolean withFallback, TQWidget parent, String name); - public static native TDECModule loadModule(TDECModuleInfo module, int report, boolean withFallback, TQWidget parent); - public static native TDECModule loadModule(TDECModuleInfo module, int report, boolean withFallback); - public static native TDECModule loadModule(TDECModuleInfo module, int report); - /** - Loads a {@link TDECModule}. If loading fails a zero pointer is returned. - @param module what module to load - @param report see ErrorReporting - with the module may appear and a zero pointer is a returned - @return a pointer to the loaded @ref TDECModule - - @short Loads a @ref TDECModule. - */ - public static native TDECModule loadModule(String module, int report, TQWidget parent, String name, String[] args); - public static native TDECModule loadModule(String module, int report, TQWidget parent, String name); - public static native TDECModule loadModule(String module, int report, TQWidget parent); - public static native TDECModule loadModule(String module, int report); - /** - Unloads the module's library - @param mod What module to unload for - @short Unloads the module's library - */ - public static native void unloadModule(TDECModuleInfo mod); - /** - Checks whether an TDECModule should be shown by running its - test function. If it is unsure whether a module should be shown, it should - be made available, leaving the decision to the user. - If false is returned, the module should not be loaded in any interface. - A module declares it needs to be tested by having "X-TDE-Test-Module=true" in - its desktop file. When that line exists, the following code must be available - in the module's library: -
-		 extern "C"
-		 {
-		    boolean test_moduleName()
-		    {
-		      // Code testing for hardware/software presence.
-		      return true; // and the modue will be loaded.
-		    }
-			 }
-		 
- where moduleName is the library name for the module. - @param module the module to check - @return true if the module should be loaded - - @short Checks whether an TDECModule should be shown by running its test function. - */ - public static native boolean testModule(String module); - /** - Convenience function, essentially the same as above. - @param module the module to check - @return true if the module should be loaded - - @short Convenience function, essentially the same as above. - */ - public static native boolean testModule(TDECModuleInfo module); - /** - Returns a TDECModule containing the messages report and text. - @param report the type of error reporting, see ErrorReporting - @param text the main message - @param details any additional details - @short Returns a TDECModule containing the messages report and text. - */ - public static native TDECModule reportError(int report, String text, String details, TQWidget parent); - /** Deletes the wrapped C++ instance */ - protected native void finalize() throws InternalError; - /** Delete the wrapped C++ instance ahead of finalize() */ - public native void dispose(); - /** Has the wrapped C++ instance been deleted? */ - public native boolean isDisposed(); -} diff --git a/kdejava/koala/org/kde/koala/KCModuleSignals.java b/kdejava/koala/org/kde/koala/KCModuleSignals.java deleted file mode 100644 index fe4bfa22..00000000 --- a/kdejava/koala/org/kde/koala/KCModuleSignals.java +++ /dev/null @@ -1,25 +0,0 @@ -//Auto-generated by kalyptus. DO NOT EDIT. -package org.kde.koala; - -import org.kde.qt.TQMetaObject; -import org.kde.qt.QtSupport; -import org.kde.qt.TQWidget; - -public interface TDECModuleSignals { - /** - Indicate that the state of the modules contents has changed. - This signal is emitted whenever the state of the configuration - shown in the module changes. It allows the control center to - keep track of unsaved changes. - @short Indicate that the state of the modules contents has changed. - */ - void changed(boolean state); - /** - Indicate that the module's tquickhelp has changed. - Emit this signal whenever the module's tquickhelp changes. - Modules implemented as tabbed dialogs might want to implement - per-tab tquickhelp for example. - @short Indicate that the module's tquickhelp has changed. - */ - void quickHelpChanged(); -} diff --git a/kdejava/koala/org/kde/koala/KConfig.java b/kdejava/koala/org/kde/koala/KConfig.java deleted file mode 100644 index 9eedc94d..00000000 --- a/kdejava/koala/org/kde/koala/KConfig.java +++ /dev/null @@ -1,232 +0,0 @@ -//Auto-generated by kalyptus. DO NOT EDIT. -package org.kde.koala; - -import org.kde.qt.Qt; -import org.kde.qt.TQMetaObject; -import org.kde.qt.QtSupport; -import java.util.ArrayList; - -/** - - Access KDE Configuration entries. - This class implements KDE's default configuration system. - @author Kalle Dalheimer , Preston Brown - - @short KDE Configuration Management class. - @see TDEGlobal#config - @see TDEConfigBase - @see KSimpleConfig - -*/ -public class TDEConfig extends TDEConfigBase { - protected TDEConfig(Class dummy){super((Class) null);} - public native TQMetaObject metaObject(); - public native String className(); - /** - Constructs a TDEConfig object. - @param fileName A file to parse in addition to the - system-wide file(s). If it is not provided, only global - KDE configuration data will be read (depending on the value of - bUseKDEGlobals). - @param bReadOnly Set the config object's read-only status. Note that the - object will automatically become read-only if either the user does not have - write permission to fileName or if no file was specified. - @param bUseKDEGlobals Toggle reading the global KDE configuration file. - @param resType the place to look in (config, data, etc) See KStandardDirs. - @short Constructs a TDEConfig object. - */ - public TDEConfig(String fileName, boolean bReadOnly, boolean bUseKDEGlobals, String resType) { - super((Class) null); - newTDEConfig(fileName,bReadOnly,bUseKDEGlobals,resType); - } - private native void newTDEConfig(String fileName, boolean bReadOnly, boolean bUseKDEGlobals, String resType); - public TDEConfig(String fileName, boolean bReadOnly, boolean bUseKDEGlobals) { - super((Class) null); - newTDEConfig(fileName,bReadOnly,bUseKDEGlobals); - } - private native void newTDEConfig(String fileName, boolean bReadOnly, boolean bUseKDEGlobals); - public TDEConfig(String fileName, boolean bReadOnly) { - super((Class) null); - newTDEConfig(fileName,bReadOnly); - } - private native void newTDEConfig(String fileName, boolean bReadOnly); - public TDEConfig(String fileName) { - super((Class) null); - newTDEConfig(fileName); - } - private native void newTDEConfig(String fileName); - public TDEConfig() { - super((Class) null); - newTDEConfig(); - } - private native void newTDEConfig(); - public TDEConfig(TDEConfigBackEnd backEnd, boolean bReadOnly) { - super((Class) null); - newTDEConfig(backEnd,bReadOnly); - } - private native void newTDEConfig(TDEConfigBackEnd backEnd, boolean bReadOnly); - public TDEConfig(TDEConfigBackEnd backEnd) { - super((Class) null); - newTDEConfig(backEnd); - } - private native void newTDEConfig(TDEConfigBackEnd backEnd); - /** - Clears all entries out of the dirtyEntryMap, so the - values will not be written to disk on a later call to - sync(). - @param bDeep If true, the dirty map is actually emptied. - otherwise, the config object's global dirty flag is set to - false, but the dirty entries remain in the dirty entry - map. - @short Clears all entries out of the dirtyEntryMap, so the values will not be written to disk on a later call to sync(). - @see TDEConfigBase#rollback - */ - public native void rollback(boolean bDeep); - public native void rollback(); - /** - Returns a list of groups that are known. - @return a list of of groups - - @short Returns a list of groups that are known. - */ - public native ArrayList groupList(); - /** - Returns a map (tree) of entries for all entries in a particular - group. - Only the actual entry string is returned, none of the - other internal data should be included. - @param pGroup A group to get keys from. - @return A map of entries in the group specified, indexed by key. - The returned map may be empty if the group is not found. - - @short Returns a map (tree) of entries for all entries in a particular group. - */ - // TQMap entryMap(const TQString& arg1); >>>> NOT CONVERTED - /** - Clears all internal data structures and then reread - configuration information from disk. - @short Clears all internal data structures and then reread configuration information from disk. - */ - public native void reparseConfiguration(); - /** - Set the file mode for newly created files. - @param mode the mode for new files as described in chmod(2) - @short Set the file mode for newly created files. - @see #man:chmod(2) - @see #for - @see #a - @see #description - @see #of - @see @see #mode - */ - public native void setFileWriteMode(int mode); - /** - Forces all following write-operations being performed on kdeglobals, - independent of the bGlobal flag in writeEntry(). - @param force true to force writing in kdeglobals - @short Forces all following write-operations being performed on kdeglobals, independent of the bGlobal flag in writeEntry(). - @see #forceGlobal - */ - public native void setForceGlobal(boolean force); - /** - Returns true if all entries are being written into kdeglobals. - @return true if all entries are being written into kdeglobals - - @short Returns true if all entries are being written into kdeglobals. - @see #setForceGlobal - */ - public native boolean forceGlobal(); - /** - Checks whether the config file contains the update id - as contained in updateFile. If not, it runs kconf_update - to update the config file. - If you install config update files with critical fixes - you may wish to use this method to verify that a critical - update has indeed been performed to catch the case where - a user restores an old config file from backup that has - not been updated yet. - @param id the update to check - @param updateFile the file containing the update - @short Checks whether the config file contains the update id as contained in updateFile. - */ - public native void checkUpdate(String id, String updateFile); - /** - Copies all entries from this config object to a new config - object that will save itself to file. - Actual saving to file happens when the returned object is - destructed or when sync() is called upon it. - @param file the new config object will save itself to. - @param config optional config object to reuse - @short Copies all entries from this config object to a new config object that will save itself to file. - */ - public native TDEConfig copyTo(String file, TDEConfig config); - public native TDEConfig copyTo(String file); - /** - Returns a lock file object for the configuration file or 0 if - the backend does not support locking. - @param bGlobal if true, return the lock file for the global config file - NOTE: TDEConfig.sync() requires a lock on both the normal and global - config file. When calling TDEConfig.sync() while having a lock on the - global config file, the normal config file MUST be locked AS WELL and the - normal config file MUST be locked BEFORE the global config file! - Otherwise there is a risk of deadlock. - @short Returns a lock file object for the configuration file or 0 if the backend does not support locking. - */ - // KLockFile::Ptr lockFile(bool arg1); >>>> NOT CONVERTED - // KLockFile::Ptr lockFile(); >>>> NOT CONVERTED - /** - Returns true if the specified group is known. - @param group The group to search for. - @return true if the group exists. - - @short Returns true if the specified group is known. - */ - protected native boolean internalHasGroup(String group); - /** - Returns a map (tree) of the entries in the specified group. - Do not use this function, the implementation / return type are - subject to change. - @param pGroup the group to provide a KEntryMap for. - @return The map of the entries in the group. - - @short - */ - // KEntryMap internalEntryMap(const TQString& arg1); >>>> NOT CONVERTED - /** - Returns a copy of the internal map used to hold all entries. - Do not use this function, the implementation / return type are - subject to change. - @return The map of the entries in the group. - - @short - */ - // KEntryMap internalEntryMap(); >>>> NOT CONVERTED - /** - Inserts a (key, value) pair into the internal storage mechanism of - the configuration object. - @param _key The key to insert. It contains information both on - the group of the key and the key itself. If the key already - exists, the old value will be replaced. - @param _data the KEntry that is to be stored. - @param _checkGroup When false, assume that the group already exists. - @short Inserts a (key, value) pair into the internal storage mechanism of the configuration object. - */ - protected native void putData(KEntryKey _key, KEntry _data, boolean _checkGroup); - protected native void putData(KEntryKey _key, KEntry _data); - /** - Looks up an entry in the config object's internal structure. - @param _key The key to look up It contains information both on - the group of the key and the entry's key itself. - @return the KEntry value (data) found for the key. KEntry.aValue - will be the null string if nothing was located. - - @short Looks up an entry in the config object's internal structure. - */ - protected native KEntry lookupData(KEntryKey _key); - /** Deletes the wrapped C++ instance */ - protected native void finalize() throws InternalError; - /** Delete the wrapped C++ instance ahead of finalize() */ - public native void dispose(); - /** Has the wrapped C++ instance been deleted? */ - public native boolean isDisposed(); -} diff --git a/kdejava/koala/org/kde/koala/KConfigBackEnd.java b/kdejava/koala/org/kde/koala/KConfigBackEnd.java deleted file mode 100644 index b708f574..00000000 --- a/kdejava/koala/org/kde/koala/KConfigBackEnd.java +++ /dev/null @@ -1,120 +0,0 @@ -//Auto-generated by kalyptus. DO NOT EDIT. -package org.kde.koala; - -import org.kde.qt.Qt; -import org.kde.qt.QtSupport; - -/** - - Abstract base class for KDE configuration file loading/saving. - This class forms the base for all classes that implement some - manner of loading/saving to configuration files. It is an - abstract base class, meaning that you cannot directly instantiate - objects of this class. As of right now, the only back end available - is one to read/write to INI-style files, but in the future, other - formats may be available, such as XML or a database. - @author Preston Brown , - Matthias Kalle Dalheimer - - @short KDE Configuration file loading/saving abstract base class. - -*/ -public class TDEConfigBackEnd implements QtSupport { - private long _qt; - private boolean _allocatedInJavaWorld = true; - protected TDEConfigBackEnd(Class dummy){} - - /** - Constructs a configuration back end. - @param _config Specifies the configuration object which values - will be passed to as they are read, or from where values - to be written to will be obtained from. - @param _fileName The name of the file in which config - data is stored. All registered configuration directories - will be looked in in order of decreasing relevance. - @param _resType the resource type of the fileName specified, _if_ - it is not an absolute path (otherwise this parameter is ignored). - @param _useKDEGlobals If true, the user's system-wide kdeglobals file - will be imported into the config object. If false, only - the filename specified will be dealt with. - @short Constructs a configuration back end. - */ - /** - Parses all configuration files for a configuration object. This - method must be reimplemented by the derived classes. - @return Whether or not parsing was successful. - - @short Parses all configuration files for a configuration object. - */ - public native boolean parseConfigFiles(); - /** - Writes configuration data to file(s). This method must be - reimplemented by the derived classes. - @param bMerge Specifies whether the old config file already - on disk should be merged in with the data in memory. If true, - data is read off the disk and merged. If false, the on-disk - file is removed and only in-memory data is written out. - @short Writes configuration data to file(s). - */ - public native void sync(boolean bMerge); - public native void sync(); - /** - Changes the filenames associated with this back end. You should - probably reparse your config info after doing this. - @param _fileName the new filename to use - @param _resType the resource type of the fileName specified, _if_ - it is not an absolute path (otherwise this parameter is ignored). - @param _useKDEGlobals specifies whether or not to also parse the - global KDE configuration files. - @short Changes the filenames associated with this back end. - */ - public native void changeFileName(String _fileName, String _resType, boolean _useKDEGlobals); - /** - Returns the state of the app-config object. - @short Returns the state of the app-config object. - @see TDEConfig#getConfigState - */ - public native int getConfigState(); - /** - Returns the filename as passed to the constructor. - @return the filename as passed to the constructor. - - @short Returns the filename as passed to the constructor. - */ - public native String fileName(); - /** - Returns the resource type as passed to the constructor. - @return the resource type as passed to the constructor. - - @short Returns the resource type as passed to the constructor. - */ - public native String resource(); - /** - Set the locale string that defines the current language. - @param _localeString the identifier of the language - @short Set the locale string that defines the current language. - @see KLocale - */ - public native void setLocaleString(String _localeString); - /** - Set the file mode for newly created files. - @param mode the filemode (as in chmod) - @short Set the file mode for newly created files. - */ - public native void setFileWriteMode(int mode); - /** - Check whether the config files are writable. - @param warnUser Warn the user if the configuration files are not writable. - @return Indicates that all of the configuration files used are writable. - - @short Check whether the config files are writable. - */ - public native boolean checkConfigFilesWritable(boolean warnUser); - /** - Returns a lock file object for the configuration file - @param bGlobal If true, returns a lock file object for kdeglobals - @short Returns a lock file object for the configuration file - */ - // KLockFile::Ptr lockFile(bool arg1); >>>> NOT CONVERTED - // KLockFile::Ptr lockFile(); >>>> NOT CONVERTED -} diff --git a/kdejava/koala/org/kde/koala/KConfigBase.java b/kdejava/koala/org/kde/koala/KConfigBase.java deleted file mode 100644 index 5baa01ff..00000000 --- a/kdejava/koala/org/kde/koala/KConfigBase.java +++ /dev/null @@ -1,936 +0,0 @@ -//Auto-generated by kalyptus. DO NOT EDIT. -package org.kde.koala; - -import org.kde.qt.Qt; -import org.kde.qt.TQColor; -import org.kde.qt.TQRect; -import org.kde.qt.TQFont; -import org.kde.qt.TQMetaObject; -import org.kde.qt.QtSupport; -import org.kde.qt.TQPoint; -import java.util.Calendar; -import org.kde.qt.TQSize; -import java.util.ArrayList; -import org.kde.qt.TQVariant; -import org.kde.qt.TQObject; - -/** - - This class forms the base for all %KDE configuration. It is an - abstract base class, meaning that you cannot directly instantiate - objects of this class. Either use TDEConfig (for usual %KDE - configuration) or KSimpleConfig (for special needs as in ksamba), or - even KSharedConfig (stores values in shared memory). - All configuration entries are key, value pairs. Each entry also - belongs to a specific group of related entries. All configuration - entries that do not explicitly specify which group they are in are - in a special group called the default group. - If there is a $ character in an entry, TDEConfigBase tries to expand - environment variable and uses its value instead of its name. You - can avoid this feature by having two consecutive $ characters in - your config file which get expanded to one. - Note:<> the '=' char is not allowed in keys and the ']' char is not allowed in - a group name. - @author Kalle Dalheimer , Preston Brown - - @short KDE Configuration Management abstract base class. - @see TDEGlobal#config - @see TDEConfig - @see KSimpleConfig - @see KSharedConfig - -*/ -public class TDEConfigBase extends TQObject { - protected TDEConfigBase(Class dummy){super((Class) null);} - /** - Possible return values for getConfigState(). - @short Possible return values for getConfigState(). - @see #getConfigState - */ - public static final int NoAccess = 0; - public static final int ReadOnly = 1; - public static final int ReadWrite = 2; - - public native TQMetaObject metaObject(); - public native String className(); - /** - Construct a TDEConfigBase object. - @short Construct a TDEConfigBase object. - */ - /** - Specifies the group in which keys will be read and written. - Subsequent - calls to readEntry() and writeEntry() will be applied only in the - activated group. - Switch back to the default group by passing a null string. - @param group The name of the new group. - @short Specifies the group in which keys will be read and written. - */ - public native void setGroup(String group); - /** - Sets the group to the "Desktop Entry" group used for - desktop configuration files for applications, mime types, etc. - @short Sets the group to the "Desktop Entry" group used for desktop configuration files for applications, mime types, etc. - */ - public native void setDesktopGroup(); - /** - Returns the name of the group in which we are - searching for keys and from which we are retrieving entries. - @return The current group. - - @short Returns the name of the group in which we are searching for keys and from which we are retrieving entries. - */ - public native String group(); - /** - Returns true if the specified group is known about. - @param group The group to search for. - @return true if the group exists. - - @short Returns true if the specified group is known about. - */ - public native boolean hasGroup(String group); - /** - Returns a list of groups that are known about. - @return The list of groups. - - @short Returns a list of groups that are known about. - */ - public native ArrayList groupList(); - /** - Returns a the current locale. - @return A string representing the current locale. - - @short Returns a the current locale. - */ - public native String locale(); - /** - Reads the value of an entry specified by pKey in the current group. - If you want to read a path, please use readPathEntry(). - @param pKey The key to search for. - @param aDefault A default value returned if the key was not found. - @return The value for this key. Can be null if aDefault is null. - - @short Reads the value of an entry specified by pKey in the current group. - */ - public native String readEntry(String pKey, String aDefault); - public native String readEntry(String pKey); - /** - Reads the value of an entry specified by pKey in the current group. - The value is treated as if it is of the type of the given default value. - Note that only the following TQVariant types are allowed : String, - StringList, List, Font, Point, Rect, Size, Color, Int, UInt, Bool, - Double, DateTime and Date. - @param pKey The key to search for. - @param aDefault A default value returned if the key was not found or - if the read value cannot be converted to the TQVariant.Type. - @return The value for the key or the default value if the key was not - found. - - @short Reads the value of an entry specified by pKey in the current group. - */ - public native TQVariant readPropertyEntry(String pKey, TQVariant aDefault); - /** - Reads a list of strings. - @param pKey The key to search for. - @param sep The list separator (default is ","). - @return The list. Empty if the entry does not exist. - - @short Reads a list of strings. - */ - public native ArrayList readListEntry(String pKey, char sep); - public native ArrayList readListEntry(String pKey); - /** - Reads a list of strings, but returns a default if the key - did not exist. - @param pKey The key to search for. - @param aDefault The default value to use if the key does not exist. - @param sep The list separator (default is ","). - @return The list. Contains aDefault if the Key does not exist. - - @short Reads a list of strings, but returns a default if the key did not exist. - */ - public native ArrayList readListEntry(String pKey, String[] aDefault, char sep); - public native ArrayList readListEntry(String pKey, String[] aDefault); - /** - Reads a list of Integers. - @param pKey The key to search for. - @return The list. Empty if the entry does not exist. - - @short Reads a list of Integers. - */ - public native int[] readIntListEntry(String pKey); - /** - Reads a path. - Read the value of an entry specified by pKey in the current group - and interpret it as a path. This means, dollar expansion is activated - for this value, so that e.g. $HOME gets expanded. - @param pKey The key to search for. - @param aDefault A default value returned if the key was not found. - @return The value for this key. Can be null if aDefault is null. - - @short Reads a path. - */ - public native String readPathEntry(String pKey, String aDefault); - public native String readPathEntry(String pKey); - /** - Reads a list of string paths. - Read the value of an entry specified by pKey in the current group - and interpret it as a list of paths. This means, dollar expansion is activated - for this value, so that e.g. $HOME gets expanded. - @param pKey The key to search for. - @param sep The list separator (default is ","). - @return The list. Empty if the entry does not exist. - - @short Reads a list of string paths. - */ - public native ArrayList readPathListEntry(String pKey, char sep); - public native ArrayList readPathListEntry(String pKey); - /** - Reads a numerical value. - Read the value of an entry specified by pKey in the current group - and interpret it numerically. - @param pKey The key to search for. - @param nDefault A default value returned if the key was not found or if - the read value cannot be interpreted. - @return The value for this key. - - @short Reads a numerical value. - */ - public native int readNumEntry(String pKey, int nDefault); - public native int readNumEntry(String pKey); - /** - Reads an unsigned numerical value. - Read the value of an entry specified by pKey in the current group - and interpret it numerically. - @param pKey The key to search for. - @param nDefault A default value returned if the key was not found or if - the read value cannot be interpreted. - @return The value for this key. - - @short Reads an unsigned numerical value. - */ - public native int readUnsignedNumEntry(String pKey, int nDefault); - public native int readUnsignedNumEntry(String pKey); - /** - Reads a numerical value. - Read the value of an entry specified by pKey in the current group - and interpret it numerically. - @param pKey The key to search for. - @param nDefault A default value returned if the key was not found or if - the read value cannot be interpreted. - @return The value for this key. - - @short Reads a numerical value. - */ - public native long readLongNumEntry(String pKey, long nDefault); - public native long readLongNumEntry(String pKey); - /** - Read an unsigned numerical value. - Read the value of an entry specified by pKey in the current group - and interpret it numerically. - @param pKey The key to search for. - @param nDefault A default value returned if the key was not found or if - the read value cannot be interpreted. - @return The value for this key. - - @short Read an unsigned numerical value. - */ - public native long readUnsignedLongNumEntry(String pKey, long nDefault); - public native long readUnsignedLongNumEntry(String pKey); - /** - Reads a 64-bit numerical value. - Read the value of an entry specified by pKey in the current group - and interpret it numerically. - @param pKey The key to search for. - @param nDefault A default value returned if the key was not found or if - the read value cannot be interpreted. - @return The value for this key. - - @short Reads a 64-bit numerical value. - */ - public native long readNum64Entry(String pKey, long nDefault); - public native long readNum64Entry(String pKey); - /** - Read an 64-bit unsigned numerical value. - Read the value of an entry specified by pKey in the current group - and interpret it numerically. - @param pKey The key to search for. - @param nDefault A default value returned if the key was not found or if - the read value cannot be interpreted. - @return The value for this key. - - @short Read an 64-bit unsigned numerical value. - */ - public native long readUnsignedNum64Entry(String pKey, long nDefault); - public native long readUnsignedNum64Entry(String pKey); - /** - Reads a floating point value. - Read the value of an entry specified by pKey in the current group - and interpret it numerically. - @param pKey The key to search for. - @param nDefault A default value returned if the key was not found or if - the read value cannot be interpreted. - @return The value for this key. - - @short Reads a floating point value. - */ - public native double readDoubleNumEntry(String pKey, double nDefault); - public native double readDoubleNumEntry(String pKey); - /** - Reads a TQFont value. - Read the value of an entry specified by pKey in the current group - and interpret it as a font object. - @param pKey The key to search for. - @param pDefault A default value (null TQFont by default) returned if the - key was not found or if the read value cannot be interpreted. - @return The value for this key. - - @short Reads a TQFont value. - */ - public native TQFont readFontEntry(String pKey, TQFont pDefault); - public native TQFont readFontEntry(String pKey); - /** - Reads a booleanean entry. - Read the value of an entry specified by pKey in the current group - and interpret it as a booleanean value. Currently "on" and "true" are - accepted as true, everything else if false. - @param pKey The key to search for - @param bDefault A default value returned if the key was not found. - @return The value for this key. - - @short Reads a boolean entry. - */ - public native boolean readBoolEntry(String pKey, boolean bDefault); - public native boolean readBoolEntry(String pKey); - /** - Reads a TQRect entry. - Read the value of an entry specified by pKey in the current group - and interpret it as a TQRect object. - @param pKey The key to search for - @param pDefault A default value (null TQRect by default) returned if the - key was not found or if the read value cannot be interpreted. - @return The value for this key. - - @short Reads a TQRect entry. - */ - public native TQRect readRectEntry(String pKey, TQRect pDefault); - public native TQRect readRectEntry(String pKey); - /** - Reads a TQPoint entry. - Read the value of an entry specified by pKey in the current group - and interpret it as a TQPoint object. - @param pKey The key to search for - @param pDefault A default value (null TQPoint by default) returned if the - key was not found or if the read value cannot be interpreted. - @return The value for this key. - - @short Reads a TQPoint entry. - */ - public native TQPoint readPointEntry(String pKey, TQPoint pDefault); - public native TQPoint readPointEntry(String pKey); - /** - Reads a TQSize entry. - Read the value of an entry specified by pKey in the current group - and interpret it as a TQSize object. - @param pKey The key to search for - @param pDefault A default value (null TQSize by default) returned if the - key was not found or if the read value cannot be interpreted. - @return The value for this key. - - @short Reads a TQSize entry. - */ - public native TQSize readSizeEntry(String pKey, TQSize pDefault); - public native TQSize readSizeEntry(String pKey); - /** - Reads a TQColor entry. - Read the value of an entry specified by pKey in the current group - and interpret it as a color. - @param pKey The key to search for. - @param pDefault A default value (null TQColor by default) returned if the - key was not found or if the value cannot be interpreted. - @return The value for this key. - - @short Reads a TQColor entry. - */ - public native TQColor readColorEntry(String pKey, TQColor pDefault); - public native TQColor readColorEntry(String pKey); - /** - Reads a Calendar entry. - Read the value of an entry specified by pKey in the current group - and interpret it as a date and time. - @param pKey The key to search for. - @param pDefault A default value ( currentDateTime() by default) - returned if the key was not found or if the read value cannot be - interpreted. - @return The value for this key. - - @short Reads a TQDateTime entry. - */ - public native Calendar readDateTimeEntry(String pKey, Calendar pDefault); - public native Calendar readDateTimeEntry(String pKey); - /** - Reads the value of an entry specified by pKey in the current group. - The untranslated entry is returned, you normally do not need this. - @param pKey The key to search for. - @param aDefault A default value returned if the key was not found. - @return The value for this key. - - @short Reads the value of an entry specified by pKey in the current group. - */ - public native String readEntryUntranslated(String pKey, String aDefault); - public native String readEntryUntranslated(String pKey); - /** - Writes a key/value pair. - This is stored in the most specific config file when destroying the - config object or when calling sync(). - If you want to write a path, please use writePathEntry(). - @param pKey The key to write. - @param pValue The value to write. - @param bPersistent If bPersistent is false, the entry's dirty - flag will not be set and thus the entry will - not be written to disk at deletion time. - @param bGlobal If bGlobal is true, the pair is not saved to the - application specific config file, but to the - global KDE config file. - @param bNLS If bNLS is true, the locale tag is added to the key - when writing it back. - @short Writes a key/value pair. - */ - public native void writeEntry(String pKey, String pValue, boolean bPersistent, boolean bGlobal, boolean bNLS); - public native void writeEntry(String pKey, String pValue, boolean bPersistent, boolean bGlobal); - public native void writeEntry(String pKey, String pValue, boolean bPersistent); - public native void writeEntry(String pKey, String pValue); - /** - writeEntry() Overridden to accept a property. - Note: Unlike the other writeEntry() functions, the old value is - _not_ returned here! - @param pKey The key to write - @param rValue The property to write - @param bPersistent If bPersistent is false, the entry's dirty flag - will not be set and thus the entry will not be - written to disk at deletion time. - @param bGlobal If bGlobal is true, the pair is not saved to the - application specific config file, but to the - global KDE config file. - @param bNLS If bNLS is true, the locale tag is added to the key - when writing it back. - @short writeEntry() Overridden to accept a property. - @see #writeEntry - */ - public native void writeEntry(String pKey, TQVariant rValue, boolean bPersistent, boolean bGlobal, boolean bNLS); - public native void writeEntry(String pKey, TQVariant rValue, boolean bPersistent, boolean bGlobal); - public native void writeEntry(String pKey, TQVariant rValue, boolean bPersistent); - public native void writeEntry(String pKey, TQVariant rValue); - /** - writeEntry() overridden to accept a list of strings. - Note: Unlike the other writeEntry() functions, the old value is - _not_ returned here! - @param pKey The key to write - @param rValue The list to write - @param sep The list separator (default is ","). - @param bPersistent If bPersistent is false, the entry's dirty flag - will not be set and thus the entry will not be - written to disk at deletion time. - @param bGlobal If bGlobal is true, the pair is not saved to the - application specific config file, but to the - global KDE config file. - @param bNLS If bNLS is true, the locale tag is added to the key - when writing it back. - @short writeEntry() overridden to accept a list of strings. - @see #writeEntry - */ - public native void writeEntry(String pKey, String[] rValue, char sep, boolean bPersistent, boolean bGlobal, boolean bNLS); - public native void writeEntry(String pKey, String[] rValue, char sep, boolean bPersistent, boolean bGlobal); - public native void writeEntry(String pKey, String[] rValue, char sep, boolean bPersistent); - public native void writeEntry(String pKey, String[] rValue, char sep); - public native void writeEntry(String pKey, String[] rValue); - /** - writeEntry() overridden to accept a list of Integers. - Note: Unlike the other writeEntry() functions, the old value is - _not_ returned here! - @param pKey The key to write - @param rValue The list to write - @param bPersistent If bPersistent is false, the entry's dirty flag - will not be set and thus the entry will not be - written to disk at deletion time. - @param bGlobal If bGlobal is true, the pair is not saved to the - application specific config file, but to the - global KDE config file. - @param bNLS If bNLS is true, the locale tag is added to the key - when writing it back. - @short writeEntry() overridden to accept a list of Integers. - @see #writeEntry - */ - public native void writeEntry(String pKey, int[] rValue, boolean bPersistent, boolean bGlobal, boolean bNLS); - public native void writeEntry(String pKey, int[] rValue, boolean bPersistent, boolean bGlobal); - public native void writeEntry(String pKey, int[] rValue, boolean bPersistent); - public native void writeEntry(String pKey, int[] rValue); - /** - Write a (key/value) pair. - Same as above, but writes a numerical value. - @param pKey The key to write. - @param nValue The value to write. - @param bPersistent If bPersistent is false, the entry's dirty - flag will not be set and thus the entry will not be written to - disk at deletion time. - @param bGlobal If bGlobal is true, the pair is not saved to the - application specific config file, but to the - global KDE config file. - @param bNLS If bNLS is true, the locale tag is added to the key - when writing it back. - @short Write a (key/value) pair. - */ - public native void writeEntry(String pKey, int nValue, boolean bPersistent, boolean bGlobal, boolean bNLS); - public native void writeEntry(String pKey, int nValue, boolean bPersistent, boolean bGlobal); - public native void writeEntry(String pKey, int nValue, boolean bPersistent); - public native void writeEntry(String pKey, int nValue); - /** - Writes a (key/value) pair. - Same as above, but write a long numerical value. - @param pKey The key to write. - @param nValue The value to write. - @param bPersistent If bPersistent is false, the entry's dirty - flag will not be set and thus the entry will not be written to - disk at deletion time. - @param bGlobal If bGlobal is true, the pair is not saved to the - application specific config file, but to the global KDE config file. - @param bNLS If bNLS is true, the locale tag is added to the key - when writing it back. - @short Writes a (key/value) pair. - */ - public native void writeEntry(String pKey, long nValue, boolean bPersistent, boolean bGlobal, boolean bNLS); - public native void writeEntry(String pKey, long nValue, boolean bPersistent, boolean bGlobal); - public native void writeEntry(String pKey, long nValue, boolean bPersistent); - public native void writeEntry(String pKey, long nValue); - /** - Writes a (key/value) pair. - Same as above, but writes a floating-point value. - @param pKey The key to write. - @param nValue The value to write. - @param bPersistent If bPersistent is false, the entry's dirty - flag will not be set and thus the entry will not be written to - disk at deletion time. - @param bGlobal If bGlobal is true, the pair is not saved to the - application specific config file, but to the global KDE config file. - @param format format determines the format to which the value - is converted. Default is 'g'. - @param precision precision sets the precision with which the - value is converted. Default is 6 as in String. - @param bNLS If bNLS is true, the locale tag is added to the key - when writing it back. - @short Writes a (key/value) pair. - */ - public native void writeEntry(String pKey, double nValue, boolean bPersistent, boolean bGlobal, char format, int precision, boolean bNLS); - public native void writeEntry(String pKey, double nValue, boolean bPersistent, boolean bGlobal, char format, int precision); - public native void writeEntry(String pKey, double nValue, boolean bPersistent, boolean bGlobal, char format); - public native void writeEntry(String pKey, double nValue, boolean bPersistent, boolean bGlobal); - public native void writeEntry(String pKey, double nValue, boolean bPersistent); - public native void writeEntry(String pKey, double nValue); - /** - Writes a (key/value) pair. - Same as above, but writes a booleanean value. - @param pKey The key to write. - @param bValue The value to write. - @param bPersistent If bPersistent is false, the entry's dirty - flag will not be set and thus the entry will not be written to - disk at deletion time. - @param bGlobal If bGlobal is true, the pair is not saved to the - application specific config file, but to the global KDE config file. - @param bNLS If bNLS is true, the locale tag is added to the key - when writing it back. - @short Writes a (key/value) pair. - */ - public native void writeEntry(String pKey, boolean bValue, boolean bPersistent, boolean bGlobal, boolean bNLS); - public native void writeEntry(String pKey, boolean bValue, boolean bPersistent, boolean bGlobal); - public native void writeEntry(String pKey, boolean bValue, boolean bPersistent); - public native void writeEntry(String pKey, boolean bValue); - /** - Writes a (key/value) pair. - Same as above, but writes a font value. - @param pKey The key to write. - @param rFont The font value to write. - @param bPersistent If bPersistent is false, the entry's dirty - flag will not be set and thus the entry will not be written to - disk at deletion time. - @param bGlobal If bGlobal is true, the pair is not saved to the - application specific config file, but to the global KDE config file. - @param bNLS If bNLS is true, the locale tag is added to the key - when writing it back. - @short Writes a (key/value) pair. - */ - public native void writeEntry(String pKey, TQFont rFont, boolean bPersistent, boolean bGlobal, boolean bNLS); - public native void writeEntry(String pKey, TQFont rFont, boolean bPersistent, boolean bGlobal); - public native void writeEntry(String pKey, TQFont rFont, boolean bPersistent); - public native void writeEntry(String pKey, TQFont rFont); - /** - Writes a (key/value) pair. - Same as above, but write a color entry. - Note: Unlike the other writeEntry() functions, the old value is - _not_ returned here! - @param pKey The key to write. - @param rColor The color value to write. - @param bPersistent If bPersistent is false, the entry's dirty - flag will not be set and thus the entry will not be written to - disk at deletion time. - @param bGlobal If bGlobal is true, the pair is not saved to the - application specific config file, but to the global KDE config file. - @param bNLS If bNLS is true, the locale tag is added to the key - when writing it back. - @short Writes a (key/value) pair. - */ - public native void writeEntry(String pKey, TQColor rColor, boolean bPersistent, boolean bGlobal, boolean bNLS); - public native void writeEntry(String pKey, TQColor rColor, boolean bPersistent, boolean bGlobal); - public native void writeEntry(String pKey, TQColor rColor, boolean bPersistent); - public native void writeEntry(String pKey, TQColor rColor); - /** - Writes a (key/value) pair. - Same as above, but writes a date and time entry. - Note: Unlike the other writeEntry() functions, the old value is - not returned here! - @param pKey The key to write. - @param rDateTime The date and time value to write. - @param bPersistent If bPersistent is false, the entry's dirty - flag will not be set and thus the entry will not be written to - disk at deletion time. - @param bGlobal If bGlobal is true, the pair is not saved to the - application specific config file, but to the global KDE config file. - @param bNLS If bNLS is true, the locale tag is added to the key - when writing it back. - @short Writes a (key/value) pair. - */ - public native void writeEntry(String pKey, Calendar rDateTime, boolean bPersistent, boolean bGlobal, boolean bNLS); - public native void writeEntry(String pKey, Calendar rDateTime, boolean bPersistent, boolean bGlobal); - public native void writeEntry(String pKey, Calendar rDateTime, boolean bPersistent); - public native void writeEntry(String pKey, Calendar rDateTime); - /** - Writes a (key/value) pair. - Same as above, but writes a rectangle. - Note: Unlike the other writeEntry() functions, the old value is - _not_ returned here! - @param pKey The key to write. - @param rValue The rectangle value to write. - @param bPersistent If bPersistent is false, the entry's dirty - flag will not be set and thus the entry will not be written to - disk at deletion time. - @param bGlobal If bGlobal is true, the pair is not saved to the - application specific config file, but to the global KDE config file. - @param bNLS If bNLS is true, the locale tag is added to the key - when writing it back. - @short Writes a (key/value) pair. - */ - public native void writeEntry(String pKey, TQRect rValue, boolean bPersistent, boolean bGlobal, boolean bNLS); - public native void writeEntry(String pKey, TQRect rValue, boolean bPersistent, boolean bGlobal); - public native void writeEntry(String pKey, TQRect rValue, boolean bPersistent); - public native void writeEntry(String pKey, TQRect rValue); - /** - Writes a (key/value) pair. - Same as above, but writes a point. - Note: Unlike the other writeEntry() functions, the old value is - _not_ returned here! - @param pKey The key to write. - @param rValue The point value to write. - @param bPersistent If bPersistent is false, the entry's dirty - flag will not be set and thus the entry will not be written to - disk at deletion time. - @param bGlobal If bGlobal is true, the pair is not saved to the - application specific config file, but to the global KDE config file. - @param bNLS If bNLS is true, the locale tag is added to the key - when writing it back. - @short Writes a (key/value) pair. - */ - public native void writeEntry(String pKey, TQPoint rValue, boolean bPersistent, boolean bGlobal, boolean bNLS); - public native void writeEntry(String pKey, TQPoint rValue, boolean bPersistent, boolean bGlobal); - public native void writeEntry(String pKey, TQPoint rValue, boolean bPersistent); - public native void writeEntry(String pKey, TQPoint rValue); - /** - Writes a (key/value) pair. - Same as above, but writes a size. - Note: Unlike the other writeEntry() functions, the old value is - _not_ returned here! - @param pKey The key to write. - @param rValue The size value to write. - @param bPersistent If bPersistent is false, the entry's dirty - flag will not be set and thus the entry will not be written to - disk at deletion time. - @param bGlobal If bGlobal is true, the pair is not saved to the - application specific config file, but to the global KDE config file. - @param bNLS If bNLS is true, the locale tag is added to the key - when writing it back. - @short Writes a (key/value) pair. - */ - public native void writeEntry(String pKey, TQSize rValue, boolean bPersistent, boolean bGlobal, boolean bNLS); - public native void writeEntry(String pKey, TQSize rValue, boolean bPersistent, boolean bGlobal); - public native void writeEntry(String pKey, TQSize rValue, boolean bPersistent); - public native void writeEntry(String pKey, TQSize rValue); - /** - Writes a file path. - It is checked whether the path is located under $HOME. If so the - path is written out with the user's home-directory replaced with - $HOME. The path should be read back with readPathEntry() - @param pKey The key to write. - @param path The path to write. - @param bPersistent If bPersistent is false, the entry's dirty - flag will not be set and thus the entry will not be written to - disk at deletion time. - @param bGlobal If bGlobal is true, the pair is not saved to the - application specific config file, but to the global KDE config file. - @param bNLS If bNLS is true, the locale tag is added to the key - when writing it back. - @short Writes a file path. - */ - public native void writePathEntry(String pKey, String path, boolean bPersistent, boolean bGlobal, boolean bNLS); - public native void writePathEntry(String pKey, String path, boolean bPersistent, boolean bGlobal); - public native void writePathEntry(String pKey, String path, boolean bPersistent); - public native void writePathEntry(String pKey, String path); - /** - writePathEntry() overridden to accept a list of paths (strings). - It is checked whether the paths are located under $HOME. If so each of - the paths are written out with the user's home-directory replaced with - $HOME. The paths should be read back with readPathListEntry() - @param pKey The key to write - @param rValue The list to write - @param sep The list separator (default is ","). - @param bPersistent If bPersistent is false, the entry's dirty flag - will not be set and thus the entry will not be - written to disk at deletion time. - @param bGlobal If bGlobal is true, the pair is not saved to the - application specific config file, but to the - global KDE config file. - @param bNLS If bNLS is true, the locale tag is added to the key - when writing it back. - @short writePathEntry() overridden to accept a list of paths (strings). - @see #writePathEntry - @see #readPathListEntry - */ - public native void writePathEntry(String pKey, String[] rValue, char sep, boolean bPersistent, boolean bGlobal, boolean bNLS); - public native void writePathEntry(String pKey, String[] rValue, char sep, boolean bPersistent, boolean bGlobal); - public native void writePathEntry(String pKey, String[] rValue, char sep, boolean bPersistent); - public native void writePathEntry(String pKey, String[] rValue, char sep); - public native void writePathEntry(String pKey, String[] rValue); - /** - Deletes the entry specified by pKey in the current group. - @param pKey The key to delete. - @param bGlobal If bGlobal is true, the pair is not removed from the - application specific config file, but to the global KDE config file. - @param bNLS If bNLS is true, the key with the locale tag is removed. - @short Deletes the entry specified by pKey in the current group. - */ - public native void deleteEntry(String pKey, boolean bNLS, boolean bGlobal); - public native void deleteEntry(String pKey, boolean bNLS); - public native void deleteEntry(String pKey); - /** - Deletes a configuration entry group - If the group is not empty and bDeep is false, nothing gets - deleted and false is returned. - If this group is the current group and it is deleted, the - current group is undefined and should be set with setGroup() - before the next operation on the configuration object. - @param group The name of the group - @param bDeep Specify whether non-empty groups should be completely - deleted (including their entries). - @param bGlobal If bGlobal is true, the group is not removed from the - application specific config file, but from the global KDE config file. - @return If the group is not empty and bDeep is false, - deleteGroup returns false. - - @short Deletes a configuration entry group - */ - public native boolean deleteGroup(String group, boolean bDeep, boolean bGlobal); - public native boolean deleteGroup(String group, boolean bDeep); - public native boolean deleteGroup(String group); - /** - Turns on or off "dollar expansion" (see TDEConfigBase introduction) - when reading config entries. - Dollar sign expansion is initially OFF. - @param _bExpand Tf true, dollar expansion is turned on. - @short Turns on or off "dollar expansion" (see TDEConfigBase introduction) when reading config entries. - */ - public native void setDollarExpansion(boolean _bExpand); - public native void setDollarExpansion(); - /** - Returns whether dollar expansion is on or off. It is initially OFF. - @return true if dollar expansion is on. - - @short Returns whether dollar expansion is on or off. - */ - public native boolean isDollarExpansion(); - /** - Mark the config object as "clean," i.e. don't write dirty entries - at destruction time. If bDeep is false, only the global dirty - flag of the TDEConfig object gets cleared. If you then call - writeEntry() again, the global dirty flag is set again and all - dirty entries will be written at a subsequent sync() call. - Classes that derive from TDEConfigBase should override this - method and implement storage-specific behavior, as well as - calling the TDEConfigBase.rollback() explicitly in the initializer. - @param bDeep If true, the dirty flags of all entries are cleared, - as well as the global dirty flag. - @short Mark the config object as "clean," i. - */ - public native void rollback(boolean bDeep); - public native void rollback(); - /** - Flushes all changes that currently reside only in memory - back to disk / permanent storage. Dirty configuration entries are - written to the most specific file available. - Asks the back end to flush out all pending writes, and then calls - rollback(). No changes are made if the object has readOnly - status. - You should call this from your destructor in derivative classes. - @short Flushes all changes that currently reside only in memory back to disk / permanent storage. - @see #rollback - @see #isReadOnly - */ - public native void sync(); - /** - Checks whether the config file has any dirty (modified) entries. - @return true if the config file has any dirty (modified) entries. - - @short Checks whether the config file has any dirty (modified) entries. - */ - public native boolean isDirty(); - /** - Sets the config object's read-only status. - @param _ro If true, the config object will not write out any - changes to disk even if it is destroyed or sync() is called. - @short Sets the config object's read-only status. - */ - public native void setReadOnly(boolean _ro); - /** - Returns the read-only status of the config object. - @return The read-only status. - - @short Returns the read-only status of the config object. - */ - public native boolean isReadOnly(); - /** - Checks whether the key has an entry in the currently active group. - Use this to determine whether a key is not specified for the current - group (hasKey() returns false). Keys with null data are considered - nonexistent. - @param key The key to search for. - @return If true, the key is available. - - @short Checks whether the key has an entry in the currently active group. - */ - public native boolean hasKey(String key); - /** - Returns a map (tree) of entries for all entries in a particular - group. Only the actual entry string is returned, none of the - other internal data should be included. - @param group A group to get keys from. - @return A map of entries in the group specified, indexed by key. - The returned map may be empty if the group is not found. - - @short Returns a map (tree) of entries for all entries in a particular group. - @see org.kde.qt.TQMap - */ - // TQMap entryMap(const TQString& arg1); >>>> NOT CONVERTED - /** - Reparses all configuration files. This is useful for programs - that use stand alone graphical configuration tools. The base - method implemented here only clears the group list and then - appends the default group. - Derivative classes should clear any internal data structures and - then simply call parseConfigFiles() when implementing this - method. - @short Reparses all configuration files. - @see #parseConfigFiles - */ - public native void reparseConfiguration(); - /** - Checks whether this configuration file can be modified. - @return whether changes may be made to this configuration file. - - @short Checks whether this configuration file can be modified. - */ - public native boolean isImmutable(); - /** - Checks whether it is possible to change the given group. - @param group the group to check - @return whether changes may be made to group in this configuration - file. - - @short Checks whether it is possible to change the given group. - */ - public native boolean groupIsImmutable(String group); - /** - Checks whether it is possible to change the given entry. - @param key the key to check - @return whether the entry key may be changed in the current group - in this configuration file. - - @short Checks whether it is possible to change the given entry. - */ - public native boolean entryIsImmutable(String key); - /** - Returns the state of the app-config object. - Possible return values - are NoAccess (the application-specific config file could not be - opened neither read-write nor read-only), ReadOnly (the - application-specific config file is opened read-only, but not - read-write) and ReadWrite (the application-specific config - file is opened read-write). - @return the state of the app-config object - - @short Returns the state of the app-config object. - @see ConfigState - */ - public native int getConfigState(); - /** - Check whether the config files are writable. - @param warnUser Warn the user if the configuration files are not writable. - @return Indicates that all of the configuration files used are writable. - - @short Check whether the config files are writable. - */ - public native boolean checkConfigFilesWritable(boolean warnUser); - /** - When set, all readEntry and readXXXEntry calls return the system - wide (default) values instead of the user's preference. - This is off by default. - @short When set, all readEntry and readXXXEntry calls return the system wide (default) values instead of the user's preference. - */ - public native void setReadDefaults(boolean b); - /** - @return true if all readEntry and readXXXEntry calls return the system - wide (default) values instead of the user's preference. - - @short - */ - public native boolean readDefaults(); - /** - Reverts the entry with key key in the current group in the - application specific config file to either the system wide (default) - value or the value specified in the global KDE config file. - To revert entries in the global KDE config file, the global KDE config - file should be opened explicitly in a separate config object. - @param key The key of the entry to revert. - @short Reverts the entry with key key in the current group in the application specific config file to either the system wide (default) value or the value specified in the global KDE config file. - */ - public native void revertToDefault(String key); - /** - Returns whether a default is specified for an entry in either the - system wide configuration file or the global KDE config file. - If an application computes a default value at runtime for - a certain entry, e.g. like: -
-		 TQColor computedDefault = kapp.palette().color(TQPalette.Active, TQColorGroup.Text)
-		 TQColor color = config.readEntry(key, computedDefault);
-		 \encode
-			 Then it may wish to make the following check before
-		 writing back changes:
-		 
-		 if ( (value == computedDefault) && !config.hasDefault(key) )
-		    config.revertToDefault(key)
-		 else
-		    config.writeEntry(key, value)
-		 
- This ensures that as long as the entry is not modified to differ from - the computed default, the application will keep using the computed default - and will follow changes the computed default makes over time. - @param key The key of the entry to check. - @short Returns whether a default is specified for an entry in either the system wide configuration file or the global KDE config file. - */ - public native boolean hasDefault(String key); -} diff --git a/kdejava/koala/org/kde/koala/KConfigGroup.java b/kdejava/koala/org/kde/koala/KConfigGroup.java deleted file mode 100644 index 344597e8..00000000 --- a/kdejava/koala/org/kde/koala/KConfigGroup.java +++ /dev/null @@ -1,53 +0,0 @@ -//Auto-generated by kalyptus. DO NOT EDIT. -package org.kde.koala; - -import org.kde.qt.Qt; -import org.kde.qt.QtSupport; - -/** - - A TDEConfigBase derived class for one specific group in a TDEConfig object. - @short A TDEConfigBase derived class for one specific group in a TDEConfig object. - -*/ -public class TDEConfigGroup extends TDEConfigBase { - protected TDEConfigGroup(Class dummy){super((Class) null);} - /** - Construct a config group corresponding to group in master. - group is the group name encoded in UTF-8. - @short Construct a config group corresponding to group in master. - */ - public TDEConfigGroup(TDEConfigBase master, String group) { - super((Class) null); - newTDEConfigGroup(master,group); - } - private native void newTDEConfigGroup(TDEConfigBase master, String group); - /** - Delete all entries in the entire group - @param bGlobal If bGlobal is true, the entries are not removed - from the application specific config file, but from the global - KDE config file. - @short Delete all entries in the entire group - */ - public native void deleteGroup(boolean bGlobal); - public native void deleteGroup(); - /** - Checks whether it is possible to change this group. - @return whether changes may be made to this group in this configuration - file. - - @short Checks whether it is possible to change this group. - */ - public native boolean groupIsImmutable(); - public native void setDirty(boolean b); - public native void putData(KEntryKey _key, KEntry _data, boolean _checkGroup); - public native void putData(KEntryKey _key, KEntry _data); - public native KEntry lookupData(KEntryKey _key); - public native void sync(); - /** Deletes the wrapped C++ instance */ - protected native void finalize() throws InternalError; - /** Delete the wrapped C++ instance ahead of finalize() */ - public native void dispose(); - /** Has the wrapped C++ instance been deleted? */ - public native boolean isDisposed(); -} diff --git a/kdejava/koala/org/kde/koala/KConfigGroupSaver.java b/kdejava/koala/org/kde/koala/KConfigGroupSaver.java deleted file mode 100644 index 6cc7051d..00000000 --- a/kdejava/koala/org/kde/koala/KConfigGroupSaver.java +++ /dev/null @@ -1,66 +0,0 @@ -//Auto-generated by kalyptus. DO NOT EDIT. -package org.kde.koala; - -import org.kde.qt.Qt; -import org.kde.qt.QtSupport; - -/** - - Helper class to facilitate working with TDEConfig / KSimpleConfig - groups. - Careful programmers always set the group of a - TDEConfig KSimpleConfig object to the group they want to read from - and set it back to the old one of afterwards. This is usually - written as: -
- String oldgroup config.group();
- config.setGroup( "TheGroupThatIWant" );
- ...
- config.writeEntry( "Blah", "Blubb" );
- config.setGroup( oldgroup );
- 
- In order to facilitate this task, you can use - TDEConfigGroupSaver. Simply construct such an object ON THE STACK - when you want to switch to a new group. Then, when the object goes - out of scope, the group will automatically be restored. If you - want to use several different groups within a function or method, - you can still use TDEConfigGroupSaver: Simply enclose all work with - one group (including the creation of the TDEConfigGroupSaver object) - in one block. - TDEConfigGroup provides similar functionality in a more object oriented - way. - @author Matthias Kalle Dalheimer - - @short Helper class for easier use of TDEConfig/KSimpleConfig groups. - @see TDEConfigBase - @see TDEConfig - @see KSimpleConfig - @see TDEConfigGroup - -*/ -public class TDEConfigGroupSaver implements QtSupport { - private long _qt; - private boolean _allocatedInJavaWorld = true; - protected TDEConfigGroupSaver(Class dummy){} - - /** - Constructor. You pass a pointer to the TDEConfigBase-derived - object you want to work with and a string indicating the _new_ - group. - @param config The TDEConfigBase-derived object this - TDEConfigGroupSaver works on. - @param group The new group that the config object should switch to. - @short Constructor. - */ - public TDEConfigGroupSaver(TDEConfigBase config, String group) { - newTDEConfigGroupSaver(config,group); - } - private native void newTDEConfigGroupSaver(TDEConfigBase config, String group); - public native TDEConfigBase config(); - /** Deletes the wrapped C++ instance */ - protected native void finalize() throws InternalError; - /** Delete the wrapped C++ instance ahead of finalize() */ - public native void dispose(); - /** Has the wrapped C++ instance been deleted? */ - public native boolean isDisposed(); -} diff --git a/kdejava/koala/org/kde/koala/KConfigINIBackEnd.java b/kdejava/koala/org/kde/koala/KConfigINIBackEnd.java deleted file mode 100644 index fba09220..00000000 --- a/kdejava/koala/org/kde/koala/KConfigINIBackEnd.java +++ /dev/null @@ -1,117 +0,0 @@ -//Auto-generated by kalyptus. DO NOT EDIT. -package org.kde.koala; - -import org.kde.qt.Qt; -import org.kde.qt.QtSupport; -import org.kde.qt.TQFile; - -/** - - Class for KDE INI-style configuration file loading/saving. - @author Preston Brown , - Matthias Kalle Dalheimer - - @short Class for KDE INI-style configuration file loading/saving. - -*/ -public class TDEConfigINIBackEnd extends TDEConfigBackEnd { - protected TDEConfigINIBackEnd(Class dummy){super((Class) null);} - /** - Constructs an ini-style configuration back end. - @param _config Specifies the configuration object which values - will be passed to as they are read, or from where values - to be written to will be obtained from. - @param _fileName The name of the file in which config - data is stored. All registered configuration directories - will be looked in in order of decreasing relevance. - @param _resType the resource type of the fileName specified, _if_ - it is not an absolute path (otherwise this parameter is ignored). - @param _useKDEGlobals If true, the user's system-wide kdeglobals file - will be imported into the config object. If false, only - the filename specified will be dealt with. - @short Constructs an ini-style configuration back end. - */ - public TDEConfigINIBackEnd(TDEConfigBase _config, String _fileName, String _resType, boolean _useKDEGlobals) { - super((Class) null); - newTDEConfigINIBackEnd(_config,_fileName,_resType,_useKDEGlobals); - } - private native void newTDEConfigINIBackEnd(TDEConfigBase _config, String _fileName, String _resType, boolean _useKDEGlobals); - public TDEConfigINIBackEnd(TDEConfigBase _config, String _fileName, String _resType) { - super((Class) null); - newTDEConfigINIBackEnd(_config,_fileName,_resType); - } - private native void newTDEConfigINIBackEnd(TDEConfigBase _config, String _fileName, String _resType); - /** - Parses all INI-style configuration files for a config object. - @return Whether or not parsing was successful. - - @short Parses all INI-style configuration files for a config object. - */ - public native boolean parseConfigFiles(); - /** - Writes configuration data to file(s). - @param bMerge Specifies whether the old config file already - on disk should be merged in with the data in memory. If true, - data is read off the disk and merged. If false, the on-disk - file is removed and only in-memory data is written out. - @short Writes configuration data to file(s). - */ - public native void sync(boolean bMerge); - public native void sync(); - /** - Parses one configuration file. - @param rFile The configuration file to parse - @param pWriteBackMap If specified, points to a KEntryMap where - the data read from the file should be stored, instead of - inserting them directly into the configuration object. - Use this area as a "scratchpad" when you need to know what is - on disk but don't want to effect the configuration object. - @param bGlobal Specifies whether entries should be marked as - belonging to the global KDE configuration file rather - than the application-specific KDE configuration file(s). - @param bDefault Specifies whether entries should be marked as - being default values. - @short Parses one configuration file. - */ - // void parseSingleConfigFile(TQFile& arg1,KEntryMap* arg2,bool arg3,bool arg4); >>>> NOT CONVERTED - // void parseSingleConfigFile(TQFile& arg1,KEntryMap* arg2,bool arg3); >>>> NOT CONVERTED - // void parseSingleConfigFile(TQFile& arg1,KEntryMap* arg2); >>>> NOT CONVERTED - protected native void parseSingleConfigFile(TQFile rFile); - /** - Writes configuration file back. - @param filename The name of the file to write. - @param bGlobal Specifies whether to write only entries which - are marked as belonging to the global KDE config file. - If this is false, it skips those entries. - @param bMerge Specifies whether the old config file already - on disk should be merged in with the data in memory. If true, - data is read off the disk and merged. If false, the on-disk - file is removed and only in-memory data is written out. - @return Whether some entries are left to be written to other - files. - - @short Writes configuration file back. - */ - protected native boolean writeConfigFile(String filename, boolean bGlobal, boolean bMerge); - protected native boolean writeConfigFile(String filename, boolean bGlobal); - protected native boolean writeConfigFile(String filename); - /** Get the entry map. - @param map the entries will be stored in this object. - @param bGlobal Specifies whether to get only entries which - are marked as belonging to the global KDE config file. - If this is false, it skips those entries. - @param mergeFile if not null, the dirty entries for this file will - be merged. - @return Whether there will be some entries left for writing to other - files. - - @short Get the entry map. - */ - // bool getEntryMap(KEntryMap& arg1,bool arg2,TQFile* arg3); >>>> NOT CONVERTED - /** Deletes the wrapped C++ instance */ - protected native void finalize() throws InternalError; - /** Delete the wrapped C++ instance ahead of finalize() */ - public native void dispose(); - /** Has the wrapped C++ instance been deleted? */ - public native boolean isDisposed(); -} diff --git a/kdejava/koala/org/kde/koala/KIO.java b/kdejava/koala/org/kde/koala/KIO.java deleted file mode 100644 index 7fe6837d..00000000 --- a/kdejava/koala/org/kde/koala/KIO.java +++ /dev/null @@ -1,1179 +0,0 @@ -//Auto-generated by kalyptus. DO NOT EDIT. -package org.kde.koala; - -import org.kde.qt.Qt; -import org.kde.qt.TQDomDocument; -import org.kde.qt.TQMimeSourceInterface; -import org.kde.qt.QtSupport; -import org.kde.qt.TQDataStream; -import java.util.ArrayList; -import org.kde.qt.TQMimeSource; -import org.kde.qt.TQWidget; - -/** - - @short A namespace for KIO globals. - -*/ -public class KIO { - public static final int S_SKIP = 1; - public static final int S_AUTO_SKIP = 2; - public static final int S_CANCEL = 0; - - public static final int M_OVERWRITE = 1; - public static final int M_OVERWRITE_ITSELF = 2; - public static final int M_SKIP = 4; - public static final int M_SINGLE = 8; - public static final int M_MULTI = 16; - public static final int M_RESUME = 32; - public static final int M_NORENAME = 64; - - /** - The result of open_RenameDlg(). - @short The result of open_RenameDlg(). - */ - public static final int R_RESUME = 6; - public static final int R_RESUME_ALL = 7; - public static final int R_OVERWRITE = 4; - public static final int R_OVERWRITE_ALL = 5; - public static final int R_SKIP = 2; - public static final int R_AUTO_SKIP = 3; - public static final int R_RENAME = 1; - public static final int R_CANCEL = 0; - - /** - Commands that can be invoked by a job. - @short Commands that can be invoked by a job. - */ - public static final int CMD_HOST = '0'; - public static final int CMD_CONNECT = '1'; - public static final int CMD_DISCONNECT = '2'; - public static final int CMD_SLAVE_STATUS = '3'; - public static final int CMD_SLAVE_CONNECT = '4'; - public static final int CMD_SLAVE_HOLD = '5'; - public static final int CMD_NONE = 'A'; - public static final int CMD_TESTDIR = 'B'; - public static final int CMD_GET = 'C'; - public static final int CMD_PUT = 'D'; - public static final int CMD_STAT = 'E'; - public static final int CMD_MIMETYPE = 'F'; - public static final int CMD_LISTDIR = 'G'; - public static final int CMD_MKDIR = 'H'; - public static final int CMD_RENAME = 'I'; - public static final int CMD_COPY = 'J'; - public static final int CMD_DEL = 'K'; - public static final int CMD_CHMOD = 'L'; - public static final int CMD_SPECIAL = 'M'; - public static final int CMD_USERPASS = 'N'; - public static final int CMD_REPARSECONFIGURATION = 'O'; - public static final int CMD_META_DATA = 'P'; - public static final int CMD_SYMLINK = 'Q'; - public static final int CMD_SUBURL = 'R'; - public static final int CMD_MESSAGEBOXANSWER = 'S'; - public static final int CMD_RESUMEANSWER = 'T'; - public static final int CMD_CONFIG = 'U'; - public static final int CMD_MULTI_GET = 'V'; - - /** - Error codes that can be emitted by KIO. - @short Error codes that can be emitted by KIO. - */ - public static final int ERR_CANNOT_OPEN_FOR_READING = 1; - public static final int ERR_CANNOT_OPEN_FOR_WRITING = 2; - public static final int ERR_CANNOT_LAUNCH_PROCESS = 3; - public static final int ERR_INTERNAL = 4; - public static final int ERR_MALFORMED_URL = 5; - public static final int ERR_UNSUPPORTED_PROTOCOL = 6; - public static final int ERR_NO_SOURCE_PROTOCOL = 7; - public static final int ERR_UNSUPPORTED_ACTION = 8; - public static final int ERR_IS_DIRECTORY = 9; - public static final int ERR_IS_FILE = 10; - public static final int ERR_DOES_NOT_EXIST = 11; - public static final int ERR_FILE_ALREADY_EXIST = 12; - public static final int ERR_DIR_ALREADY_EXIST = 13; - public static final int ERR_UNKNOWN_HOST = 14; - public static final int ERR_ACCESS_DENIED = 15; - public static final int ERR_WRITE_ACCESS_DENIED = 16; - public static final int ERR_CANNOT_ENTER_DIRECTORY = 17; - public static final int ERR_PROTOCOL_IS_NOT_A_FILESYSTEM = 18; - public static final int ERR_CYCLIC_LINK = 19; - public static final int ERR_USER_CANCELED = 20; - public static final int ERR_CYCLIC_COPY = 21; - public static final int ERR_COULD_NOT_CREATE_SOCKET = 22; - public static final int ERR_COULD_NOT_CONNECT = 23; - public static final int ERR_CONNECTION_BROKEN = 24; - public static final int ERR_NOT_FILTER_PROTOCOL = 25; - public static final int ERR_COULD_NOT_MOUNT = 26; - public static final int ERR_COULD_NOT_UNMOUNT = 27; - public static final int ERR_COULD_NOT_READ = 28; - public static final int ERR_COULD_NOT_WRITE = 29; - public static final int ERR_COULD_NOT_BIND = 30; - public static final int ERR_COULD_NOT_LISTEN = 31; - public static final int ERR_COULD_NOT_ACCEPT = 32; - public static final int ERR_COULD_NOT_LOGIN = 33; - public static final int ERR_COULD_NOT_STAT = 34; - public static final int ERR_COULD_NOT_CLOSEDIR = 35; - public static final int ERR_COULD_NOT_MKDIR = 37; - public static final int ERR_COULD_NOT_RMDIR = 38; - public static final int ERR_CANNOT_RESUME = 39; - public static final int ERR_CANNOT_RENAME = 40; - public static final int ERR_CANNOT_CHMOD = 41; - public static final int ERR_CANNOT_DELETE = 42; - public static final int ERR_SLAVE_DIED = 43; - public static final int ERR_OUT_OF_MEMORY = 44; - public static final int ERR_UNKNOWN_PROXY_HOST = 45; - public static final int ERR_COULD_NOT_AUTHENTICATE = 46; - public static final int ERR_ABORTED = 47; - public static final int ERR_INTERNAL_SERVER = 48; - public static final int ERR_SERVER_TIMEOUT = 49; - public static final int ERR_SERVICE_NOT_AVAILABLE = 50; - public static final int ERR_UNKNOWN = 51; - public static final int ERR_UNKNOWN_INTERRUPT = 53; - public static final int ERR_CANNOT_DELETE_ORIGINAL = 54; - public static final int ERR_CANNOT_DELETE_PARTIAL = 55; - public static final int ERR_CANNOT_RENAME_ORIGINAL = 56; - public static final int ERR_CANNOT_RENAME_PARTIAL = 57; - public static final int ERR_NEED_PASSWD = 58; - public static final int ERR_CANNOT_SYMLINK = 59; - public static final int ERR_NO_CONTENT = 60; - public static final int ERR_DISK_FULL = 61; - public static final int ERR_IDENTICAL_FILES = 62; - public static final int ERR_SLAVE_DEFINED = 63; - public static final int ERR_UPGRADE_REQUIRED = 64; - public static final int ERR_POST_DENIED = 65; - - /** - Constants used to specify the type of a KUDSAtom. - @short Constants used to specify the type of a KUDSAtom. - */ - public static final int UDS_STRING = 1; - public static final int UDS_LONG = 2; - public static final int UDS_TIME = 4|UDS_LONG; - public static final int UDS_SIZE = 8|UDS_LONG; - public static final int UDS_SIZE_LARGE = 32768|UDS_LONG; - public static final int UDS_USER = 16|UDS_STRING; - public static final int UDS_ICON_NAME = 24|UDS_STRING; - public static final int UDS_GROUP = 32|UDS_STRING; - public static final int UDS_EXTRA = 48|UDS_STRING; - public static final int UDS_NAME = 64|UDS_STRING; - public static final int UDS_LOCAL_PATH = 72|UDS_STRING; - public static final int UDS_HIDDEN = 80|UDS_LONG; - public static final int UDS_EXTENDED_ACL = 88|UDS_LONG; - public static final int UDS_ACL_STRING = 96|UDS_STRING; - public static final int UDS_DEFAULT_ACL_STRING = 104|UDS_STRING; - public static final int UDS_ACCESS = 128|UDS_LONG; - public static final int UDS_MODIFICATION_TIME = 256|UDS_TIME; - public static final int UDS_ACCESS_TIME = 512|UDS_TIME; - public static final int UDS_CREATION_TIME = 1024|UDS_TIME; - public static final int UDS_FILE_TYPE = 2048|UDS_LONG; - public static final int UDS_LINK_DEST = 4096|UDS_STRING; - public static final int UDS_URL = 8192|UDS_STRING; - public static final int UDS_MIME_TYPE = 16384|UDS_STRING; - public static final int UDS_GUESSED_MIME_TYPE = 16392|UDS_STRING; - public static final int UDS_XML_PROPERTIES = 0x8000|UDS_STRING; - - /** - Specifies how to use the cache. - @short Specifies how to use the cache. - @see #parseCacheControl - @see #getCacheControlString - */ - public static final int CC_CacheOnly = 0; - public static final int CC_Cache = 1; - public static final int CC_Verify = 2; - public static final int CC_Refresh = 3; - public static final int CC_Reload = 4; - - public static final int SupportsChmod = 0; - public static final int SupportsChown = 1; - public static final int SupportsUTime = 2; - public static final int SupportsSymlinks = 3; - public static final int CaseInsensitive = 4; - - /** HTTP / DAV method * @short HTTP / DAV method - */ - public static final int HTTP_GET = 0; - public static final int HTTP_PUT = 1; - public static final int HTTP_POST = 2; - public static final int HTTP_HEAD = 3; - public static final int HTTP_DELETE = 4; - public static final int HTTP_OPTIONS = 5; - public static final int DAV_PROPFIND = 6; - public static final int DAV_PROPPATCH = 7; - public static final int DAV_MKCOL = 8; - public static final int DAV_COPY = 9; - public static final int DAV_MOVE = 10; - public static final int DAV_LOCK = 11; - public static final int DAV_UNLOCK = 12; - public static final int DAV_SEARCH = 13; - public static final int DAV_SUBSCRIBE = 14; - public static final int DAV_UNSUBSCRIBE = 15; - public static final int DAV_POLL = 16; - public static final int DAV_NOTIFY = 17; - public static final int HTTP_UNKNOWN = -1; - - /** - Identifiers for KIO informational messages. - @short Identifiers for KIO informational messages. - */ - public static final int INF_TOTAL_SIZE = 10; - public static final int INF_PROCESSED_SIZE = 11; - public static final int INF_SPEED = 12; - public static final int INF_REDIRECTION = 20; - public static final int INF_MIME_TYPE = 21; - public static final int INF_ERROR_PAGE = 22; - public static final int INF_WARNING = 23; - public static final int INF_GETTING_FILE = 24; - public static final int INF_NEED_PASSWD = 25; - public static final int INF_INFOMESSAGE = 26; - public static final int INF_META_DATA = 27; - public static final int INF_NETWORK_STATUS = 28; - public static final int INF_MESSAGEBOX = 29; - - /** - Identifiers for KIO data messages. - @short Identifiers for KIO data messages. - */ - public static final int MSG_DATA = 100; - public static final int MSG_DATA_REQ = 101; - public static final int MSG_ERROR = 102; - public static final int MSG_CONNECTED = 103; - public static final int MSG_FINISHED = 104; - public static final int MSG_STAT_ENTRY = 105; - public static final int MSG_LIST_ENTRIES = 106; - public static final int MSG_RENAMED = 107; - public static final int MSG_RESUME = 108; - public static final int MSG_SLAVE_STATUS = 109; - public static final int MSG_SLAVE_ACK = 110; - public static final int MSG_NET_RETQUEST = 111; - public static final int MSG_NET_DROP = 112; - public static final int MSG_NEED_SUBURL_DATA = 113; - public static final int MSG_CANRESUME = 114; - public static final int MSG_AUTH_KEY = 115; - public static final int MSG_DEL_AUTH_KEY = 116; - - public static final int DEFAULT = 1; - public static final int STATUSBAR = 2; - public static final int LIST = 3; - - public static native int open_SkipDlg(boolean _multi, String _error_text); - public static native int open_SkipDlg(boolean _multi); - /** -
  • RenameDlg related Functions
  • - {@link KIO#RenameDlg} - Construct a modal, parent-less "rename" dialog, and return - a result code, as well as the new dest. Much easier to use than the - class RenameDlg directly. - @param caption the caption for the dialog box - @param src the URL of the file/dir we're trying to copy, as it's part of the text message - @param dest the URL of the destination file/dir, i.e. the one that already exists - @param mode parameters for the dialog (which buttons to show...), - see RenameDlg_Mode - @param newDest the new destination path, valid if R_RENAME was returned. - @param sizeSrc size of source file - @param sizeDest size of destination file - @param ctimeSrc creation time of source file - @param ctimeDest creation time of destination file - @param mtimeSrc modification time of source file - @param mtimeDest modification time of destination file - @return the result - - @short
  • RenameDlg related Functions
  • {@link KIO#RenameDlg} Construct a modal, parent-less "rename" dialog, and return a result code, as well as the new dest. - */ - public static native int open_RenameDlg(String caption, String src, String dest, int mode, StringBuffer newDestPath, long sizeSrc, long sizeDest, int ctimeSrc, int ctimeDest, int mtimeSrc, int mtimeDest); - public static native int open_RenameDlg(String caption, String src, String dest, int mode, StringBuffer newDestPath, long sizeSrc, long sizeDest, int ctimeSrc, int ctimeDest, int mtimeSrc); - public static native int open_RenameDlg(String caption, String src, String dest, int mode, StringBuffer newDestPath, long sizeSrc, long sizeDest, int ctimeSrc, int ctimeDest); - public static native int open_RenameDlg(String caption, String src, String dest, int mode, StringBuffer newDestPath, long sizeSrc, long sizeDest, int ctimeSrc); - public static native int open_RenameDlg(String caption, String src, String dest, int mode, StringBuffer newDestPath, long sizeSrc, long sizeDest); - public static native int open_RenameDlg(String caption, String src, String dest, int mode, StringBuffer newDestPath, long sizeSrc); - public static native int open_RenameDlg(String caption, String src, String dest, int mode, StringBuffer newDestPath); - public static native TQDataStream op_write(TQDataStream s, AuthInfo a); - public static native TQDataStream op_read(TQDataStream s, AuthInfo a); - /** - Converts size from bytes to the string representation. - @param size size in bytes - @return converted size as a string - e.g. 123.4 kB , 12.0 MB - - @short Converts size from bytes to the string representation. - */ - public static native String convertSize(long size); - /** - Converts size from bytes to a string representation with includes - the size in bytes. - e.g. 90 B, 240 B, 1.4 KB (1495 B), 2.6MB (2,734,344 B), 0 B - @param size size in bytes - @return converted size as a string - e.g. 1.4 KB (1495 B), 45 B - - @short Converts size from bytes to a string representation with includes the size in bytes. - */ - public static native String convertSizeWithBytes(long size); - /** - Converts a size to a string representation - Not unlike String.number(...) - @param size size in bytes - @return converted size as a string - e.g. 123456789 - - @short Converts a size to a string representation Not unlike String.number(. - */ - public static native String number(long size); - /** - Converts size from kilo-bytes to the string representation. - @param kbSize size in kilo-bytes - @return converted size as a string - e.g. 123.4 kB , 12.0 MB - - @short Converts size from kilo-bytes to the string representation. - */ - public static native String convertSizeFromKB(long kbSize); - /** - Convert seconds to a string representing number of days, hours, minutes and seconds - @param seconds number of seconds to convert - @return string representation in a locale depending format - - @short Convert seconds to a string representing number of days, hours, minutes and seconds - */ - public static native String convertSeconds(int seconds); - /** - Helper for showing information about a set of files and directories - @param items the number of items (= files + dirs + number of symlinks :) - @param files the number of files - @param dirs the number of dirs - @param size the sum of the size of the files - @param showSize whether to show the size in the result - @return the summary string - - @short Helper for showing information about a set of files and directories - */ - public static native String itemsSummaryString(int items, int files, int dirs, long size, boolean showSize); - /** - Encodes (from the text displayed to the real filename) - This translates % into %% and / into %2f - Used by KIO.link, for instance. - @param str the file name to encode - @return the encoded file name - - @short Encodes (from the text displayed to the real filename) This translates % into %% and / into %2f Used by KIO.link, for instance. - */ - public static native String encodeFileName(String str); - /** - Decodes (from the filename to the text displayed) - This translates %2[fF] into / and %% into % - @param str the file name to decode - @return the decoded file name - - @short Decodes (from the filename to the text displayed) This translates %2[fF] into / and %% into % - */ - public static native String decodeFileName(String str); - /** - Returns a translated error message for errorCode using the - additional error information provided by errorText. - @param errorCode the error code - @param errorText the additional error text - @return the created error string - - @short Returns a translated error message for errorCode using the additional error information provided by errorText. - */ - public static native String buildErrorString(int errorCode, String errorText); - /** - Returns translated error details for errorCode using the - additional error information provided by errorText , reqUrl - (the request URL), and the ioslave method . - @param errorCode the error code - @param errorText the additional error text - @param reqUrl the request URL - @param method the ioslave method - -
  • - String errorName - the name of the error -
  • - -
  • - String techName - if not null, the more technical name of the error -
  • - -
  • - String description - a description of the error -
  • - -
  • - ArrayList causes - a list of possible causes of the error -
  • - -
  • - ArrayList solutions - a liso of solutions for the error - -
  • @return the following data: - - @short Returns translated error details for errorCode using the additional error information provided by errorText , reqUrl (the request URL), and the ioslave method . - */ - public static native byte[] rawErrorDetail(int errorCode, String errorText, KURL reqUrl, int method); - public static native byte[] rawErrorDetail(int errorCode, String errorText, KURL reqUrl); - public static native byte[] rawErrorDetail(int errorCode, String errorText); - /** - Returns an appropriate error message if the given command cmd - is an unsupported action (ERR_UNSUPPORTED_ACTION). - @param protocol name of the protocol - @param cmd given command - @short Returns an appropriate error message if the given command cmd is an unsupported action (ERR_UNSUPPORTED_ACTION). - @see #enum - @see Command - */ - public static native String unsupportedActionErrorString(String protocol, int cmd); - /** - Parses the string representation of the cache control option. - @param cacheControl the string representation - @return the cache control value - - @short Parses the string representation of the cache control option. - @see #getCacheControlString - */ - public static native int parseCacheControl(String cacheControl); - /** - Returns a string representation of the given cache control method. - @param cacheControl the cache control method - @return the string representation - - @short Returns a string representation of the given cache control method. - @see #parseCacheControl - */ - public static native String getCacheControlString(int cacheControl); - /** - Returns the mount point where device is mounted - right now. This means, it has to be mounted, not just - defined in fstab. - @short Returns the mount point where device is mounted right now. - */ - public static native String findDeviceMountPoint(String device); - /** - Returns the mount point on which resides filename. - For instance if /home is a separate partition, findPathMountPoint("/home/user/blah") - will return /home - @param filename the file name to check - @return the mount point of the given filename - - @short Returns the mount point on which resides filename. - */ - public static native String findPathMountPoint(String filename); - /** - Checks if the path belongs to a filesystem that is probably - slow. It checks for NFS or for paths belonging to automounted - paths not yet mounted - @param filename the file name to check - @return true if the filesystem is probably slow - - @short Checks if the path belongs to a filesystem that is probably slow. - */ - public static native boolean probably_slow_mounted(String filename); - /** - Checks if the path belongs to a filesystem that is manually - mounted. - @param filename the file name to check - @return true if the filesystem is manually mounted - - @short Checks if the path belongs to a filesystem that is manually mounted. - */ - public static native boolean manually_mounted(String filename); - /** - Checks the capabilities of the filesystem to which a given file belongs. - given feature (e.g. chmod). - @param filename the file name to check - @param flag the flag to check - The availables flags are: - -
  • - SupportsChmod: returns true if the filesystem supports chmod - (e.g. msdos filesystems return false) -
  • - -
  • - SupportsChown: returns true if the filesystem supports chown - (e.g. msdos filesystems return false) -
  • - -
  • - SupportsUtime: returns true if the filesystems supports utime - (e.g. msdos filesystems return false) -
  • - -
  • - SupportsSymlinks: returns true if the filesystems supports symlinks - (e.g. msdos filesystems return false) -
  • - -
  • - CaseInsensitive: returns true if the filesystem treats - "foo" and "FOO" as being the same file (true for msdos systems) -
  • - @return true if the filesystem has that flag, false if not (or some error occurred) - - @short Checks the capabilities of the filesystem to which a given file belongs. - */ - public static native boolean testFileSystemFlag(String filename, int flag); - /** - Creates a PreviewJob to generate or retrieve a preview image - for the given URL. - @param items files to get previews for - @param width the maximum width to use - @param height the maximum height to use, if this is 0, the same - value as width is used. - @param iconSize the size of the mimetype icon to overlay over the - preview or zero to not overlay an icon. This has no effect if the - preview plugin that will be used doesn't use icon overlays. - @param iconAlpha transparency to use for the icon overlay - @param scale if the image is to be scaled to the requested size or - returned in its original size - @param save if the image should be cached for later use - @param enabledPlugins if non-zero, this points to a list containing - the names of the plugins that may be used. - @return the new PreviewJob - - @short Creates a PreviewJob to generate or retrieve a preview image for the given URL. - @see PreviewJob#availablePlugins - */ - public static native PreviewJob filePreview(ArrayList items, int width, int height, int iconSize, int iconAlpha, boolean scale, boolean save, String[] enabledPlugins); - public static native PreviewJob filePreview(ArrayList items, int width, int height, int iconSize, int iconAlpha, boolean scale, boolean save); - public static native PreviewJob filePreview(ArrayList items, int width, int height, int iconSize, int iconAlpha, boolean scale); - public static native PreviewJob filePreview(ArrayList items, int width, int height, int iconSize, int iconAlpha); - public static native PreviewJob filePreview(ArrayList items, int width, int height, int iconSize); - public static native PreviewJob filePreview(ArrayList items, int width, int height); - public static native PreviewJob filePreview(ArrayList items, int width); - /** - Creates a new DavJob that issues a PROPFIND command. PROPFIND retrieves - the properties of the resource identified by the given url. - @param url the URL of the resource - @param properties a propfind document that describes the properties that - should be retrieved - @param depth the depth of the request. Can be "0", "1" or "infinity" - @param showProgressInfo true to show progress information - @return the new DavJob - - @short Creates a new DavJob that issues a PROPFIND command. - */ - public static native DavJob davPropFind(KURL url, TQDomDocument properties, String depth, boolean showProgressInfo); - public static native DavJob davPropFind(KURL url, TQDomDocument properties, String depth); - /** - Creates a new DavJob that issues a PROPPATCH command. PROPPATCH sets - the properties of the resource identified by the given url. - @param url the URL of the resource - @param properties a PROPPACTCH document that describes the properties that - should be modified and its new values - @param showProgressInfo true to show progress information - @return the new DavJob - - @short Creates a new DavJob that issues a PROPPATCH command. - */ - public static native DavJob davPropPatch(KURL url, TQDomDocument properties, boolean showProgressInfo); - public static native DavJob davPropPatch(KURL url, TQDomDocument properties); - /** - Creates a new DavJob that issues a SEARCH command. - @param url the URL of the resource - @param nsURI the URI of the search method's qualified name - @param qName the local part of the search method's qualified name - @param query the search string - @param showProgressInfo true to show progress information - @return the new DavJob - - @short Creates a new DavJob that issues a SEARCH command. - */ - public static native DavJob davSearch(KURL url, String nsURI, String qName, String query, boolean showProgressInfo); - public static native DavJob davSearch(KURL url, String nsURI, String qName, String query); - /** - Retrieves meta information for the given items. - @param items files to get metainfo for - @return the MetaInfoJob to retrieve the items - - @short Retrieves meta information for the given items. - */ - public static native MetaInfoJob fileMetaInfo(ArrayList items); - /** - Creates a single directory. - @param url The URL of the directory to create. - @param permissions The permissions to set after creating the - directory (unix-style), -1 for default permissions. - @return A pointer to the job handling the operation. - - @short Creates a single directory. - */ - public static native SimpleJob mkdir(KURL url, int permissions); - public static native SimpleJob mkdir(KURL url); - /** - Removes a single directory. - The directory is assumed to be empty. - @param url The URL of the directory to remove. - @return A pointer to the job handling the operation. - - @short Removes a single directory. - */ - public static native SimpleJob rmdir(KURL url); - /** - Changes permissions on a file or directory. - See the other chmod below for changing many files - or directories. - @param url The URL of file or directory. - @param permissions The permissions to set. - @return the job handling the operation. - - @short Changes permissions on a file or directory. - */ - public static native SimpleJob chmod(KURL url, int permissions); - /** - Rename a file or directory. - Warning: this operation fails if a direct renaming is not - possible (like with files or dirs on separate partitions) - Use move or file_move in this case. - @param src The original URL - @param dest The final URL - @param overwrite whether to automatically overwrite if the dest exists - @return the job handling the operation. - - @short Rename a file or directory. - */ - public static native SimpleJob rename(KURL src, KURL dest, boolean overwrite); - /** - Create or move a symlink. - This is the lowlevel operation, similar to file_copy and file_move. - It doesn't do any check (other than those the slave does) - and it doesn't show rename and skip dialogs - use KIO.link for that. - @param target The string that will become the "target" of the link (can be relative) - @param dest The symlink to create. - @param overwrite whether to automatically overwrite if the dest exists - @param showProgressInfo true to show progress information - @return the job handling the operation. - - @short Create or move a symlink. - */ - public static native SimpleJob symlink(String target, KURL dest, boolean overwrite, boolean showProgressInfo); - public static native SimpleJob symlink(String target, KURL dest, boolean overwrite); - /** - Execute any command that is specific to one slave (protocol). - Examples are : HTTP POST, mount and unmount (kio_file) - @param url The URL isn't passed to the slave, but is used to know - which slave to send it to :-) - @param data Packed data. The meaning is completely dependent on the - slave, but usually starts with an int for the command number. - @param showProgressInfo true to show progress information - @return the job handling the operation. - - @short Execute any command that is specific to one slave (protocol). - */ - public static native SimpleJob special(KURL url, byte[] data, boolean showProgressInfo); - public static native SimpleJob special(KURL url, byte[] data); - /** - Mount filesystem. - Special job for kio_file. - @param ro Mount read-only if true. - @param fstype File system type (e.g. "ext2", can be null). - @param dev Device (e.g. /dev/sda0). - @param point Mount point, can be null. - @param showProgressInfo true to show progress information - @return the job handling the operation. - - @short Mount filesystem. - */ - public static native SimpleJob mount(boolean ro, String fstype, String dev, String point, boolean showProgressInfo); - public static native SimpleJob mount(boolean ro, String fstype, String dev, String point); - /** - Unmount filesystem. - Special job for kio_file. - @param point Point to unmount. - @param showProgressInfo true to show progress information - @return the job handling the operation. - - @short Unmount filesystem. - */ - public static native SimpleJob unmount(String point, boolean showProgressInfo); - public static native SimpleJob unmount(String point); - /** - HTTP cache update - @param url Url to update, protocol must be "http". - @param no_cache If true, cache entry for url is deleted. - @param expireDate Local machine time indicating when the entry is - supposed to expire. - @return the job handling the operation. - - @short HTTP cache update - */ - public static native SimpleJob http_update_cache(KURL url, boolean no_cache, int expireDate); - /** - Find all details for one file or directory. - @param url the URL of the file - @param showProgressInfo true to show progress information - @return the job handling the operation. - - @short Find all details for one file or directory. - */ - public static native StatJob stat(KURL url, boolean showProgressInfo); - public static native StatJob stat(KURL url); - /** - Find all details for one file or directory. - This version of the call includes two additional booleaneans, sideIsSource and details. - @param url the URL of the file - @param sideIsSource is true when stating a source file (we will do a get on it if - the stat works) and false when stating a destination file (target of a copy). - The reason for this parameter is that in some cases the kioslave might not - be able to determine a file's existence (e.g. HTTP doesn't allow it, FTP - has issues with case-sensitivity on some systems). - When the slave can't reliably determine the existence of a file, it will: - -
  • - be optimistic if sideIsSource=true, i.e. it will assume the file exists, - and if it doesn't this will appear when actually trying to download it -
  • - -
  • - be pessimistic if sideIsSource=false, i.e. it will assume the file - doesn't exist, to prevent showing "about to overwrite" errors to the user. - If you simply want to check for existence without downloading/uploading afterwards, - then you should use sideIsSource=false. -
  • - @param details selects the level of details we want. - By default this is 2 (all details wanted, including modification time, size, etc.), - setDetails(1) is used when deleting: we don't need all the information if it takes - too much time, no need to follow symlinks etc. - setDetails(0) is used for very simple probing: we'll only get the answer - "it's a file or a directory, or it doesn't exist". This is used by KRun. - @param showProgressInfo true to show progress information - @return the job handling the operation. - - @short Find all details for one file or directory. - */ - public static native StatJob stat(KURL url, boolean sideIsSource, short details, boolean showProgressInfo); - public static native StatJob stat(KURL url, boolean sideIsSource, short details); - /** - Get (a.k.a. read). - The slave emits the data through data(). - @param url the URL of the file - @param reload true to reload the file, false if it can be taken from the cache - @param showProgressInfo true to show progress information - @return the job handling the operation. - - @short Get (a. - */ - public static native TransferJob get(KURL url, boolean reload, boolean showProgressInfo); - public static native TransferJob get(KURL url, boolean reload); - public static native TransferJob get(KURL url); - /** - Put (a.k.a. write) - @param url Where to write data. - @param permissions May be -1. In this case no special permission mode is set. - @param overwrite If true, any existing file will be overwritten. - @param resume true to resume an operation. Warning, setting this to true means - that the data will be appended to dest if dest exists. - @param showProgressInfo true to show progress information - @return the job handling the operation. - - @short Put (a. - @see #multi_get - */ - public static native TransferJob put(KURL url, int permissions, boolean overwrite, boolean resume, boolean showProgressInfo); - public static native TransferJob put(KURL url, int permissions, boolean overwrite, boolean resume); - /** - HTTP POST (for form data). - Example: -
    -		    job = KIO.http_post( url, postData, false );
    -		    job.addMetaData("content-type", contentType );
    -		    job.addMetaData("referrer", referrerURL);
    -		 
    - postData is the data that you want to send and - contentType is the complete HTTP header line that - specifies the content's MIME type, for example - "Content-Type: text/xml". - You MUST specify content-type! - Often contentType is - "Content-Type: application/x-www-form-urlencoded" and - the postData is then an ASCII string (without null-termination!) - with characters like space, linefeed and percent escaped like %20, - %0A and %25. - @param url Where to write the data. - @param postData Encoded data to post. - @param showProgressInfo true to display - @return the job handling the operation. - - @short HTTP POST (for form data). - */ - public static native TransferJob http_post(KURL url, byte[] postData, boolean showProgressInfo); - public static native TransferJob http_post(KURL url, byte[] postData); - /** - Get (a.k.a. read), into a single byte[]. - @param url the URL of the file - @param reload true to reload the file, false if it can be taken from the cache - @param showProgressInfo true to show progress information - @return the job handling the operation. - - @short Get (a. - @see StoredTransferJob - */ - public static native StoredTransferJob storedGet(KURL url, boolean reload, boolean showProgressInfo); - public static native StoredTransferJob storedGet(KURL url, boolean reload); - public static native StoredTransferJob storedGet(KURL url); - /** - Put (a.k.a. write) data from a single byte[]. - @param arr The data to write - @param url Where to write data. - @param permissions May be -1. In this case no special permission mode is set. - @param overwrite If true, any existing file will be overwritten. - @param resume true to resume an operation. Warning, setting this to true means - that the data will be appended to dest if dest exists. - @param showProgressInfo true to show progress information - @return the job handling the operation. - - @short Put (a. - @see StoredTransferJob - */ - public static native StoredTransferJob storedPut(byte[] arr, KURL url, int permissions, boolean overwrite, boolean resume, boolean showProgressInfo); - public static native StoredTransferJob storedPut(byte[] arr, KURL url, int permissions, boolean overwrite, boolean resume); - /** - Creates a new multiple get job. - @param id the id of the get operation - @param url the URL of the file - @param metaData the MetaData associated with the file - @return the job handling the operation. - - @short Creates a new multiple get job. - @see #get - */ - // TDEIO::MultiGetJob* multi_get(long arg1,const KURL& arg2,const TDEIO::MetaData& arg3); >>>> NOT CONVERTED - /** - Find mimetype for one file or directory. - @param url the URL of the file - @param showProgressInfo true to show progress information - @return the job handling the operation. - - @short Find mimetype for one file or directory. - */ - public static native MimetypeJob mimetype(KURL url, boolean showProgressInfo); - public static native MimetypeJob mimetype(KURL url); - /** - Copy a single file. - Uses either SlaveBase.copy() if the slave supports that - or get() and put() otherwise. - @param src Where to get the file. - @param dest Where to put the file. - @param permissions May be -1. In this case no special permission mode is set. - @param overwrite If true, any existing file will be overwritten. - @param resume true to resume an operation. Warning, setting this to true means - that src will be appended to dest if dest exists. - You probably don't want that, so leave it to false :) - @param showProgressInfo true to show progress information - @return the job handling the operation. - - @short Copy a single file. - */ - public static native FileCopyJob file_copy(KURL src, KURL dest, int permissions, boolean overwrite, boolean resume, boolean showProgressInfo); - public static native FileCopyJob file_copy(KURL src, KURL dest, int permissions, boolean overwrite, boolean resume); - public static native FileCopyJob file_copy(KURL src, KURL dest, int permissions, boolean overwrite); - public static native FileCopyJob file_copy(KURL src, KURL dest, int permissions); - public static native FileCopyJob file_copy(KURL src, KURL dest); - /** - Move a single file. - Use either SlaveBase.rename() if the slave supports that, - or copy() and del() otherwise, or eventually get() & put() & del() - @param src Where to get the file. - @param dest Where to put the file. - @param permissions May be -1. In this case no special permission mode is set. - @param overwrite If true, any existing file will be overwritten. - @param resume true to resume an operation. Warning, setting this to true means - that src will be appended to dest if dest exists. - You probably don't want that, so leave it to false :) - @param showProgressInfo true to show progress information - @return the job handling the operation. - - @short Move a single file. - */ - public static native FileCopyJob file_move(KURL src, KURL dest, int permissions, boolean overwrite, boolean resume, boolean showProgressInfo); - public static native FileCopyJob file_move(KURL src, KURL dest, int permissions, boolean overwrite, boolean resume); - public static native FileCopyJob file_move(KURL src, KURL dest, int permissions, boolean overwrite); - public static native FileCopyJob file_move(KURL src, KURL dest, int permissions); - public static native FileCopyJob file_move(KURL src, KURL dest); - /** - Delete a single file. - @param src File to delete. - @param showProgressInfo true to show progress information - @return the job handling the operation. - - @short Delete a single file. - */ - public static native SimpleJob file_delete(KURL src, boolean showProgressInfo); - public static native SimpleJob file_delete(KURL src); - /** - List the contents of url, which is assumed to be a directory. - "." and ".." are returned, filter them out if you don't want them. - @param url the url of the directory - @param showProgressInfo true to show progress information - @param includeHidden true for all files, false to cull out UNIX hidden - files/dirs (whose names start with dot) - @return the job handling the operation. - - @short List the contents of url, which is assumed to be a directory. - */ - public static native ListJob listDir(KURL url, boolean showProgressInfo, boolean includeHidden); - public static native ListJob listDir(KURL url, boolean showProgressInfo); - public static native ListJob listDir(KURL url); - /** - The same as the previous method, but recurses subdirectories. - Directory links are not followed. - "." and ".." are returned but only for the toplevel directory. - Filter them out if you don't want them. - @param url the url of the directory - @param showProgressInfo true to show progress information - @param includeHidden true for all files, false to cull out UNIX hidden - files/dirs (whose names start with dot) - @return the job handling the operation. - - @short The same as the previous method, but recurses subdirectories. - */ - public static native ListJob listRecursive(KURL url, boolean showProgressInfo, boolean includeHidden); - public static native ListJob listRecursive(KURL url, boolean showProgressInfo); - public static native ListJob listRecursive(KURL url); - /** - Copy a file or directory src into the destination dest, - which can be a file (including the final filename) or a directory - (into which src will be copied). - This emulates the cp command completely. - @param src the file or directory to copy - @param dest the destination - @param showProgressInfo true to show progress information - @return the job handling the operation - - @short Copy a file or directory src into the destination dest, which can be a file (including the final filename) or a directory (into which src will be copied). - @see #copyAs - */ - public static native CopyJob copy(KURL src, KURL dest, boolean showProgressInfo); - public static native CopyJob copy(KURL src, KURL dest); - /** - Copy a file or directory src into the destination dest, - which is the destination name in any case, even for a directory. - As opposed to copy(), this doesn't emulate cp, but is the only - way to copy a directory, giving it a new name and getting an error - box if a directory already exists with the same name. - @param src the file or directory to copy - @param dest the destination - @param showProgressInfo true to show progress information - @return the job handling the operation - - @short Copy a file or directory src into the destination dest, which is the destination name in any case, even for a directory. - */ - public static native CopyJob copyAs(KURL src, KURL dest, boolean showProgressInfo); - public static native CopyJob copyAs(KURL src, KURL dest); - /** - Copy a list of file/dirs src into a destination directory dest. - @param src the list of files and/or directories - @param dest the destination - @param showProgressInfo true to show progress information - @return the job handling the operation - - @short Copy a list of file/dirs src into a destination directory dest. - */ - public static native CopyJob copy(ArrayList src, KURL dest, boolean showProgressInfo); - public static native CopyJob copy(ArrayList src, KURL dest); - /** - Moves a file or directory src to the given destination dest. - @param src the file or directory to copy - @param dest the destination - @param showProgressInfo true to show progress information - @return the job handling the operation - - @short Moves a file or directory src to the given destination dest. - @see #copy - @see #moveAs - */ - public static native CopyJob move(KURL src, KURL dest, boolean showProgressInfo); - public static native CopyJob move(KURL src, KURL dest); - /** - Moves a file or directory src to the given destination dest. Unlike move() - this operation will fail when the directory already exists. - @param src the file or directory to copy - @param dest the destination - @param showProgressInfo true to show progress information - @return the job handling the operation - - @short Moves a file or directory src to the given destination dest. - @see #copyAs - */ - public static native CopyJob moveAs(KURL src, KURL dest, boolean showProgressInfo); - public static native CopyJob moveAs(KURL src, KURL dest); - /** - Moves a list of files or directories src to the given destination dest. - @param src the list of files or directories to copy - @param dest the destination - @param showProgressInfo true to show progress information - @return the job handling the operation - - @short Moves a list of files or directories src to the given destination dest. - @see #copy - */ - public static native CopyJob move(ArrayList src, KURL dest, boolean showProgressInfo); - public static native CopyJob move(ArrayList src, KURL dest); - /** - Create a link. - If the protocols and hosts are the same, a Unix symlink will be created. - Otherwise, a .desktop file of Type Link and pointing to the src URL will be created. - @param src The existing file or directory, 'target' of the link. - @param destDir Destination directory where the link will be created. - @param showProgressInfo true to show progress information - @return the job handling the operation - - @short Create a link. - */ - public static native CopyJob link(KURL src, KURL destDir, boolean showProgressInfo); - public static native CopyJob link(KURL src, KURL destDir); - /** - Create several links - If the protocols and hosts are the same, a Unix symlink will be created. - Otherwise, a .desktop file of Type Link and pointing to the src URL will be created. - @param src The existing files or directories, 'targets' of the link. - @param destDir Destination directory where the links will be created. - @param showProgressInfo true to show progress information - @return the job handling the operation - - @short Create several links If the protocols and hosts are the same, a Unix symlink will be created. - @see #link - */ - public static native CopyJob link(ArrayList src, KURL destDir, boolean showProgressInfo); - public static native CopyJob link(ArrayList src, KURL destDir); - /** - Create a link. Unlike link() this operation will fail when the directory already - exists. - If the protocols and hosts are the same, a Unix symlink will be created. - Otherwise, a .desktop file of Type Link and pointing to the src URL will be created. - @param src The existing file or directory, 'target' of the link. - @param dest Destination directory where the link will be created. - @param showProgressInfo true to show progress information - @return the job handling the operation - - @short Create a link. - @see #link - @see #copyAs - */ - public static native CopyJob linkAs(KURL src, KURL dest, boolean showProgressInfo); - public static native CopyJob linkAs(KURL src, KURL dest); - /** - Trash a file or directory. - This is currently only supported for local files and directories. - Use "KURL src; src.setPath( path );" to create a URL from a path. - @param src file to delete - @param showProgressInfo true to show progress information - @return the job handling the operation - - @short Trash a file or directory. - */ - public static native CopyJob trash(KURL src, boolean showProgressInfo); - public static native CopyJob trash(KURL src); - /** - Trash a list of files or directories. - This is currently only supported for local files and directories. - @param src the files to delete - @param showProgressInfo true to show progress information - @return the job handling the operation - - @short Trash a list of files or directories. - */ - public static native CopyJob trash(ArrayList src, boolean showProgressInfo); - public static native CopyJob trash(ArrayList src); - /** - Delete a file or directory. - @param src file to delete - @param shred obsolete (TODO remove in KDE4) - @param showProgressInfo true to show progress information - @return the job handling the operation - - @short Delete a file or directory. - */ - public static native DeleteJob del(KURL src, boolean shred, boolean showProgressInfo); - public static native DeleteJob del(KURL src, boolean shred); - public static native DeleteJob del(KURL src); - /** - Deletes a list of files or directories. - @param src the files to delete - @param shred obsolete (TODO remove in KDE4) - @param showProgressInfo true to show progress information - @return the job handling the operation - - @short Deletes a list of files or directories. - */ - public static native DeleteJob del(ArrayList src, boolean shred, boolean showProgressInfo); - public static native DeleteJob del(ArrayList src, boolean shred); - public static native DeleteJob del(ArrayList src); - /** - Pastes the content of the clipboard to the given destination URL. - URLs are treated separately (performing a file copy) - from other data (which is saved into a file after asking the user - to choose a filename and the preferred data format) - @param destURL the URL to receive the data - @param move true to move the data, false to copy - @return the job that handles the operation - - @short Pastes the content of the clipboard to the given destination URL. - @see #pasteData - */ - public static native Job pasteClipboard(KURL destURL, boolean move); - public static native Job pasteClipboard(KURL destURL); - /** - Pastes the given data to the given destination URL. - NOTE: This method is blocking (uses NetAccess for saving the data). - Please consider using pasteDataAsync instead. - @param destURL the URL of the directory where the data will be pasted. - The filename to use in that directory is prompted by this method. - @param data the data to copy - @short Pastes the given data to the given destination URL. - @see #pasteClipboard - */ - public static native void pasteData(KURL destURL, byte[] data); - /** - Pastes the given data to the given destination URL. - Note that this method requires the caller to have chosen the byte[] - to paste before hand, unlike pasteClipboard and pasteMimeSource. - @param destURL the URL of the directory where the data will be pasted. - The filename to use in that directory is prompted by this method. - @param data the data to copy - @short Pastes the given data to the given destination URL. - @see #pasteClipboard - */ - public static native CopyJob pasteDataAsync(KURL destURL, byte[] data); - /** - Pastes the given data to the given destination URL. - Note that this method requires the caller to have chosen the byte[] - to paste before hand, unlike pasteClipboard and pasteMimeSource. - @param destURL the URL of the directory where the data will be pasted. - The filename to use in that directory is prompted by this method. - @param data the data to copy - @param dialogText the text to show in the dialog - @short Pastes the given data to the given destination URL. - @see #pasteClipboard - */ - public static native CopyJob pasteDataAsync(KURL destURL, byte[] data, String dialogText); - /** - Save the given mimesource data to the given destination URL - after offering the user to choose a data format. - This is the method used when handling drops (of anything else than URLs) - onto kdesktop and konqueror. - @param data the TQMimeSource (e.g. a TQDropEvent) - @param destURL the URL of the directory where the data will be pasted. - The filename to use in that directory is prompted by this method. - @param dialogText the text to show in the dialog - @param widget parent widget to use for dialogs - @param clipboard whether the TQMimeSource comes from TQClipboard. If you - use pasteClipboard for that case, you never have to worry about this parameter. - @short Save the given mimesource data to the given destination URL after offering the user to choose a data format. - @see #pasteClipboard - */ - public static native CopyJob pasteMimeSource(TQMimeSourceInterface data, KURL destURL, String dialogText, TQWidget widget, boolean clipboard); - public static native CopyJob pasteMimeSource(TQMimeSourceInterface data, KURL destURL, String dialogText, TQWidget widget); - /** - Checks whether the clipboard contains any URLs. - @return true if not - Not used anymore, wrong method name, so it will disappear in KDE4. - - @short Checks whether the clipboard contains any URLs. - */ - public static native boolean isClipboardEmpty(); - /** - Returns the text to use for the Paste action, when the application supports - pasting files, urls, and clipboard data, using pasteClipboard(). - @return a string suitable for KAction.setText, or an empty string if pasting - isn't possible right now. - - @short Returns the text to use for the Paste action, when the application supports pasting files, urls, and clipboard data, using pasteClipboard(). - */ - public static native String pasteActionText(); -} diff --git a/kdejava/koala/org/kde/koala/Makefile.am b/kdejava/koala/org/kde/koala/Makefile.am index 8f80ea55..e2dc5b96 100644 --- a/kdejava/koala/org/kde/koala/Makefile.am +++ b/kdejava/koala/org/kde/koala/Makefile.am @@ -1,7 +1,7 @@ ####### tdevelop will overwrite this part!!! (begin)########## -EXTRA_DIST = TDEGlobal.java KMdiToolViewAccessor.java BrowserExtension.java DCOPClient.java DCOPObject.java DCOPObjectInterface.java DCOPObjectProxy.java KAboutApplication.java KAboutContainer.java TDEAboutData.java KAboutDialog.java KAboutKDE.java KAboutPerson.java KAboutWidget.java KAccel.java KAction.java KActionCollection.java KActionMenu.java KActionSeparator.java KAnimWidget.java TDEApplication.java KAudioPlayer.java KAuthIcon.java KBugReport.java KButtonBox.java TDECModule.java KCharSelect.java KCharSelectTable.java KCharsets.java TDECmdLineArgs.java KColorButton.java KColorCombo.java KColorDrag.java KCombiView.java KComboBox.java KCompletion.java KCompletionBase.java KCompletionBaseInterface.java TDEConfig.java TDEConfigBackEnd.java TDEConfigBase.java TDEConfigGroupSaver.java TDEConfigINIBackEnd.java KContextMenuManager.java KCursor.java KDCOPActionProxy.java KDCOPPropertyProxy.java KDEDesktopMimeType.java KDatePicker.java KDateTable.java KDateValidator.java KDesktopFile.java KDialog.java KDialogBase.java KDirOperator.java KDirWatch.java KDockWidgetAbstractHeader.java KDockWidgetAbstractHeaderDrag.java KDockWidgetHeader.java KDockWidgetHeaderDrag.java KDoubleNumInput.java KDualColorButton.java KEdFind.java KEdGotoLine.java KEdReplace.java KEditToolbar.java KEditToolbarWidget.java KEntry.java KEntryKey.java KExecMimeType.java KFile.java KFileDetailView.java KFileDialog.java KFileFilter.java KFileIconView.java KFileIconViewItem.java KFileItem.java KFileListViewItem.java KFilePreview.java KFileView.java KFileViewInterface.java KFileViewSignaler.java KFolderType.java KFontAction.java KFontChooser.java KFontDialog.java KFontSizeAction.java TDEGlobalAccel.java TDEGlobalSettings.java KGradientSelector.java KHTMLPart.java KHTMLSettings.java KHTMLView.java KHelpMenu.java KHistoryCombo.java KIPC.java KIconButton.java KIconCanvas.java KIconDialog.java KIconEffect.java KIconLoader.java KIconView.java KImageEffect.java KImageIO.java TDEInstance.java TDEInstanceInterface.java KIntNumInput.java KIntSpinBox.java KIntValidator.java KJanusWidget.java KKeyChooser.java KLed.java KLibFactory.java KLibLoader.java KLineEdit.java KListBox.java KListView.java KLocale.java KMainWindow.java KMenuBar.java KMessageBox.java KMimeType.java KNotifyClient.java KNumInput.java KOpenWithDlg.java KPalette.java KPanelApplet.java KPanelMenu.java KPasswordDialog.java KPasswordEdit.java KPixmap.java KPixmapEffect.java KPixmapIO.java KPixmapProvider.java KPopupFrame.java KPopupMenu.java KPopupTitle.java KProcIO.java TDEProcess.java TDEProcessController.java TDEProcessRunner.java KProgress.java KProtocolInfo.java KProtocolManager.java KRFCDate.java KRadioAction.java KRandomSequence.java KRecentDocument.java KRestrictedLine.java KRootPermsIcon.java KRootPixmap.java KRootProp.java KRuler.java KRun.java KSSL.java KSSLCertificate.java KSSLCertificateHome.java KSSLConnectionInfo.java KSSLInfoDlg.java KSSLPeerInfo.java KSSLSettings.java KSSLX509Map.java KSaveFile.java KSelectAction.java KSelector.java KSeparator.java KService.java KServiceGroup.java KServiceOffer.java KServiceType.java KServiceTypeProfile.java KSessionManaged.java KShared.java KShellCompletion.java KShred.java KSimpleConfig.java KSpell.java KSpellConfig.java KSpellDlg.java KStandardDirs.java KStaticDeleterBase.java KStatusBar.java KStatusBarLabel.java KStdAccel.java KStdAction.java KStringHandler.java KSycoca.java KSycocaEntry.java KSystemTray.java KTabCtl.java KTempFile.java KTextBrowser.java KToggleAction.java KToolBar.java KToolBarButton.java KToolBarRadioGroup.java KToolBarSeparator.java KTrader.java KURIFilter.java KURIFilterData.java KURIFilterPlugin.java KURL.java KURLComboBox.java KURLCompletion.java KURLDrag.java KURLLabel.java KURLRequester.java KURLRequesterDlg.java KUniqueApplication.java KWizard.java KWritePermsIcon.java KXMLGUIBuilder.java KXMLGUIBuilderInterface.java KXMLGUIClient.java KXMLGUIClientInterface.java KXMLGUIFactory.java KXYSelector.java Part.java PartBaseInterface.java ReadOnlyPart.java NetAccess.java kdejava.java Event.java GUIActivateEvent.java MouseEvent.java OpenURLEvent.java PartActivateEvent.java PartSelectEvent.java ReadWritePart.java DocumentFragment.java DocumentStyle.java DocumentType.java HTMLDocument.java NamedNodeMap.java CSSStyleSheet.java StyleSheet.java CSSException.java CSSPrimitiveValue.java CSSStyleDeclaration.java CSSValue.java Counter.java RGBColor.java Rect.java Element.java HTMLAnchorElement.java HTMLAppletElement.java HTMLAreaElement.java HTMLBRElement.java HTMLBaseElement.java HTMLBaseFontElement.java HTMLBlockquoteElement.java HTMLBodyElement.java HTMLButtonElement.java HTMLCollection.java HTMLDListElement.java HTMLDirectoryElement.java HTMLDivElement.java HTMLElement.java HTMLFieldSetElement.java HTMLFontElement.java HTMLFormElement.java HTMLFrameElement.java HTMLFrameSetElement.java HTMLHRElement.java HTMLHeadElement.java HTMLHeadingElement.java HTMLHtmlElement.java HTMLIFrameElement.java HTMLImageElement.java HTMLInputElement.java HTMLIsIndexElement.java HTMLLIElement.java HTMLLabelElement.java HTMLLegendElement.java HTMLLinkElement.java HTMLMapElement.java HTMLMenuElement.java HTMLMetaElement.java HTMLModElement.java HTMLOListElement.java HTMLObjectElement.java HTMLOptGroupElement.java HTMLOptionElement.java HTMLParagraphElement.java HTMLParamElement.java HTMLPreElement.java HTMLQuoteElement.java HTMLScriptElement.java HTMLSelectElement.java HTMLStyleElement.java HTMLTableCaptionElement.java HTMLTableCellElement.java HTMLTableColElement.java HTMLTableElement.java HTMLTableRowElement.java HTMLTableSectionElement.java HTMLTextAreaElement.java HTMLTitleElement.java HTMLUListElement.java Attr.java DockMainWindow.java MainWindow.java CDATASection.java Comment.java EntityReference.java NodeFilter.java NodeIterator.java ProcessingInstruction.java Range.java Text.java TreeWalker.java CharacterData.java CopyJob.java DeleteJob.java FileCopyJob.java Job.java KDirNotify.java KDirNotifyInterface.java KDirSize.java ListJob.java MimetypeJob.java SimpleJob.java StatJob.java TransferJob.java Connection.java Slave.java KAboutContributor.java KAboutTranslator.java KCodecs.java KCommand.java KCommandHistory.java KCompletionBox.java KDialogQueue.java KEditListBox.java KFilterBase.java KFilterDev.java KFontCombo.java KMacroCommand.java KPanelExtension.java KPixmapSplitter.java KPreviewWidgetBase.java KPushButton.java KScanDialog.java KSqueezedTextLabel.java KToolBarPopupAction.java KTipDatabase.java KTipDialog.java BrowserExtensionSignals.java CopyJobSignals.java DCOPClientSignals.java DeleteJobSignals.java JobSignals.java KAboutContainerSignals.java KAboutContributorSignals.java KAboutDialogSignals.java KAboutWidgetSignals.java KAccelSignals.java KActionCollectionSignals.java KActionSignals.java KAnimWidgetSignals.java TDEApplicationSignals.java TDECModuleSignals.java KCharSelectSignals.java KCharSelectTableSignals.java KColorButtonSignals.java KColorComboSignals.java KComboBoxSignals.java KCommandHistorySignals.java KCompletionBoxSignals.java KCompletionSignals.java KDatePickerSignals.java KDateTableSignals.java KDialogBaseSignals.java KDialogSignals.java KDirListerSignals.java KDirOperatorSignals.java KDirWatchSignals.java KDoubleNumInputSignals.java KDualColorButtonSignals.java KEdFindSignals.java KEdReplaceSignals.java KEditListBoxSignals.java KEditSignals.java KEditToolbarSignals.java KEditToolbarWidgetSignals.java KFileDetailViewSignals.java KFileDialogSignals.java KFileIconViewSignals.java KFilePreviewSignals.java KFontChooserSignals.java KFontDialogSignals.java KFontSizeActionSignals.java KHTMLPartSignals.java KHTMLViewSignals.java KHelpMenuSignals.java KHistoryComboSignals.java KIconButtonSignals.java KIconCanvasSignals.java KIconDialogSignals.java KIconViewSignals.java KIntNumInputSignals.java KJanusWidgetSignals.java KKeyChooserSignals.java KLineEditSignals.java KListBoxSignals.java KListViewSignals.java KPanelAppletSignals.java KPanelExtensionSignals.java KPopupMenuSignals.java KProcIOSignals.java TDEProcessSignals.java KProgressSignals.java KRecentFilesActionSignals.java KRestrictedLineSignals.java KRootPixmapSignals.java KRunSignals.java KScanDialogSignals.java KSelectActionSignals.java KSelectorSignals.java KShredSignals.java KSpellConfigSignals.java KSpellDlgSignals.java KSpellSignals.java KStatusBarLabelSignals.java KStatusBarSignals.java KSycocaSignals.java KSystemTraySignals.java KTabCtlSignals.java KTextBrowserSignals.java KToggleActionSignals.java KToolBarButtonSignals.java KToolBarSignals.java KURLComboBoxSignals.java KURLLabelSignals.java KURLRequesterSignals.java KXMLGUIFactorySignals.java KXYSelectorSignals.java ListJobSignals.java SlaveSignals.java StatJobSignals.java TransferJobSignals.java KListViewItem.java KTar.java KArchive.java KArchiveDirectory.java KSSLPKCS12.java KArchiveEntry.java KArchiveFile.java KFileMetaInfo.java KFileMetaInfoItem.java KGuiItem.java KIconViewItem.java KStdGuiItem.java KDataTool.java KDataToolAction.java KDataToolInfo.java KDateWidget.java KDirSelectDialog.java KEMailSettings.java KFileFilterCombo.java KFileTreeBranch.java KFileTreeView.java KFileTreeViewItem.java KFileTreeViewToolTip.java KMultipleDrag.java KWordWrap.java KDataToolActionSignals.java KDateWidgetSignals.java KFileFilterComboSignals.java KFileTreeBranchSignals.java KFileTreeViewSignals.java KShortcut.java KKey.java KKeyDialog.java KIO.java Scheduler.java SchedulerSignals.java StatusbarProgress.java ProgressBase.java ProgressBaseSignals.java KKeySequence.java KDockMainWindow.java KDockManager.java KDockManagerSignals.java KDockTabGroup.java KDockWidget.java KDockWidgetSignals.java KURLPixmapProvider.java KAccelAction.java KColor.java KColorCells.java KColorCellsSignals.java KColorDialog.java KColorDialogSignals.java KColorPatch.java KColorPatchSignals.java KHSSelector.java KPaletteTable.java KPaletteTableSignals.java KValueSelector.java DCOPAnswer.java KDE.java KSSLCertDlgRet.java KListAction.java KRecentFilesAction.java KArrowButton.java KDateTimeWidget.java KDateTimeWidgetSignals.java KFindDialog.java KFind.java KFindSignals.java KMultiTabBarButton.java KMultiTabBarButtonSignals.java KMultiTabBarTab.java KPrintAction.java KPrintActionSignals.java KProgressDialog.java KReplaceDialog.java KReplace.java KReplaceSignals.java KURLBarSignals.java KMultiTabBar.java KCatalogue.java KDoubleValidator.java KKeyButton.java KMdiChildArea.java KMdiChildFrmCaption.java KMdiChildFrmDragBeginEvent.java KMdiChildFrmDragEndEvent.java KMdiChildFrm.java KMdiChildFrmMoveEvent.java KMdiChildFrmResizeBeginEvent.java KMdiChildFrmResizeEndEvent.java KMdiChildView.java KMdi.java KMdiMainFrm.java KMdiTaskBarButton.java KMdiTaskBar.java KMdiViewCloseEvent.java KMdiWin32IconButton.java KPasteTextAction.java KStringListValidator.java KTabBar.java KTabWidget.java KTextEdit.java KTimeWidget.java KToggleToolBarAction.java KURLComboRequester.java KMdiChildAreaSignals.java KMdiChildViewSignals.java KMdiMainFrmSignals.java KMdiTaskBarButtonSignals.java KMdiWin32IconButtonSignals.java KTabBarSignals.java KTabWidgetSignals.java KTimeWidgetSignals.java DefaultProgress.java SlaveBase.java KEdit.java KFloatValidator.java KMimeMagic.java KMimeMagicResult.java BrowserInterface.java CSSRule.java CSSRuleList.java CustomNodeFilter.java DavJob.java Document.java DomShared.java EventListener.java Invocation.java KCalendarSystem.java KDirLister.java KFileMetaInfoGroup.java KMimeSourceFactory.java KSharedConfig.java KShellProcess.java KShortcutList.java KSSLCertBox.java KSSLCertChain.java KSSLSession.java KSSLX509V3.java KToggleFullScreenAction.java KURLBarItem.java KURLBar.java KURLBarListBox.java Marchaller.java MetaInfoJob.java Node.java Observer.java PreviewJob.java SlaveInterface.java UIEvent.java KAsyncIO.java KAsyncIOSignals.java KBufferedIO.java KBufferedIOSignals.java AuthInfo.java RenameDlg.java AbstractView.java KInputDialog.java KAuthIconSignals.java KFileViewSignalerSignals.java KKeyButtonSignals.java KLibFactorySignals.java KURLBarListBoxSignals.java MetaInfoJobSignals.java PartSignals.java PreviewJobSignals.java ReadOnlyPartSignals.java ReadWritePartSignals.java SlaveInterfaceSignals.java CSSCharsetRule.java CSSFontFaceRule.java CSSImportRule.java CSSMediaRule.java CSSPageRule.java CSSStyleRule.java CSSUnknownRule.java CSSValueList.java DOMException.java DOMImplementation.java Entity.java EventException.java Factory.java HistoryProvider.java HistoryProviderSignals.java HTMLFormCollection.java KAccelShortcutList.java KActionShortcutList.java KActiveLabel.java KAr.java KCalendarSystemFactory.java TDECModuleInfo.java TDECModuleLoader.java KCMultiDialog.java KCMultiDialogSignals.java TDEConfigGroup.java KCPUInfo.java KCustomMenuEditor.java KDCOPServiceStarter.java KDiskFreeSp.java KDiskFreeSpSignals.java KDockArea.java KDockAreaSignals.java KFilePlugin.java KFileShare.java KFontRequester.java KFontRequesterSignals.java KIDNA.java KKeyNative.java KMD5.java KMimeTypeResolverBase.java KMimeTypeResolverHelper.java KMimeTypeValidator.java KMountPoint.java KOCRDialog.java KOCRDialogSignals.java KPanelAppMenu.java KPanelAppMenuSignals.java KPassivePopup.java KPassivePopupSignals.java KPluginSelector.java KPluginSelectorSignals.java KRegExpEditorInterface.java KServiceSeparator.java KShell.java KSimpleFileFilter.java KSMIMECrypto.java KSpellingHighlighter.java KSSLCertDlg.java KSSLCertificateCache.java KSSLCertificateFactory.java KSSLKeyGen.java KSSLPKCS7.java KSSLSigners.java KSyntaxHighlighter.java KTempDir.java KURLBarItemDialog.java KWidgetAction.java KWindowInfo.java KXMLGUI.java KZipFileEntry.java KZip.java LinkStyle.java LiveConnectExtension.java LiveConnectExtensionSignals.java MultiGetJob.java MultiGetJobSignals.java MutationEvent.java Notation.java PartBase.java PasswordDialog.java Plugin.java RangeException.java SessionData.java SkipDlg.java SkipDlgSignals.java SlaveConfigSignals.java StatusBarExtension.java TextEvent.java KNamedCommand.java PartManager.java PartManagerSignals.java URLArgs.java WindowArgs.java BrowserHostExtension.java BrowserRun.java KAccelActions.java KDockMainWindowSignals.java StoredTransferJob.java +EXTRA_DIST = TDEGlobal.java KMdiToolViewAccessor.java BrowserExtension.java DCOPClient.java DCOPObject.java DCOPObjectInterface.java DCOPObjectProxy.java KAboutApplication.java KAboutContainer.java TDEAboutData.java KAboutDialog.java KAboutKDE.java KAboutPerson.java KAboutWidget.java KAccel.java KAction.java KActionCollection.java KActionMenu.java KActionSeparator.java KAnimWidget.java TDEApplication.java KAudioPlayer.java KAuthIcon.java KBugReport.java KButtonBox.java TDECModule.java KCharSelect.java KCharSelectTable.java KCharsets.java TDECmdLineArgs.java KColorButton.java KColorCombo.java KColorDrag.java KCombiView.java KComboBox.java KCompletion.java KCompletionBase.java KCompletionBaseInterface.java TDEConfig.java TDEConfigBackEnd.java TDEConfigBase.java TDEConfigGroupSaver.java TDEConfigINIBackEnd.java KContextMenuManager.java KCursor.java KDCOPActionProxy.java KDCOPPropertyProxy.java KDEDesktopMimeType.java KDatePicker.java KDateTable.java KDateValidator.java KDesktopFile.java KDialog.java KDialogBase.java KDirOperator.java KDirWatch.java KDockWidgetAbstractHeader.java KDockWidgetAbstractHeaderDrag.java KDockWidgetHeader.java KDockWidgetHeaderDrag.java KDoubleNumInput.java KDualColorButton.java KEdFind.java KEdGotoLine.java KEdReplace.java KEditToolbar.java KEditToolbarWidget.java KEntry.java KEntryKey.java KExecMimeType.java KFile.java KFileDetailView.java KFileDialog.java KFileFilter.java KFileIconView.java KFileIconViewItem.java KFileItem.java KFileListViewItem.java KFilePreview.java KFileView.java KFileViewInterface.java KFileViewSignaler.java KFolderType.java KFontAction.java KFontChooser.java KFontDialog.java KFontSizeAction.java TDEGlobalAccel.java TDEGlobalSettings.java KGradientSelector.java KHTMLPart.java KHTMLSettings.java KHTMLView.java KHelpMenu.java KHistoryCombo.java KIPC.java KIconButton.java KIconCanvas.java KIconDialog.java KIconEffect.java KIconLoader.java KIconView.java KImageEffect.java KImageIO.java TDEInstance.java TDEInstanceInterface.java KIntNumInput.java KIntSpinBox.java KIntValidator.java KJanusWidget.java KKeyChooser.java KLed.java KLibFactory.java KLibLoader.java KLineEdit.java KListBox.java KListView.java KLocale.java KMainWindow.java KMenuBar.java KMessageBox.java KMimeType.java KNotifyClient.java KNumInput.java KOpenWithDlg.java KPalette.java KPanelApplet.java KPanelMenu.java KPasswordDialog.java KPasswordEdit.java KPixmap.java KPixmapEffect.java KPixmapIO.java KPixmapProvider.java KPopupFrame.java KPopupMenu.java KPopupTitle.java KProcIO.java TDEProcess.java TDEProcessController.java TDEProcessRunner.java KProgress.java KProtocolInfo.java KProtocolManager.java KRFCDate.java KRadioAction.java KRandomSequence.java KRecentDocument.java KRestrictedLine.java KRootPermsIcon.java KRootPixmap.java KRootProp.java KRuler.java KRun.java KSSL.java KSSLCertificate.java KSSLCertificateHome.java KSSLConnectionInfo.java KSSLInfoDlg.java KSSLPeerInfo.java KSSLSettings.java KSSLX509Map.java KSaveFile.java KSelectAction.java KSelector.java KSeparator.java KService.java KServiceGroup.java KServiceOffer.java KServiceType.java KServiceTypeProfile.java KSessionManaged.java KShared.java KShellCompletion.java KShred.java KSimpleConfig.java KSpell.java KSpellConfig.java KSpellDlg.java KStandardDirs.java KStaticDeleterBase.java KStatusBar.java KStatusBarLabel.java KStdAccel.java KStdAction.java KStringHandler.java KSycoca.java KSycocaEntry.java KSystemTray.java KTabCtl.java KTempFile.java KTextBrowser.java KToggleAction.java KToolBar.java KToolBarButton.java KToolBarRadioGroup.java KToolBarSeparator.java KTrader.java KURIFilter.java KURIFilterData.java KURIFilterPlugin.java KURL.java KURLComboBox.java KURLCompletion.java KURLDrag.java KURLLabel.java KURLRequester.java KURLRequesterDlg.java KUniqueApplication.java KWizard.java KWritePermsIcon.java KXMLGUIBuilder.java KXMLGUIBuilderInterface.java KXMLGUIClient.java KXMLGUIClientInterface.java KXMLGUIFactory.java KXYSelector.java Part.java PartBaseInterface.java ReadOnlyPart.java NetAccess.java kdejava.java Event.java GUIActivateEvent.java MouseEvent.java OpenURLEvent.java PartActivateEvent.java PartSelectEvent.java ReadWritePart.java DocumentFragment.java DocumentStyle.java DocumentType.java HTMLDocument.java NamedNodeMap.java CSSStyleSheet.java StyleSheet.java CSSException.java CSSPrimitiveValue.java CSSStyleDeclaration.java CSSValue.java Counter.java RGBColor.java Rect.java Element.java HTMLAnchorElement.java HTMLAppletElement.java HTMLAreaElement.java HTMLBRElement.java HTMLBaseElement.java HTMLBaseFontElement.java HTMLBlockquoteElement.java HTMLBodyElement.java HTMLButtonElement.java HTMLCollection.java HTMLDListElement.java HTMLDirectoryElement.java HTMLDivElement.java HTMLElement.java HTMLFieldSetElement.java HTMLFontElement.java HTMLFormElement.java HTMLFrameElement.java HTMLFrameSetElement.java HTMLHRElement.java HTMLHeadElement.java HTMLHeadingElement.java HTMLHtmlElement.java HTMLIFrameElement.java HTMLImageElement.java HTMLInputElement.java HTMLIsIndexElement.java HTMLLIElement.java HTMLLabelElement.java HTMLLegendElement.java HTMLLinkElement.java HTMLMapElement.java HTMLMenuElement.java HTMLMetaElement.java HTMLModElement.java HTMLOListElement.java HTMLObjectElement.java HTMLOptGroupElement.java HTMLOptionElement.java HTMLParagraphElement.java HTMLParamElement.java HTMLPreElement.java HTMLQuoteElement.java HTMLScriptElement.java HTMLSelectElement.java HTMLStyleElement.java HTMLTableCaptionElement.java HTMLTableCellElement.java HTMLTableColElement.java HTMLTableElement.java HTMLTableRowElement.java HTMLTableSectionElement.java HTMLTextAreaElement.java HTMLTitleElement.java HTMLUListElement.java Attr.java DockMainWindow.java MainWindow.java CDATASection.java Comment.java EntityReference.java NodeFilter.java NodeIterator.java ProcessingInstruction.java Range.java Text.java TreeWalker.java CharacterData.java CopyJob.java DeleteJob.java FileCopyJob.java Job.java KDirNotify.java KDirNotifyInterface.java KDirSize.java ListJob.java MimetypeJob.java SimpleJob.java StatJob.java TransferJob.java Connection.java Slave.java KAboutContributor.java KAboutTranslator.java KCodecs.java KCommand.java KCommandHistory.java KCompletionBox.java KDialogQueue.java KEditListBox.java KFilterBase.java KFilterDev.java KFontCombo.java KMacroCommand.java KPanelExtension.java KPixmapSplitter.java KPreviewWidgetBase.java KPushButton.java KScanDialog.java KSqueezedTextLabel.java KToolBarPopupAction.java KTipDatabase.java KTipDialog.java BrowserExtensionSignals.java CopyJobSignals.java DCOPClientSignals.java DeleteJobSignals.java JobSignals.java KAboutContainerSignals.java KAboutContributorSignals.java KAboutDialogSignals.java KAboutWidgetSignals.java KAccelSignals.java KActionCollectionSignals.java KActionSignals.java KAnimWidgetSignals.java TDEApplicationSignals.java TDECModuleSignals.java KCharSelectSignals.java KCharSelectTableSignals.java KColorButtonSignals.java KColorComboSignals.java KComboBoxSignals.java KCommandHistorySignals.java KCompletionBoxSignals.java KCompletionSignals.java KDatePickerSignals.java KDateTableSignals.java KDialogBaseSignals.java KDialogSignals.java KDirListerSignals.java KDirOperatorSignals.java KDirWatchSignals.java KDoubleNumInputSignals.java KDualColorButtonSignals.java KEdFindSignals.java KEdReplaceSignals.java KEditListBoxSignals.java KEditSignals.java KEditToolbarSignals.java KEditToolbarWidgetSignals.java KFileDetailViewSignals.java KFileDialogSignals.java KFileIconViewSignals.java KFilePreviewSignals.java KFontChooserSignals.java KFontDialogSignals.java KFontSizeActionSignals.java KHTMLPartSignals.java KHTMLViewSignals.java KHelpMenuSignals.java KHistoryComboSignals.java KIconButtonSignals.java KIconCanvasSignals.java KIconDialogSignals.java KIconViewSignals.java KIntNumInputSignals.java KJanusWidgetSignals.java KKeyChooserSignals.java KLineEditSignals.java KListBoxSignals.java KListViewSignals.java KPanelAppletSignals.java KPanelExtensionSignals.java KPopupMenuSignals.java KProcIOSignals.java TDEProcessSignals.java KProgressSignals.java KRecentFilesActionSignals.java KRestrictedLineSignals.java KRootPixmapSignals.java KRunSignals.java KScanDialogSignals.java KSelectActionSignals.java KSelectorSignals.java KShredSignals.java KSpellConfigSignals.java KSpellDlgSignals.java KSpellSignals.java KStatusBarLabelSignals.java KStatusBarSignals.java KSycocaSignals.java KSystemTraySignals.java KTabCtlSignals.java KTextBrowserSignals.java KToggleActionSignals.java KToolBarButtonSignals.java KToolBarSignals.java KURLComboBoxSignals.java KURLLabelSignals.java KURLRequesterSignals.java KXMLGUIFactorySignals.java KXYSelectorSignals.java ListJobSignals.java SlaveSignals.java StatJobSignals.java TransferJobSignals.java KListViewItem.java KTar.java KArchive.java KArchiveDirectory.java KSSLPKCS12.java KArchiveEntry.java KArchiveFile.java KFileMetaInfo.java KFileMetaInfoItem.java KGuiItem.java KIconViewItem.java KStdGuiItem.java KDataTool.java KDataToolAction.java KDataToolInfo.java KDateWidget.java KDirSelectDialog.java KEMailSettings.java KFileFilterCombo.java KFileTreeBranch.java KFileTreeView.java KFileTreeViewItem.java KFileTreeViewToolTip.java KMultipleDrag.java KWordWrap.java KDataToolActionSignals.java KDateWidgetSignals.java KFileFilterComboSignals.java KFileTreeBranchSignals.java KFileTreeViewSignals.java KShortcut.java KKey.java KKeyDialog.java KIO.java Scheduler.java SchedulerSignals.java StatusbarProgress.java ProgressBase.java ProgressBaseSignals.java KKeySequence.java KDockMainWindow.java KDockManager.java KDockManagerSignals.java KDockTabGroup.java KDockWidget.java KDockWidgetSignals.java KURLPixmapProvider.java KAccelAction.java KColor.java KColorCells.java KColorCellsSignals.java KColorDialog.java KColorDialogSignals.java KColorPatch.java KColorPatchSignals.java KHSSelector.java KPaletteTable.java KPaletteTableSignals.java KValueSelector.java DCOPAnswer.java KDE.java KSSLCertDlgRet.java KListAction.java KRecentFilesAction.java KArrowButton.java KDateTimeWidget.java KDateTimeWidgetSignals.java KFindDialog.java KFind.java KFindSignals.java KMultiTabBarButton.java KMultiTabBarButtonSignals.java KMultiTabBarTab.java KPrintAction.java KPrintActionSignals.java KProgressDialog.java KReplaceDialog.java KReplace.java KReplaceSignals.java KURLBarSignals.java KMultiTabBar.java KCatalogue.java KDoubleValidator.java KKeyButton.java KMdiChildArea.java KMdiChildFrmCaption.java KMdiChildFrmDragBeginEvent.java KMdiChildFrmDragEndEvent.java KMdiChildFrm.java KMdiChildFrmMoveEvent.java KMdiChildFrmResizeBeginEvent.java KMdiChildFrmResizeEndEvent.java KMdiChildView.java KMdi.java KMdiMainFrm.java KMdiTaskBarButton.java KMdiTaskBar.java KMdiViewCloseEvent.java KMdiWin32IconButton.java KPasteTextAction.java KStringListValidator.java KTabBar.java KTabWidget.java KTextEdit.java KTimeWidget.java KToggleToolBarAction.java KURLComboRequester.java KMdiChildAreaSignals.java KMdiChildViewSignals.java KMdiMainFrmSignals.java KMdiTaskBarButtonSignals.java KMdiWin32IconButtonSignals.java KTabBarSignals.java KTabWidgetSignals.java KTimeWidgetSignals.java DefaultProgress.java SlaveBase.java KEdit.java KFloatValidator.java KMimeMagic.java KMimeMagicResult.java BrowserInterface.java CSSRule.java CSSRuleList.java CustomNodeFilter.java DavJob.java Document.java DomShared.java EventListener.java Invocation.java KCalendarSystem.java KDirLister.java KFileMetaInfoGroup.java KMimeSourceFactory.java KSharedConfig.java KShellProcess.java KShortcutList.java KSSLCertBox.java KSSLCertChain.java KSSLSession.java KSSLX509V3.java KToggleFullScreenAction.java KURLBarItem.java KURLBar.java KURLBarListBox.java Marchaller.java MetaInfoJob.java Node.java Observer.java PreviewJob.java SlaveInterface.java UIEvent.java KAsyncIO.java KAsyncIOSignals.java TDEBufferedIO.java TDEBufferedIOSignals.java AuthInfo.java RenameDlg.java AbstractView.java KInputDialog.java KAuthIconSignals.java KFileViewSignalerSignals.java KKeyButtonSignals.java KLibFactorySignals.java KURLBarListBoxSignals.java MetaInfoJobSignals.java PartSignals.java PreviewJobSignals.java ReadOnlyPartSignals.java ReadWritePartSignals.java SlaveInterfaceSignals.java CSSCharsetRule.java CSSFontFaceRule.java CSSImportRule.java CSSMediaRule.java CSSPageRule.java CSSStyleRule.java CSSUnknownRule.java CSSValueList.java DOMException.java DOMImplementation.java Entity.java EventException.java Factory.java HistoryProvider.java HistoryProviderSignals.java HTMLFormCollection.java KAccelShortcutList.java KActionShortcutList.java KActiveLabel.java KAr.java KCalendarSystemFactory.java TDECModuleInfo.java TDECModuleLoader.java KCMultiDialog.java KCMultiDialogSignals.java TDEConfigGroup.java KCPUInfo.java KCustomMenuEditor.java KDCOPServiceStarter.java KDiskFreeSp.java KDiskFreeSpSignals.java KDockArea.java KDockAreaSignals.java KFilePlugin.java KFileShare.java KFontRequester.java KFontRequesterSignals.java KIDNA.java KKeyNative.java KMD5.java KMimeTypeResolverBase.java KMimeTypeResolverHelper.java KMimeTypeValidator.java KMountPoint.java KOCRDialog.java KOCRDialogSignals.java KPanelAppMenu.java KPanelAppMenuSignals.java KPassivePopup.java KPassivePopupSignals.java KPluginSelector.java KPluginSelectorSignals.java KRegExpEditorInterface.java KServiceSeparator.java KShell.java KSimpleFileFilter.java KSMIMECrypto.java KSpellingHighlighter.java KSSLCertDlg.java KSSLCertificateCache.java KSSLCertificateFactory.java KSSLKeyGen.java KSSLPKCS7.java KSSLSigners.java KSyntaxHighlighter.java KTempDir.java KURLBarItemDialog.java KWidgetAction.java KWindowInfo.java KXMLGUI.java KZipFileEntry.java KZip.java LinkStyle.java LiveConnectExtension.java LiveConnectExtensionSignals.java MultiGetJob.java MultiGetJobSignals.java MutationEvent.java Notation.java PartBase.java PasswordDialog.java Plugin.java RangeException.java SessionData.java SkipDlg.java SkipDlgSignals.java SlaveConfigSignals.java StatusBarExtension.java TextEvent.java KNamedCommand.java PartManager.java PartManagerSignals.java URLArgs.java WindowArgs.java BrowserHostExtension.java BrowserRun.java KAccelActions.java KDockMainWindowSignals.java StoredTransferJob.java ####### tdevelop will overwrite this part!!! (end)############ diff --git a/kdejava/koala/org/kde/koala/TDECModule.java b/kdejava/koala/org/kde/koala/TDECModule.java new file mode 100644 index 00000000..3f26535e --- /dev/null +++ b/kdejava/koala/org/kde/koala/TDECModule.java @@ -0,0 +1,275 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.TQMetaObject; +import org.kde.qt.QtSupport; +import org.kde.qt.TQWidget; +import org.kde.qt.TQWidget; + +/** + + The base class for control center modules. + Starting from KDE 2.0, control center modules are realized as shared + libraries that are loaded into the control center at runtime. + The module in principle is a simple widget displaying the + item to be changed. The module has a very small interface. + All the necessary glue logic and the GUI bells and whistles + are provided by the control center and must not concern + the module author. + To write a config module, you have to create a library + that contains at one factory function like this: +
    + #include 
    + typedef KGenericFactory YourTDECModuleFactory;
    + K_EXPORT_COMPONENT_FACTORY( yourLibName, YourTDECModuleFactory("name_of_the_po_file") );
    + 
    + The parameter "name_of_the_po_file" has to correspond with the messages target + that you created in your Makefile.am. + See http://developer.kde.org/documentation/other/kcm_howto.html + for more detailed documentation. + See {@link TDECModuleSignals} for signals emitted by TDECModule + @author Matthias Hoelzer-Kluepfel + + @short The base class for control center modules. + +*/ +public class TDECModule extends TQWidget { + protected TDECModule(Class dummy){super((Class) null);} + /** + An enumeration type for the buttons used by this module. + You should only use Help, Default and Apply. The rest is obsolete. + @short An enumeration type for the buttons used by this module. + @see TDECModule#buttons + @see @see + @see TDECModule#setButtons + */ + public static final int Help = 1; + public static final int Default = 2; + public static final int Apply = 16; + public static final int Reset = 4; + public static final int Cancel = 8; + public static final int Ok = 32; + public static final int SysDefault = 64; + + public native TQMetaObject metaObject(); + public native String className(); + public TDECModule(TQWidget parent, String name, String[] args) { + super((Class) null); + newTDECModule(parent,name,args); + } + private native void newTDECModule(TQWidget parent, String name, String[] args); + public TDECModule(TQWidget parent, String name) { + super((Class) null); + newTDECModule(parent,name); + } + private native void newTDECModule(TQWidget parent, String name); + public TDECModule(TQWidget parent) { + super((Class) null); + newTDECModule(parent); + } + private native void newTDECModule(TQWidget parent); + public TDECModule() { + super((Class) null); + newTDECModule(); + } + private native void newTDECModule(); + public TDECModule(TDEInstanceInterface instance, TQWidget parent, String[] args) { + super((Class) null); + newTDECModule(instance,parent,args); + } + private native void newTDECModule(TDEInstanceInterface instance, TQWidget parent, String[] args); + public TDECModule(TDEInstanceInterface instance, TQWidget parent) { + super((Class) null); + newTDECModule(instance,parent); + } + private native void newTDECModule(TDEInstanceInterface instance, TQWidget parent); + public TDECModule(TDEInstanceInterface instance) { + super((Class) null); + newTDECModule(instance); + } + private native void newTDECModule(TDEInstanceInterface instance); + /** + Load the configuration data into the module. + The load method sets the user interface elements of the + module to reflect the current settings stored in the + configuration files. + This method is invoked whenever the module should read its configuration + (most of the times from a config file) and update the user interface. + This happens when the user clicks the "Reset" button in the control + center, to undo all of his changes and restore the currently valid + settings. + If you use TDEConfigXT, loading is taken care of automatically and + you do not need to do it manually. However, if you for some reason reimplement it and + also are using TDEConfigXT, you must call this function otherwise the loading of TDEConfigXT + options will not work. + @short Load the configuration data into the module. + */ + public native void load(); + /** + Save the configuration data. + The save method stores the config information as shown + in the user interface in the config files. + If necessary, this method also updates the running system, + e.g. by restarting applications. This normally does not apply for + KSettings.Dialog modules where the updating is taken care of by + KSettings.Dispatcher. + save is called when the user clicks "Apply" or "Ok". + If you use TDEConfigXT, saving is taken care off automatically and + you do not need to load manually. However, if you for some reason reimplement it and + also are using TDEConfigXT, you must call this function, otherwise the saving of TDEConfigXT + options will not work. Call it at the very end of your reimplementation, to avoid + changed() signals getting emitted when you modify widgets. + @short Save the configuration data. + */ + public native void save(); + /** + Sets the configuration to sensible default values. + This method is called when the user clicks the "Default" + button. It should set the display to useful values. + If you use TDEConfigXT, you do not have to reimplement this function since + the fetching and settings of default values is done automatically. However, if you + reimplement and also are using TDEConfigXT, remember to call the base function at the + very end of your reimplementation. + @short Sets the configuration to sensible default values. + */ + public native void defaults(); + /** + Set the configuration to system default values. + This method is called when the user clicks the "System-Default" + button. It should set the display to the system default values. + @note The default behavior is to call defaults(). + @short Set the configuration to system default values. + */ + public native void sysdefaults(); + /** + Return a tquick-help text. + This method is called when the module is docked. + The tquick-help text should contain a short description of the module and + links to the module's help files. You can use TQML formatting tags in the text. + @note make sure the tquick help text gets translated (use i18n()). + @short Return a tquick-help text. + */ + public native String quickHelp(); + /** + This is generally only called for the KBugReport. + If you override you should have it return a pointer to a constant. + @return the TDEAboutData for this module + + @short This is generally only called for the KBugReport. + */ + public native TDEAboutData aboutData(); + /** + This sets the TDEAboutData returned by aboutData() + @short This sets the TDEAboutData returned by aboutData() + */ + public native void setAboutData(TDEAboutData about); + /** + Indicate which buttons will be used. + The return value is a value or'ed together from + the Button enumeration type. + @short Indicate which buttons will be used. + @see TDECModule#setButtons + */ + public native int buttons(); + /** + Get the RootOnly message for this module. + When the module must be run as root, or acts differently + for root and a normal user, it is sometimes useful to + customize the message that appears at the top of the module + when used as a normal user. This function returns this + customized message. If none has been set, a default message + will be used. + @short Get the RootOnly message for this module. + @see TDECModule#setRootOnlyMsg + */ + public native String rootOnlyMsg(); + /** + Tell if KControl should show a RootOnly message when run as + a normal user. + In some cases, the module don't want a RootOnly message to + appear (for example if it has already one). This function + tells KControl if a RootOnly message should be shown + @short Tell if KControl should show a RootOnly message when run as a normal user. + @see TDECModule#setUseRootOnlyMsg + */ + public native boolean useRootOnlyMsg(); + public native TDEInstanceInterface instance(); + /** + @return a list of @ref TDEConfigDialogManager's in use, if any. + + @short + */ + // const TQPtrList& configs(); >>>> NOT CONVERTED + /** + Adds a TDEConfigskeleton config to watch the widget widget + This function is useful if you need to handle multiple configuration files. + @param config the TDEConfigSkeleton to use + @param widget the widget to watch + @return a pointer to the TDEConfigDialogManager in use + + @short Adds a TDEConfigskeleton config to watch the widget widget + */ + // TDEConfigDialogManager* addConfig(TDEConfigSkeleton* arg1,TQWidget* arg2); >>>> NOT CONVERTED + /** + Sets the tquick help. + @short Sets the tquick help. + */ + protected native void setQuickHelp(String help); + /** + Sets the buttons to display. + Help: shows a "Help" button. + Default: shows a "Use Defaults" button + Apply: in kcontrol this will show an "Apply" and "Reset" button + in kcmshell this will show an "Ok", "Apply" and "Cancel" button + If Apply is not specified, kcmshell will show a "Close" button. + @short Sets the buttons to display. + @see TDECModule#buttons + */ + protected native void setButtons(int btn); + /** + Sets the RootOnly message. + This message will be shown at the top of the module of the + corresponding desktop file contains the line X-TDE-RootOnly=true. + If no message is set, a default one will be used. + @short Sets the RootOnly message. + @see TDECModule#rootOnlyMsg + */ + protected native void setRootOnlyMsg(String msg); + /** + Change whether or not the RootOnly message should be shown. + Following the value of on, the RootOnly message will be + shown or not. + @short Change whether or not the RootOnly message should be shown. + @see TDECModule#useRootOnlyMsg + */ + protected native void setUseRootOnlyMsg(boolean on); + /** + Returns the changed state of automatically managed widgets in this dialog + @short Returns the changed state of automatically managed widgets in this dialog + */ + protected native boolean managedWidgetChangeState(); + /** + Call this method when your manually managed widgets change state between + changed and not changed + @short Call this method when your manually managed widgets change state between changed and not changed + */ + protected native void unmanagedWidgetChangeState(boolean arg1); + /** + Calling this slot is equivalent to emitting changed(true). + @short Calling this slot is equivalent to emitting changed(true). + */ + protected native void changed(); + /** + A managed widget was changed, the widget settings and the current + settings are compared and a corresponding changed() signal is emitted + @short A managed widget was changed, the widget settings and the current settings are compared and a corresponding changed() signal is emitted + */ + protected native void widgetChanged(); + /** Deletes the wrapped C++ instance */ + protected native void finalize() throws InternalError; + /** Delete the wrapped C++ instance ahead of finalize() */ + public native void dispose(); + /** Has the wrapped C++ instance been deleted? */ + public native boolean isDisposed(); +} diff --git a/kdejava/koala/org/kde/koala/TDECModuleInfo.java b/kdejava/koala/org/kde/koala/TDECModuleInfo.java new file mode 100644 index 00000000..c1461b1c --- /dev/null +++ b/kdejava/koala/org/kde/koala/TDECModuleInfo.java @@ -0,0 +1,231 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.QtSupport; +import java.util.ArrayList; + +/** + + A class that provides information about a TDECModule + TDECModuleInfo provides various technical information, such as icon, library + etc. about a TDECModule.n + @note Any values set with the set functions is not + written back with TDECModuleInfo it only reads value from the desktop file. + @author Daniel Molkentin + + @short A class that provides information about a TDECModule + +*/ +public class TDECModuleInfo implements QtSupport { + private long _qt; + private boolean _allocatedInJavaWorld = true; + protected TDECModuleInfo(Class dummy){} + + /** + Constructs a TDECModuleInfo. + @note a TDECModuleInfo object will have to be manually deleted, it is not + done automatically for you. + @param desktopFile the desktop file representing the module, or + the name of the module. + @short Constructs a TDECModuleInfo. + */ + public TDECModuleInfo(String desktopFile) { + newTDECModuleInfo(desktopFile); + } + private native void newTDECModuleInfo(String desktopFile); + /** + Same as above but takes a KService.Ptr as argument. + @note moduleInfo must be a valid pointer. + @param moduleInfo specifies the module + @short Same as above but takes a KService.Ptr as argument. + */ + // TDECModuleInfo* TDECModuleInfo(KService::Ptr arg1); >>>> NOT CONVERTED + /** + Same as above but takes a TDECModuleInfo as argument. + @param rhs specifies the module + @short Same as above but takes a TDECModuleInfo as argument. + */ + public TDECModuleInfo(TDECModuleInfo rhs) { + newTDECModuleInfo(rhs); + } + private native void newTDECModuleInfo(TDECModuleInfo rhs); + /** + Same as above but creates an empty TDECModuleInfo. + You should not normally call this. + @short Same as above but creates an empty TDECModuleInfo. + */ + public TDECModuleInfo() { + newTDECModuleInfo(); + } + private native void newTDECModuleInfo(); + /** + Equal operator + @return true if rhs equals itself + + @short Equal operator + */ + public native boolean op_equals(TDECModuleInfo rhs); + /** + @return true if rhs is not equal itself + + @short + */ + public native boolean op_not_equals(TDECModuleInfo rhs); + /** + @return the filename of the .desktop file that describes the KCM + + @short + */ + public native String fileName(); + /** + @return the keywords associated with this KCM. + + @short + */ + public native ArrayList keywords(); + /** + Returns the module's factory name, if it's set. If not, the library + name is returned. + @return the module's factory name + + @short Returns the module's factory name, if it's set. + */ + public native String factoryName(); + /** + @return the module\'s (translated) name + + @short + */ + public native String moduleName(); + /** + @return a KSharedPtr to KService created from the modules .desktop file + + @short + */ + // KService::Ptr service(); >>>> NOT CONVERTED + /** + @return the module's (translated) comment field + + @short + */ + public native String comment(); + /** + @return the module's icon name + + @short + */ + public native String icon(); + /** + @return the path of the module's documentation + + @short + */ + public native String docPath(); + /** + @return the library name + + @short + */ + public native String library(); + /** + @return a handle (usually the contents of the FactoryName field) + + @short + */ + public native String handle(); + /** + @return the weight of the module which determines the order of the pages in + the KCMultiDialog. It's set by the X-TDE-Weight field. + + @short + */ + public native int weight(); + /** + @return whether the module might require root permissions + + @short + */ + public native boolean needsRootPrivileges(); + /** + @return true if the module should be conditionally + loaded. + + @short + */ + public native boolean needsTest(); + /** + Sets the object's keywords. + @param keyword the new keywords + @short Sets the object's keywords. + */ + protected native void setKeywords(String[] keyword); + /** + Sets the object's name. + @param name the new name + @short Sets the object's name. + */ + protected native void setName(String name); + /** + Sets the object's name. + @param comment the new comment + @short Sets the object's name. + */ + protected native void setComment(String comment); + /** + Sets the object's icon. + @param icon the name of the new icon + @short Sets the object's icon. + */ + protected native void setIcon(String icon); + /** + Set the object's library + @param lib the name of the new library without any extensions or prefixs. + @short Set the object's library + */ + protected native void setLibrary(String lib); + /** + Sets the factory name + @param handle The new factory name + @short Sets the factory name + */ + protected native void setHandle(String handle); + /** + Sets the object's weight property which determines in what + order modules will be displayed. Default is 100. + @param weight the new weight + @short Sets the object's weight property which determines in what order modules will be displayed. + */ + protected native void setWeight(int weight); + /** + Sets if the module should be tested for loading. + @param val the value to set + @short Sets if the module should be tested for loading. + */ + protected native void setNeedsTest(boolean val); + /** + Toggles whether the represented module needs root privileges. + Use with caution. + @param needsRootPrivileges if module needs root privilges + @short Toggles whether the represented module needs root privileges. + */ + protected native void setNeedsRootPrivileges(boolean needsRootPrivileges); + /** + Sets the object's documentation path + @param p the new documentation path + @short Sets the object's documentation path + */ + protected native void setDocPath(String p); + /** + Reads the service entries specific for TDECModule from the desktop file. + The usual desktop entries are read in init. + @short Reads the service entries specific for TDECModule from the desktop file. + */ + protected native void loadAll(); + /** Deletes the wrapped C++ instance */ + protected native void finalize() throws InternalError; + /** Delete the wrapped C++ instance ahead of finalize() */ + public native void dispose(); + /** Has the wrapped C++ instance been deleted? */ + public native boolean isDisposed(); +} diff --git a/kdejava/koala/org/kde/koala/TDECModuleLoader.java b/kdejava/koala/org/kde/koala/TDECModuleLoader.java new file mode 100644 index 00000000..926a5088 --- /dev/null +++ b/kdejava/koala/org/kde/koala/TDECModuleLoader.java @@ -0,0 +1,120 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.QtSupport; +import org.kde.qt.TQWidget; + +/** + + @class Loads a KControl Module. + TDECModuleLoader tries in several ways + to locate and load a TDECModule. If loading fails a + zero pointer is returned. \n + It is very unlikely TDECModuleLoader is what you want + and {@link TDECModuleProxy} suits your needs. + @author Frans Englich + + @short @class Loads a KControl Module. + +*/ +public class TDECModuleLoader implements QtSupport { + private long _qt; + private boolean _allocatedInJavaWorld = true; + protected TDECModuleLoader(Class dummy){} + + /** + Determines the way errors are reported + @short Determines the way errors are reported + */ + public static final int None = 0; + public static final int Inline = 1; + public static final int Dialog = 2; + public static final int Both = 3; + + public TDECModuleLoader() { + newTDECModuleLoader(); + } + private native void newTDECModuleLoader(); + /** + Loads a {@link TDECModule}. If loading fails a zero pointer is returned. + @param module what module to load + @param report see ErrorReporting + @param withFallback if true and loading failed a separate window + with the module may appear and a zero pointer is a returned + @return a pointer to the loaded @ref TDECModule + + @short Loads a @ref TDECModule. + */ + public static native TDECModule loadModule(TDECModuleInfo module, int report, boolean withFallback, TQWidget parent, String name, String[] args); + public static native TDECModule loadModule(TDECModuleInfo module, int report, boolean withFallback, TQWidget parent, String name); + public static native TDECModule loadModule(TDECModuleInfo module, int report, boolean withFallback, TQWidget parent); + public static native TDECModule loadModule(TDECModuleInfo module, int report, boolean withFallback); + public static native TDECModule loadModule(TDECModuleInfo module, int report); + /** + Loads a {@link TDECModule}. If loading fails a zero pointer is returned. + @param module what module to load + @param report see ErrorReporting + with the module may appear and a zero pointer is a returned + @return a pointer to the loaded @ref TDECModule + + @short Loads a @ref TDECModule. + */ + public static native TDECModule loadModule(String module, int report, TQWidget parent, String name, String[] args); + public static native TDECModule loadModule(String module, int report, TQWidget parent, String name); + public static native TDECModule loadModule(String module, int report, TQWidget parent); + public static native TDECModule loadModule(String module, int report); + /** + Unloads the module's library + @param mod What module to unload for + @short Unloads the module's library + */ + public static native void unloadModule(TDECModuleInfo mod); + /** + Checks whether an TDECModule should be shown by running its + test function. If it is unsure whether a module should be shown, it should + be made available, leaving the decision to the user. + If false is returned, the module should not be loaded in any interface. + A module declares it needs to be tested by having "X-TDE-Test-Module=true" in + its desktop file. When that line exists, the following code must be available + in the module's library: +
    +		 extern "C"
    +		 {
    +		    boolean test_moduleName()
    +		    {
    +		      // Code testing for hardware/software presence.
    +		      return true; // and the modue will be loaded.
    +		    }
    +			 }
    +		 
    + where moduleName is the library name for the module. + @param module the module to check + @return true if the module should be loaded + + @short Checks whether an TDECModule should be shown by running its test function. + */ + public static native boolean testModule(String module); + /** + Convenience function, essentially the same as above. + @param module the module to check + @return true if the module should be loaded + + @short Convenience function, essentially the same as above. + */ + public static native boolean testModule(TDECModuleInfo module); + /** + Returns a TDECModule containing the messages report and text. + @param report the type of error reporting, see ErrorReporting + @param text the main message + @param details any additional details + @short Returns a TDECModule containing the messages report and text. + */ + public static native TDECModule reportError(int report, String text, String details, TQWidget parent); + /** Deletes the wrapped C++ instance */ + protected native void finalize() throws InternalError; + /** Delete the wrapped C++ instance ahead of finalize() */ + public native void dispose(); + /** Has the wrapped C++ instance been deleted? */ + public native boolean isDisposed(); +} diff --git a/kdejava/koala/org/kde/koala/TDECModuleSignals.java b/kdejava/koala/org/kde/koala/TDECModuleSignals.java new file mode 100644 index 00000000..fe4bfa22 --- /dev/null +++ b/kdejava/koala/org/kde/koala/TDECModuleSignals.java @@ -0,0 +1,25 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.TQMetaObject; +import org.kde.qt.QtSupport; +import org.kde.qt.TQWidget; + +public interface TDECModuleSignals { + /** + Indicate that the state of the modules contents has changed. + This signal is emitted whenever the state of the configuration + shown in the module changes. It allows the control center to + keep track of unsaved changes. + @short Indicate that the state of the modules contents has changed. + */ + void changed(boolean state); + /** + Indicate that the module's tquickhelp has changed. + Emit this signal whenever the module's tquickhelp changes. + Modules implemented as tabbed dialogs might want to implement + per-tab tquickhelp for example. + @short Indicate that the module's tquickhelp has changed. + */ + void quickHelpChanged(); +} diff --git a/kdejava/koala/org/kde/koala/TDEConfig.java b/kdejava/koala/org/kde/koala/TDEConfig.java new file mode 100644 index 00000000..9eedc94d --- /dev/null +++ b/kdejava/koala/org/kde/koala/TDEConfig.java @@ -0,0 +1,232 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.TQMetaObject; +import org.kde.qt.QtSupport; +import java.util.ArrayList; + +/** + + Access KDE Configuration entries. + This class implements KDE's default configuration system. + @author Kalle Dalheimer , Preston Brown + + @short KDE Configuration Management class. + @see TDEGlobal#config + @see TDEConfigBase + @see KSimpleConfig + +*/ +public class TDEConfig extends TDEConfigBase { + protected TDEConfig(Class dummy){super((Class) null);} + public native TQMetaObject metaObject(); + public native String className(); + /** + Constructs a TDEConfig object. + @param fileName A file to parse in addition to the + system-wide file(s). If it is not provided, only global + KDE configuration data will be read (depending on the value of + bUseKDEGlobals). + @param bReadOnly Set the config object's read-only status. Note that the + object will automatically become read-only if either the user does not have + write permission to fileName or if no file was specified. + @param bUseKDEGlobals Toggle reading the global KDE configuration file. + @param resType the place to look in (config, data, etc) See KStandardDirs. + @short Constructs a TDEConfig object. + */ + public TDEConfig(String fileName, boolean bReadOnly, boolean bUseKDEGlobals, String resType) { + super((Class) null); + newTDEConfig(fileName,bReadOnly,bUseKDEGlobals,resType); + } + private native void newTDEConfig(String fileName, boolean bReadOnly, boolean bUseKDEGlobals, String resType); + public TDEConfig(String fileName, boolean bReadOnly, boolean bUseKDEGlobals) { + super((Class) null); + newTDEConfig(fileName,bReadOnly,bUseKDEGlobals); + } + private native void newTDEConfig(String fileName, boolean bReadOnly, boolean bUseKDEGlobals); + public TDEConfig(String fileName, boolean bReadOnly) { + super((Class) null); + newTDEConfig(fileName,bReadOnly); + } + private native void newTDEConfig(String fileName, boolean bReadOnly); + public TDEConfig(String fileName) { + super((Class) null); + newTDEConfig(fileName); + } + private native void newTDEConfig(String fileName); + public TDEConfig() { + super((Class) null); + newTDEConfig(); + } + private native void newTDEConfig(); + public TDEConfig(TDEConfigBackEnd backEnd, boolean bReadOnly) { + super((Class) null); + newTDEConfig(backEnd,bReadOnly); + } + private native void newTDEConfig(TDEConfigBackEnd backEnd, boolean bReadOnly); + public TDEConfig(TDEConfigBackEnd backEnd) { + super((Class) null); + newTDEConfig(backEnd); + } + private native void newTDEConfig(TDEConfigBackEnd backEnd); + /** + Clears all entries out of the dirtyEntryMap, so the + values will not be written to disk on a later call to + sync(). + @param bDeep If true, the dirty map is actually emptied. + otherwise, the config object's global dirty flag is set to + false, but the dirty entries remain in the dirty entry + map. + @short Clears all entries out of the dirtyEntryMap, so the values will not be written to disk on a later call to sync(). + @see TDEConfigBase#rollback + */ + public native void rollback(boolean bDeep); + public native void rollback(); + /** + Returns a list of groups that are known. + @return a list of of groups + + @short Returns a list of groups that are known. + */ + public native ArrayList groupList(); + /** + Returns a map (tree) of entries for all entries in a particular + group. + Only the actual entry string is returned, none of the + other internal data should be included. + @param pGroup A group to get keys from. + @return A map of entries in the group specified, indexed by key. + The returned map may be empty if the group is not found. + + @short Returns a map (tree) of entries for all entries in a particular group. + */ + // TQMap entryMap(const TQString& arg1); >>>> NOT CONVERTED + /** + Clears all internal data structures and then reread + configuration information from disk. + @short Clears all internal data structures and then reread configuration information from disk. + */ + public native void reparseConfiguration(); + /** + Set the file mode for newly created files. + @param mode the mode for new files as described in chmod(2) + @short Set the file mode for newly created files. + @see #man:chmod(2) + @see #for + @see #a + @see #description + @see #of + @see @see #mode + */ + public native void setFileWriteMode(int mode); + /** + Forces all following write-operations being performed on kdeglobals, + independent of the bGlobal flag in writeEntry(). + @param force true to force writing in kdeglobals + @short Forces all following write-operations being performed on kdeglobals, independent of the bGlobal flag in writeEntry(). + @see #forceGlobal + */ + public native void setForceGlobal(boolean force); + /** + Returns true if all entries are being written into kdeglobals. + @return true if all entries are being written into kdeglobals + + @short Returns true if all entries are being written into kdeglobals. + @see #setForceGlobal + */ + public native boolean forceGlobal(); + /** + Checks whether the config file contains the update id + as contained in updateFile. If not, it runs kconf_update + to update the config file. + If you install config update files with critical fixes + you may wish to use this method to verify that a critical + update has indeed been performed to catch the case where + a user restores an old config file from backup that has + not been updated yet. + @param id the update to check + @param updateFile the file containing the update + @short Checks whether the config file contains the update id as contained in updateFile. + */ + public native void checkUpdate(String id, String updateFile); + /** + Copies all entries from this config object to a new config + object that will save itself to file. + Actual saving to file happens when the returned object is + destructed or when sync() is called upon it. + @param file the new config object will save itself to. + @param config optional config object to reuse + @short Copies all entries from this config object to a new config object that will save itself to file. + */ + public native TDEConfig copyTo(String file, TDEConfig config); + public native TDEConfig copyTo(String file); + /** + Returns a lock file object for the configuration file or 0 if + the backend does not support locking. + @param bGlobal if true, return the lock file for the global config file + NOTE: TDEConfig.sync() requires a lock on both the normal and global + config file. When calling TDEConfig.sync() while having a lock on the + global config file, the normal config file MUST be locked AS WELL and the + normal config file MUST be locked BEFORE the global config file! + Otherwise there is a risk of deadlock. + @short Returns a lock file object for the configuration file or 0 if the backend does not support locking. + */ + // KLockFile::Ptr lockFile(bool arg1); >>>> NOT CONVERTED + // KLockFile::Ptr lockFile(); >>>> NOT CONVERTED + /** + Returns true if the specified group is known. + @param group The group to search for. + @return true if the group exists. + + @short Returns true if the specified group is known. + */ + protected native boolean internalHasGroup(String group); + /** + Returns a map (tree) of the entries in the specified group. + Do not use this function, the implementation / return type are + subject to change. + @param pGroup the group to provide a KEntryMap for. + @return The map of the entries in the group. + + @short + */ + // KEntryMap internalEntryMap(const TQString& arg1); >>>> NOT CONVERTED + /** + Returns a copy of the internal map used to hold all entries. + Do not use this function, the implementation / return type are + subject to change. + @return The map of the entries in the group. + + @short + */ + // KEntryMap internalEntryMap(); >>>> NOT CONVERTED + /** + Inserts a (key, value) pair into the internal storage mechanism of + the configuration object. + @param _key The key to insert. It contains information both on + the group of the key and the key itself. If the key already + exists, the old value will be replaced. + @param _data the KEntry that is to be stored. + @param _checkGroup When false, assume that the group already exists. + @short Inserts a (key, value) pair into the internal storage mechanism of the configuration object. + */ + protected native void putData(KEntryKey _key, KEntry _data, boolean _checkGroup); + protected native void putData(KEntryKey _key, KEntry _data); + /** + Looks up an entry in the config object's internal structure. + @param _key The key to look up It contains information both on + the group of the key and the entry's key itself. + @return the KEntry value (data) found for the key. KEntry.aValue + will be the null string if nothing was located. + + @short Looks up an entry in the config object's internal structure. + */ + protected native KEntry lookupData(KEntryKey _key); + /** Deletes the wrapped C++ instance */ + protected native void finalize() throws InternalError; + /** Delete the wrapped C++ instance ahead of finalize() */ + public native void dispose(); + /** Has the wrapped C++ instance been deleted? */ + public native boolean isDisposed(); +} diff --git a/kdejava/koala/org/kde/koala/TDEConfigBackEnd.java b/kdejava/koala/org/kde/koala/TDEConfigBackEnd.java new file mode 100644 index 00000000..b708f574 --- /dev/null +++ b/kdejava/koala/org/kde/koala/TDEConfigBackEnd.java @@ -0,0 +1,120 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.QtSupport; + +/** + + Abstract base class for KDE configuration file loading/saving. + This class forms the base for all classes that implement some + manner of loading/saving to configuration files. It is an + abstract base class, meaning that you cannot directly instantiate + objects of this class. As of right now, the only back end available + is one to read/write to INI-style files, but in the future, other + formats may be available, such as XML or a database. + @author Preston Brown , + Matthias Kalle Dalheimer + + @short KDE Configuration file loading/saving abstract base class. + +*/ +public class TDEConfigBackEnd implements QtSupport { + private long _qt; + private boolean _allocatedInJavaWorld = true; + protected TDEConfigBackEnd(Class dummy){} + + /** + Constructs a configuration back end. + @param _config Specifies the configuration object which values + will be passed to as they are read, or from where values + to be written to will be obtained from. + @param _fileName The name of the file in which config + data is stored. All registered configuration directories + will be looked in in order of decreasing relevance. + @param _resType the resource type of the fileName specified, _if_ + it is not an absolute path (otherwise this parameter is ignored). + @param _useKDEGlobals If true, the user's system-wide kdeglobals file + will be imported into the config object. If false, only + the filename specified will be dealt with. + @short Constructs a configuration back end. + */ + /** + Parses all configuration files for a configuration object. This + method must be reimplemented by the derived classes. + @return Whether or not parsing was successful. + + @short Parses all configuration files for a configuration object. + */ + public native boolean parseConfigFiles(); + /** + Writes configuration data to file(s). This method must be + reimplemented by the derived classes. + @param bMerge Specifies whether the old config file already + on disk should be merged in with the data in memory. If true, + data is read off the disk and merged. If false, the on-disk + file is removed and only in-memory data is written out. + @short Writes configuration data to file(s). + */ + public native void sync(boolean bMerge); + public native void sync(); + /** + Changes the filenames associated with this back end. You should + probably reparse your config info after doing this. + @param _fileName the new filename to use + @param _resType the resource type of the fileName specified, _if_ + it is not an absolute path (otherwise this parameter is ignored). + @param _useKDEGlobals specifies whether or not to also parse the + global KDE configuration files. + @short Changes the filenames associated with this back end. + */ + public native void changeFileName(String _fileName, String _resType, boolean _useKDEGlobals); + /** + Returns the state of the app-config object. + @short Returns the state of the app-config object. + @see TDEConfig#getConfigState + */ + public native int getConfigState(); + /** + Returns the filename as passed to the constructor. + @return the filename as passed to the constructor. + + @short Returns the filename as passed to the constructor. + */ + public native String fileName(); + /** + Returns the resource type as passed to the constructor. + @return the resource type as passed to the constructor. + + @short Returns the resource type as passed to the constructor. + */ + public native String resource(); + /** + Set the locale string that defines the current language. + @param _localeString the identifier of the language + @short Set the locale string that defines the current language. + @see KLocale + */ + public native void setLocaleString(String _localeString); + /** + Set the file mode for newly created files. + @param mode the filemode (as in chmod) + @short Set the file mode for newly created files. + */ + public native void setFileWriteMode(int mode); + /** + Check whether the config files are writable. + @param warnUser Warn the user if the configuration files are not writable. + @return Indicates that all of the configuration files used are writable. + + @short Check whether the config files are writable. + */ + public native boolean checkConfigFilesWritable(boolean warnUser); + /** + Returns a lock file object for the configuration file + @param bGlobal If true, returns a lock file object for kdeglobals + @short Returns a lock file object for the configuration file + */ + // KLockFile::Ptr lockFile(bool arg1); >>>> NOT CONVERTED + // KLockFile::Ptr lockFile(); >>>> NOT CONVERTED +} diff --git a/kdejava/koala/org/kde/koala/TDEConfigBase.java b/kdejava/koala/org/kde/koala/TDEConfigBase.java new file mode 100644 index 00000000..5baa01ff --- /dev/null +++ b/kdejava/koala/org/kde/koala/TDEConfigBase.java @@ -0,0 +1,936 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.TQColor; +import org.kde.qt.TQRect; +import org.kde.qt.TQFont; +import org.kde.qt.TQMetaObject; +import org.kde.qt.QtSupport; +import org.kde.qt.TQPoint; +import java.util.Calendar; +import org.kde.qt.TQSize; +import java.util.ArrayList; +import org.kde.qt.TQVariant; +import org.kde.qt.TQObject; + +/** + + This class forms the base for all %KDE configuration. It is an + abstract base class, meaning that you cannot directly instantiate + objects of this class. Either use TDEConfig (for usual %KDE + configuration) or KSimpleConfig (for special needs as in ksamba), or + even KSharedConfig (stores values in shared memory). + All configuration entries are key, value pairs. Each entry also + belongs to a specific group of related entries. All configuration + entries that do not explicitly specify which group they are in are + in a special group called the default group. + If there is a $ character in an entry, TDEConfigBase tries to expand + environment variable and uses its value instead of its name. You + can avoid this feature by having two consecutive $ characters in + your config file which get expanded to one. + Note:<> the '=' char is not allowed in keys and the ']' char is not allowed in + a group name. + @author Kalle Dalheimer , Preston Brown + + @short KDE Configuration Management abstract base class. + @see TDEGlobal#config + @see TDEConfig + @see KSimpleConfig + @see KSharedConfig + +*/ +public class TDEConfigBase extends TQObject { + protected TDEConfigBase(Class dummy){super((Class) null);} + /** + Possible return values for getConfigState(). + @short Possible return values for getConfigState(). + @see #getConfigState + */ + public static final int NoAccess = 0; + public static final int ReadOnly = 1; + public static final int ReadWrite = 2; + + public native TQMetaObject metaObject(); + public native String className(); + /** + Construct a TDEConfigBase object. + @short Construct a TDEConfigBase object. + */ + /** + Specifies the group in which keys will be read and written. + Subsequent + calls to readEntry() and writeEntry() will be applied only in the + activated group. + Switch back to the default group by passing a null string. + @param group The name of the new group. + @short Specifies the group in which keys will be read and written. + */ + public native void setGroup(String group); + /** + Sets the group to the "Desktop Entry" group used for + desktop configuration files for applications, mime types, etc. + @short Sets the group to the "Desktop Entry" group used for desktop configuration files for applications, mime types, etc. + */ + public native void setDesktopGroup(); + /** + Returns the name of the group in which we are + searching for keys and from which we are retrieving entries. + @return The current group. + + @short Returns the name of the group in which we are searching for keys and from which we are retrieving entries. + */ + public native String group(); + /** + Returns true if the specified group is known about. + @param group The group to search for. + @return true if the group exists. + + @short Returns true if the specified group is known about. + */ + public native boolean hasGroup(String group); + /** + Returns a list of groups that are known about. + @return The list of groups. + + @short Returns a list of groups that are known about. + */ + public native ArrayList groupList(); + /** + Returns a the current locale. + @return A string representing the current locale. + + @short Returns a the current locale. + */ + public native String locale(); + /** + Reads the value of an entry specified by pKey in the current group. + If you want to read a path, please use readPathEntry(). + @param pKey The key to search for. + @param aDefault A default value returned if the key was not found. + @return The value for this key. Can be null if aDefault is null. + + @short Reads the value of an entry specified by pKey in the current group. + */ + public native String readEntry(String pKey, String aDefault); + public native String readEntry(String pKey); + /** + Reads the value of an entry specified by pKey in the current group. + The value is treated as if it is of the type of the given default value. + Note that only the following TQVariant types are allowed : String, + StringList, List, Font, Point, Rect, Size, Color, Int, UInt, Bool, + Double, DateTime and Date. + @param pKey The key to search for. + @param aDefault A default value returned if the key was not found or + if the read value cannot be converted to the TQVariant.Type. + @return The value for the key or the default value if the key was not + found. + + @short Reads the value of an entry specified by pKey in the current group. + */ + public native TQVariant readPropertyEntry(String pKey, TQVariant aDefault); + /** + Reads a list of strings. + @param pKey The key to search for. + @param sep The list separator (default is ","). + @return The list. Empty if the entry does not exist. + + @short Reads a list of strings. + */ + public native ArrayList readListEntry(String pKey, char sep); + public native ArrayList readListEntry(String pKey); + /** + Reads a list of strings, but returns a default if the key + did not exist. + @param pKey The key to search for. + @param aDefault The default value to use if the key does not exist. + @param sep The list separator (default is ","). + @return The list. Contains aDefault if the Key does not exist. + + @short Reads a list of strings, but returns a default if the key did not exist. + */ + public native ArrayList readListEntry(String pKey, String[] aDefault, char sep); + public native ArrayList readListEntry(String pKey, String[] aDefault); + /** + Reads a list of Integers. + @param pKey The key to search for. + @return The list. Empty if the entry does not exist. + + @short Reads a list of Integers. + */ + public native int[] readIntListEntry(String pKey); + /** + Reads a path. + Read the value of an entry specified by pKey in the current group + and interpret it as a path. This means, dollar expansion is activated + for this value, so that e.g. $HOME gets expanded. + @param pKey The key to search for. + @param aDefault A default value returned if the key was not found. + @return The value for this key. Can be null if aDefault is null. + + @short Reads a path. + */ + public native String readPathEntry(String pKey, String aDefault); + public native String readPathEntry(String pKey); + /** + Reads a list of string paths. + Read the value of an entry specified by pKey in the current group + and interpret it as a list of paths. This means, dollar expansion is activated + for this value, so that e.g. $HOME gets expanded. + @param pKey The key to search for. + @param sep The list separator (default is ","). + @return The list. Empty if the entry does not exist. + + @short Reads a list of string paths. + */ + public native ArrayList readPathListEntry(String pKey, char sep); + public native ArrayList readPathListEntry(String pKey); + /** + Reads a numerical value. + Read the value of an entry specified by pKey in the current group + and interpret it numerically. + @param pKey The key to search for. + @param nDefault A default value returned if the key was not found or if + the read value cannot be interpreted. + @return The value for this key. + + @short Reads a numerical value. + */ + public native int readNumEntry(String pKey, int nDefault); + public native int readNumEntry(String pKey); + /** + Reads an unsigned numerical value. + Read the value of an entry specified by pKey in the current group + and interpret it numerically. + @param pKey The key to search for. + @param nDefault A default value returned if the key was not found or if + the read value cannot be interpreted. + @return The value for this key. + + @short Reads an unsigned numerical value. + */ + public native int readUnsignedNumEntry(String pKey, int nDefault); + public native int readUnsignedNumEntry(String pKey); + /** + Reads a numerical value. + Read the value of an entry specified by pKey in the current group + and interpret it numerically. + @param pKey The key to search for. + @param nDefault A default value returned if the key was not found or if + the read value cannot be interpreted. + @return The value for this key. + + @short Reads a numerical value. + */ + public native long readLongNumEntry(String pKey, long nDefault); + public native long readLongNumEntry(String pKey); + /** + Read an unsigned numerical value. + Read the value of an entry specified by pKey in the current group + and interpret it numerically. + @param pKey The key to search for. + @param nDefault A default value returned if the key was not found or if + the read value cannot be interpreted. + @return The value for this key. + + @short Read an unsigned numerical value. + */ + public native long readUnsignedLongNumEntry(String pKey, long nDefault); + public native long readUnsignedLongNumEntry(String pKey); + /** + Reads a 64-bit numerical value. + Read the value of an entry specified by pKey in the current group + and interpret it numerically. + @param pKey The key to search for. + @param nDefault A default value returned if the key was not found or if + the read value cannot be interpreted. + @return The value for this key. + + @short Reads a 64-bit numerical value. + */ + public native long readNum64Entry(String pKey, long nDefault); + public native long readNum64Entry(String pKey); + /** + Read an 64-bit unsigned numerical value. + Read the value of an entry specified by pKey in the current group + and interpret it numerically. + @param pKey The key to search for. + @param nDefault A default value returned if the key was not found or if + the read value cannot be interpreted. + @return The value for this key. + + @short Read an 64-bit unsigned numerical value. + */ + public native long readUnsignedNum64Entry(String pKey, long nDefault); + public native long readUnsignedNum64Entry(String pKey); + /** + Reads a floating point value. + Read the value of an entry specified by pKey in the current group + and interpret it numerically. + @param pKey The key to search for. + @param nDefault A default value returned if the key was not found or if + the read value cannot be interpreted. + @return The value for this key. + + @short Reads a floating point value. + */ + public native double readDoubleNumEntry(String pKey, double nDefault); + public native double readDoubleNumEntry(String pKey); + /** + Reads a TQFont value. + Read the value of an entry specified by pKey in the current group + and interpret it as a font object. + @param pKey The key to search for. + @param pDefault A default value (null TQFont by default) returned if the + key was not found or if the read value cannot be interpreted. + @return The value for this key. + + @short Reads a TQFont value. + */ + public native TQFont readFontEntry(String pKey, TQFont pDefault); + public native TQFont readFontEntry(String pKey); + /** + Reads a booleanean entry. + Read the value of an entry specified by pKey in the current group + and interpret it as a booleanean value. Currently "on" and "true" are + accepted as true, everything else if false. + @param pKey The key to search for + @param bDefault A default value returned if the key was not found. + @return The value for this key. + + @short Reads a boolean entry. + */ + public native boolean readBoolEntry(String pKey, boolean bDefault); + public native boolean readBoolEntry(String pKey); + /** + Reads a TQRect entry. + Read the value of an entry specified by pKey in the current group + and interpret it as a TQRect object. + @param pKey The key to search for + @param pDefault A default value (null TQRect by default) returned if the + key was not found or if the read value cannot be interpreted. + @return The value for this key. + + @short Reads a TQRect entry. + */ + public native TQRect readRectEntry(String pKey, TQRect pDefault); + public native TQRect readRectEntry(String pKey); + /** + Reads a TQPoint entry. + Read the value of an entry specified by pKey in the current group + and interpret it as a TQPoint object. + @param pKey The key to search for + @param pDefault A default value (null TQPoint by default) returned if the + key was not found or if the read value cannot be interpreted. + @return The value for this key. + + @short Reads a TQPoint entry. + */ + public native TQPoint readPointEntry(String pKey, TQPoint pDefault); + public native TQPoint readPointEntry(String pKey); + /** + Reads a TQSize entry. + Read the value of an entry specified by pKey in the current group + and interpret it as a TQSize object. + @param pKey The key to search for + @param pDefault A default value (null TQSize by default) returned if the + key was not found or if the read value cannot be interpreted. + @return The value for this key. + + @short Reads a TQSize entry. + */ + public native TQSize readSizeEntry(String pKey, TQSize pDefault); + public native TQSize readSizeEntry(String pKey); + /** + Reads a TQColor entry. + Read the value of an entry specified by pKey in the current group + and interpret it as a color. + @param pKey The key to search for. + @param pDefault A default value (null TQColor by default) returned if the + key was not found or if the value cannot be interpreted. + @return The value for this key. + + @short Reads a TQColor entry. + */ + public native TQColor readColorEntry(String pKey, TQColor pDefault); + public native TQColor readColorEntry(String pKey); + /** + Reads a Calendar entry. + Read the value of an entry specified by pKey in the current group + and interpret it as a date and time. + @param pKey The key to search for. + @param pDefault A default value ( currentDateTime() by default) + returned if the key was not found or if the read value cannot be + interpreted. + @return The value for this key. + + @short Reads a TQDateTime entry. + */ + public native Calendar readDateTimeEntry(String pKey, Calendar pDefault); + public native Calendar readDateTimeEntry(String pKey); + /** + Reads the value of an entry specified by pKey in the current group. + The untranslated entry is returned, you normally do not need this. + @param pKey The key to search for. + @param aDefault A default value returned if the key was not found. + @return The value for this key. + + @short Reads the value of an entry specified by pKey in the current group. + */ + public native String readEntryUntranslated(String pKey, String aDefault); + public native String readEntryUntranslated(String pKey); + /** + Writes a key/value pair. + This is stored in the most specific config file when destroying the + config object or when calling sync(). + If you want to write a path, please use writePathEntry(). + @param pKey The key to write. + @param pValue The value to write. + @param bPersistent If bPersistent is false, the entry's dirty + flag will not be set and thus the entry will + not be written to disk at deletion time. + @param bGlobal If bGlobal is true, the pair is not saved to the + application specific config file, but to the + global KDE config file. + @param bNLS If bNLS is true, the locale tag is added to the key + when writing it back. + @short Writes a key/value pair. + */ + public native void writeEntry(String pKey, String pValue, boolean bPersistent, boolean bGlobal, boolean bNLS); + public native void writeEntry(String pKey, String pValue, boolean bPersistent, boolean bGlobal); + public native void writeEntry(String pKey, String pValue, boolean bPersistent); + public native void writeEntry(String pKey, String pValue); + /** + writeEntry() Overridden to accept a property. + Note: Unlike the other writeEntry() functions, the old value is + _not_ returned here! + @param pKey The key to write + @param rValue The property to write + @param bPersistent If bPersistent is false, the entry's dirty flag + will not be set and thus the entry will not be + written to disk at deletion time. + @param bGlobal If bGlobal is true, the pair is not saved to the + application specific config file, but to the + global KDE config file. + @param bNLS If bNLS is true, the locale tag is added to the key + when writing it back. + @short writeEntry() Overridden to accept a property. + @see #writeEntry + */ + public native void writeEntry(String pKey, TQVariant rValue, boolean bPersistent, boolean bGlobal, boolean bNLS); + public native void writeEntry(String pKey, TQVariant rValue, boolean bPersistent, boolean bGlobal); + public native void writeEntry(String pKey, TQVariant rValue, boolean bPersistent); + public native void writeEntry(String pKey, TQVariant rValue); + /** + writeEntry() overridden to accept a list of strings. + Note: Unlike the other writeEntry() functions, the old value is + _not_ returned here! + @param pKey The key to write + @param rValue The list to write + @param sep The list separator (default is ","). + @param bPersistent If bPersistent is false, the entry's dirty flag + will not be set and thus the entry will not be + written to disk at deletion time. + @param bGlobal If bGlobal is true, the pair is not saved to the + application specific config file, but to the + global KDE config file. + @param bNLS If bNLS is true, the locale tag is added to the key + when writing it back. + @short writeEntry() overridden to accept a list of strings. + @see #writeEntry + */ + public native void writeEntry(String pKey, String[] rValue, char sep, boolean bPersistent, boolean bGlobal, boolean bNLS); + public native void writeEntry(String pKey, String[] rValue, char sep, boolean bPersistent, boolean bGlobal); + public native void writeEntry(String pKey, String[] rValue, char sep, boolean bPersistent); + public native void writeEntry(String pKey, String[] rValue, char sep); + public native void writeEntry(String pKey, String[] rValue); + /** + writeEntry() overridden to accept a list of Integers. + Note: Unlike the other writeEntry() functions, the old value is + _not_ returned here! + @param pKey The key to write + @param rValue The list to write + @param bPersistent If bPersistent is false, the entry's dirty flag + will not be set and thus the entry will not be + written to disk at deletion time. + @param bGlobal If bGlobal is true, the pair is not saved to the + application specific config file, but to the + global KDE config file. + @param bNLS If bNLS is true, the locale tag is added to the key + when writing it back. + @short writeEntry() overridden to accept a list of Integers. + @see #writeEntry + */ + public native void writeEntry(String pKey, int[] rValue, boolean bPersistent, boolean bGlobal, boolean bNLS); + public native void writeEntry(String pKey, int[] rValue, boolean bPersistent, boolean bGlobal); + public native void writeEntry(String pKey, int[] rValue, boolean bPersistent); + public native void writeEntry(String pKey, int[] rValue); + /** + Write a (key/value) pair. + Same as above, but writes a numerical value. + @param pKey The key to write. + @param nValue The value to write. + @param bPersistent If bPersistent is false, the entry's dirty + flag will not be set and thus the entry will not be written to + disk at deletion time. + @param bGlobal If bGlobal is true, the pair is not saved to the + application specific config file, but to the + global KDE config file. + @param bNLS If bNLS is true, the locale tag is added to the key + when writing it back. + @short Write a (key/value) pair. + */ + public native void writeEntry(String pKey, int nValue, boolean bPersistent, boolean bGlobal, boolean bNLS); + public native void writeEntry(String pKey, int nValue, boolean bPersistent, boolean bGlobal); + public native void writeEntry(String pKey, int nValue, boolean bPersistent); + public native void writeEntry(String pKey, int nValue); + /** + Writes a (key/value) pair. + Same as above, but write a long numerical value. + @param pKey The key to write. + @param nValue The value to write. + @param bPersistent If bPersistent is false, the entry's dirty + flag will not be set and thus the entry will not be written to + disk at deletion time. + @param bGlobal If bGlobal is true, the pair is not saved to the + application specific config file, but to the global KDE config file. + @param bNLS If bNLS is true, the locale tag is added to the key + when writing it back. + @short Writes a (key/value) pair. + */ + public native void writeEntry(String pKey, long nValue, boolean bPersistent, boolean bGlobal, boolean bNLS); + public native void writeEntry(String pKey, long nValue, boolean bPersistent, boolean bGlobal); + public native void writeEntry(String pKey, long nValue, boolean bPersistent); + public native void writeEntry(String pKey, long nValue); + /** + Writes a (key/value) pair. + Same as above, but writes a floating-point value. + @param pKey The key to write. + @param nValue The value to write. + @param bPersistent If bPersistent is false, the entry's dirty + flag will not be set and thus the entry will not be written to + disk at deletion time. + @param bGlobal If bGlobal is true, the pair is not saved to the + application specific config file, but to the global KDE config file. + @param format format determines the format to which the value + is converted. Default is 'g'. + @param precision precision sets the precision with which the + value is converted. Default is 6 as in String. + @param bNLS If bNLS is true, the locale tag is added to the key + when writing it back. + @short Writes a (key/value) pair. + */ + public native void writeEntry(String pKey, double nValue, boolean bPersistent, boolean bGlobal, char format, int precision, boolean bNLS); + public native void writeEntry(String pKey, double nValue, boolean bPersistent, boolean bGlobal, char format, int precision); + public native void writeEntry(String pKey, double nValue, boolean bPersistent, boolean bGlobal, char format); + public native void writeEntry(String pKey, double nValue, boolean bPersistent, boolean bGlobal); + public native void writeEntry(String pKey, double nValue, boolean bPersistent); + public native void writeEntry(String pKey, double nValue); + /** + Writes a (key/value) pair. + Same as above, but writes a booleanean value. + @param pKey The key to write. + @param bValue The value to write. + @param bPersistent If bPersistent is false, the entry's dirty + flag will not be set and thus the entry will not be written to + disk at deletion time. + @param bGlobal If bGlobal is true, the pair is not saved to the + application specific config file, but to the global KDE config file. + @param bNLS If bNLS is true, the locale tag is added to the key + when writing it back. + @short Writes a (key/value) pair. + */ + public native void writeEntry(String pKey, boolean bValue, boolean bPersistent, boolean bGlobal, boolean bNLS); + public native void writeEntry(String pKey, boolean bValue, boolean bPersistent, boolean bGlobal); + public native void writeEntry(String pKey, boolean bValue, boolean bPersistent); + public native void writeEntry(String pKey, boolean bValue); + /** + Writes a (key/value) pair. + Same as above, but writes a font value. + @param pKey The key to write. + @param rFont The font value to write. + @param bPersistent If bPersistent is false, the entry's dirty + flag will not be set and thus the entry will not be written to + disk at deletion time. + @param bGlobal If bGlobal is true, the pair is not saved to the + application specific config file, but to the global KDE config file. + @param bNLS If bNLS is true, the locale tag is added to the key + when writing it back. + @short Writes a (key/value) pair. + */ + public native void writeEntry(String pKey, TQFont rFont, boolean bPersistent, boolean bGlobal, boolean bNLS); + public native void writeEntry(String pKey, TQFont rFont, boolean bPersistent, boolean bGlobal); + public native void writeEntry(String pKey, TQFont rFont, boolean bPersistent); + public native void writeEntry(String pKey, TQFont rFont); + /** + Writes a (key/value) pair. + Same as above, but write a color entry. + Note: Unlike the other writeEntry() functions, the old value is + _not_ returned here! + @param pKey The key to write. + @param rColor The color value to write. + @param bPersistent If bPersistent is false, the entry's dirty + flag will not be set and thus the entry will not be written to + disk at deletion time. + @param bGlobal If bGlobal is true, the pair is not saved to the + application specific config file, but to the global KDE config file. + @param bNLS If bNLS is true, the locale tag is added to the key + when writing it back. + @short Writes a (key/value) pair. + */ + public native void writeEntry(String pKey, TQColor rColor, boolean bPersistent, boolean bGlobal, boolean bNLS); + public native void writeEntry(String pKey, TQColor rColor, boolean bPersistent, boolean bGlobal); + public native void writeEntry(String pKey, TQColor rColor, boolean bPersistent); + public native void writeEntry(String pKey, TQColor rColor); + /** + Writes a (key/value) pair. + Same as above, but writes a date and time entry. + Note: Unlike the other writeEntry() functions, the old value is + not returned here! + @param pKey The key to write. + @param rDateTime The date and time value to write. + @param bPersistent If bPersistent is false, the entry's dirty + flag will not be set and thus the entry will not be written to + disk at deletion time. + @param bGlobal If bGlobal is true, the pair is not saved to the + application specific config file, but to the global KDE config file. + @param bNLS If bNLS is true, the locale tag is added to the key + when writing it back. + @short Writes a (key/value) pair. + */ + public native void writeEntry(String pKey, Calendar rDateTime, boolean bPersistent, boolean bGlobal, boolean bNLS); + public native void writeEntry(String pKey, Calendar rDateTime, boolean bPersistent, boolean bGlobal); + public native void writeEntry(String pKey, Calendar rDateTime, boolean bPersistent); + public native void writeEntry(String pKey, Calendar rDateTime); + /** + Writes a (key/value) pair. + Same as above, but writes a rectangle. + Note: Unlike the other writeEntry() functions, the old value is + _not_ returned here! + @param pKey The key to write. + @param rValue The rectangle value to write. + @param bPersistent If bPersistent is false, the entry's dirty + flag will not be set and thus the entry will not be written to + disk at deletion time. + @param bGlobal If bGlobal is true, the pair is not saved to the + application specific config file, but to the global KDE config file. + @param bNLS If bNLS is true, the locale tag is added to the key + when writing it back. + @short Writes a (key/value) pair. + */ + public native void writeEntry(String pKey, TQRect rValue, boolean bPersistent, boolean bGlobal, boolean bNLS); + public native void writeEntry(String pKey, TQRect rValue, boolean bPersistent, boolean bGlobal); + public native void writeEntry(String pKey, TQRect rValue, boolean bPersistent); + public native void writeEntry(String pKey, TQRect rValue); + /** + Writes a (key/value) pair. + Same as above, but writes a point. + Note: Unlike the other writeEntry() functions, the old value is + _not_ returned here! + @param pKey The key to write. + @param rValue The point value to write. + @param bPersistent If bPersistent is false, the entry's dirty + flag will not be set and thus the entry will not be written to + disk at deletion time. + @param bGlobal If bGlobal is true, the pair is not saved to the + application specific config file, but to the global KDE config file. + @param bNLS If bNLS is true, the locale tag is added to the key + when writing it back. + @short Writes a (key/value) pair. + */ + public native void writeEntry(String pKey, TQPoint rValue, boolean bPersistent, boolean bGlobal, boolean bNLS); + public native void writeEntry(String pKey, TQPoint rValue, boolean bPersistent, boolean bGlobal); + public native void writeEntry(String pKey, TQPoint rValue, boolean bPersistent); + public native void writeEntry(String pKey, TQPoint rValue); + /** + Writes a (key/value) pair. + Same as above, but writes a size. + Note: Unlike the other writeEntry() functions, the old value is + _not_ returned here! + @param pKey The key to write. + @param rValue The size value to write. + @param bPersistent If bPersistent is false, the entry's dirty + flag will not be set and thus the entry will not be written to + disk at deletion time. + @param bGlobal If bGlobal is true, the pair is not saved to the + application specific config file, but to the global KDE config file. + @param bNLS If bNLS is true, the locale tag is added to the key + when writing it back. + @short Writes a (key/value) pair. + */ + public native void writeEntry(String pKey, TQSize rValue, boolean bPersistent, boolean bGlobal, boolean bNLS); + public native void writeEntry(String pKey, TQSize rValue, boolean bPersistent, boolean bGlobal); + public native void writeEntry(String pKey, TQSize rValue, boolean bPersistent); + public native void writeEntry(String pKey, TQSize rValue); + /** + Writes a file path. + It is checked whether the path is located under $HOME. If so the + path is written out with the user's home-directory replaced with + $HOME. The path should be read back with readPathEntry() + @param pKey The key to write. + @param path The path to write. + @param bPersistent If bPersistent is false, the entry's dirty + flag will not be set and thus the entry will not be written to + disk at deletion time. + @param bGlobal If bGlobal is true, the pair is not saved to the + application specific config file, but to the global KDE config file. + @param bNLS If bNLS is true, the locale tag is added to the key + when writing it back. + @short Writes a file path. + */ + public native void writePathEntry(String pKey, String path, boolean bPersistent, boolean bGlobal, boolean bNLS); + public native void writePathEntry(String pKey, String path, boolean bPersistent, boolean bGlobal); + public native void writePathEntry(String pKey, String path, boolean bPersistent); + public native void writePathEntry(String pKey, String path); + /** + writePathEntry() overridden to accept a list of paths (strings). + It is checked whether the paths are located under $HOME. If so each of + the paths are written out with the user's home-directory replaced with + $HOME. The paths should be read back with readPathListEntry() + @param pKey The key to write + @param rValue The list to write + @param sep The list separator (default is ","). + @param bPersistent If bPersistent is false, the entry's dirty flag + will not be set and thus the entry will not be + written to disk at deletion time. + @param bGlobal If bGlobal is true, the pair is not saved to the + application specific config file, but to the + global KDE config file. + @param bNLS If bNLS is true, the locale tag is added to the key + when writing it back. + @short writePathEntry() overridden to accept a list of paths (strings). + @see #writePathEntry + @see #readPathListEntry + */ + public native void writePathEntry(String pKey, String[] rValue, char sep, boolean bPersistent, boolean bGlobal, boolean bNLS); + public native void writePathEntry(String pKey, String[] rValue, char sep, boolean bPersistent, boolean bGlobal); + public native void writePathEntry(String pKey, String[] rValue, char sep, boolean bPersistent); + public native void writePathEntry(String pKey, String[] rValue, char sep); + public native void writePathEntry(String pKey, String[] rValue); + /** + Deletes the entry specified by pKey in the current group. + @param pKey The key to delete. + @param bGlobal If bGlobal is true, the pair is not removed from the + application specific config file, but to the global KDE config file. + @param bNLS If bNLS is true, the key with the locale tag is removed. + @short Deletes the entry specified by pKey in the current group. + */ + public native void deleteEntry(String pKey, boolean bNLS, boolean bGlobal); + public native void deleteEntry(String pKey, boolean bNLS); + public native void deleteEntry(String pKey); + /** + Deletes a configuration entry group + If the group is not empty and bDeep is false, nothing gets + deleted and false is returned. + If this group is the current group and it is deleted, the + current group is undefined and should be set with setGroup() + before the next operation on the configuration object. + @param group The name of the group + @param bDeep Specify whether non-empty groups should be completely + deleted (including their entries). + @param bGlobal If bGlobal is true, the group is not removed from the + application specific config file, but from the global KDE config file. + @return If the group is not empty and bDeep is false, + deleteGroup returns false. + + @short Deletes a configuration entry group + */ + public native boolean deleteGroup(String group, boolean bDeep, boolean bGlobal); + public native boolean deleteGroup(String group, boolean bDeep); + public native boolean deleteGroup(String group); + /** + Turns on or off "dollar expansion" (see TDEConfigBase introduction) + when reading config entries. + Dollar sign expansion is initially OFF. + @param _bExpand Tf true, dollar expansion is turned on. + @short Turns on or off "dollar expansion" (see TDEConfigBase introduction) when reading config entries. + */ + public native void setDollarExpansion(boolean _bExpand); + public native void setDollarExpansion(); + /** + Returns whether dollar expansion is on or off. It is initially OFF. + @return true if dollar expansion is on. + + @short Returns whether dollar expansion is on or off. + */ + public native boolean isDollarExpansion(); + /** + Mark the config object as "clean," i.e. don't write dirty entries + at destruction time. If bDeep is false, only the global dirty + flag of the TDEConfig object gets cleared. If you then call + writeEntry() again, the global dirty flag is set again and all + dirty entries will be written at a subsequent sync() call. + Classes that derive from TDEConfigBase should override this + method and implement storage-specific behavior, as well as + calling the TDEConfigBase.rollback() explicitly in the initializer. + @param bDeep If true, the dirty flags of all entries are cleared, + as well as the global dirty flag. + @short Mark the config object as "clean," i. + */ + public native void rollback(boolean bDeep); + public native void rollback(); + /** + Flushes all changes that currently reside only in memory + back to disk / permanent storage. Dirty configuration entries are + written to the most specific file available. + Asks the back end to flush out all pending writes, and then calls + rollback(). No changes are made if the object has readOnly + status. + You should call this from your destructor in derivative classes. + @short Flushes all changes that currently reside only in memory back to disk / permanent storage. + @see #rollback + @see #isReadOnly + */ + public native void sync(); + /** + Checks whether the config file has any dirty (modified) entries. + @return true if the config file has any dirty (modified) entries. + + @short Checks whether the config file has any dirty (modified) entries. + */ + public native boolean isDirty(); + /** + Sets the config object's read-only status. + @param _ro If true, the config object will not write out any + changes to disk even if it is destroyed or sync() is called. + @short Sets the config object's read-only status. + */ + public native void setReadOnly(boolean _ro); + /** + Returns the read-only status of the config object. + @return The read-only status. + + @short Returns the read-only status of the config object. + */ + public native boolean isReadOnly(); + /** + Checks whether the key has an entry in the currently active group. + Use this to determine whether a key is not specified for the current + group (hasKey() returns false). Keys with null data are considered + nonexistent. + @param key The key to search for. + @return If true, the key is available. + + @short Checks whether the key has an entry in the currently active group. + */ + public native boolean hasKey(String key); + /** + Returns a map (tree) of entries for all entries in a particular + group. Only the actual entry string is returned, none of the + other internal data should be included. + @param group A group to get keys from. + @return A map of entries in the group specified, indexed by key. + The returned map may be empty if the group is not found. + + @short Returns a map (tree) of entries for all entries in a particular group. + @see org.kde.qt.TQMap + */ + // TQMap entryMap(const TQString& arg1); >>>> NOT CONVERTED + /** + Reparses all configuration files. This is useful for programs + that use stand alone graphical configuration tools. The base + method implemented here only clears the group list and then + appends the default group. + Derivative classes should clear any internal data structures and + then simply call parseConfigFiles() when implementing this + method. + @short Reparses all configuration files. + @see #parseConfigFiles + */ + public native void reparseConfiguration(); + /** + Checks whether this configuration file can be modified. + @return whether changes may be made to this configuration file. + + @short Checks whether this configuration file can be modified. + */ + public native boolean isImmutable(); + /** + Checks whether it is possible to change the given group. + @param group the group to check + @return whether changes may be made to group in this configuration + file. + + @short Checks whether it is possible to change the given group. + */ + public native boolean groupIsImmutable(String group); + /** + Checks whether it is possible to change the given entry. + @param key the key to check + @return whether the entry key may be changed in the current group + in this configuration file. + + @short Checks whether it is possible to change the given entry. + */ + public native boolean entryIsImmutable(String key); + /** + Returns the state of the app-config object. + Possible return values + are NoAccess (the application-specific config file could not be + opened neither read-write nor read-only), ReadOnly (the + application-specific config file is opened read-only, but not + read-write) and ReadWrite (the application-specific config + file is opened read-write). + @return the state of the app-config object + + @short Returns the state of the app-config object. + @see ConfigState + */ + public native int getConfigState(); + /** + Check whether the config files are writable. + @param warnUser Warn the user if the configuration files are not writable. + @return Indicates that all of the configuration files used are writable. + + @short Check whether the config files are writable. + */ + public native boolean checkConfigFilesWritable(boolean warnUser); + /** + When set, all readEntry and readXXXEntry calls return the system + wide (default) values instead of the user's preference. + This is off by default. + @short When set, all readEntry and readXXXEntry calls return the system wide (default) values instead of the user's preference. + */ + public native void setReadDefaults(boolean b); + /** + @return true if all readEntry and readXXXEntry calls return the system + wide (default) values instead of the user's preference. + + @short + */ + public native boolean readDefaults(); + /** + Reverts the entry with key key in the current group in the + application specific config file to either the system wide (default) + value or the value specified in the global KDE config file. + To revert entries in the global KDE config file, the global KDE config + file should be opened explicitly in a separate config object. + @param key The key of the entry to revert. + @short Reverts the entry with key key in the current group in the application specific config file to either the system wide (default) value or the value specified in the global KDE config file. + */ + public native void revertToDefault(String key); + /** + Returns whether a default is specified for an entry in either the + system wide configuration file or the global KDE config file. + If an application computes a default value at runtime for + a certain entry, e.g. like: +
    +		 TQColor computedDefault = kapp.palette().color(TQPalette.Active, TQColorGroup.Text)
    +		 TQColor color = config.readEntry(key, computedDefault);
    +		 \encode
    +			 Then it may wish to make the following check before
    +		 writing back changes:
    +		 
    +		 if ( (value == computedDefault) && !config.hasDefault(key) )
    +		    config.revertToDefault(key)
    +		 else
    +		    config.writeEntry(key, value)
    +		 
    + This ensures that as long as the entry is not modified to differ from + the computed default, the application will keep using the computed default + and will follow changes the computed default makes over time. + @param key The key of the entry to check. + @short Returns whether a default is specified for an entry in either the system wide configuration file or the global KDE config file. + */ + public native boolean hasDefault(String key); +} diff --git a/kdejava/koala/org/kde/koala/TDEConfigGroup.java b/kdejava/koala/org/kde/koala/TDEConfigGroup.java new file mode 100644 index 00000000..344597e8 --- /dev/null +++ b/kdejava/koala/org/kde/koala/TDEConfigGroup.java @@ -0,0 +1,53 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.QtSupport; + +/** + + A TDEConfigBase derived class for one specific group in a TDEConfig object. + @short A TDEConfigBase derived class for one specific group in a TDEConfig object. + +*/ +public class TDEConfigGroup extends TDEConfigBase { + protected TDEConfigGroup(Class dummy){super((Class) null);} + /** + Construct a config group corresponding to group in master. + group is the group name encoded in UTF-8. + @short Construct a config group corresponding to group in master. + */ + public TDEConfigGroup(TDEConfigBase master, String group) { + super((Class) null); + newTDEConfigGroup(master,group); + } + private native void newTDEConfigGroup(TDEConfigBase master, String group); + /** + Delete all entries in the entire group + @param bGlobal If bGlobal is true, the entries are not removed + from the application specific config file, but from the global + KDE config file. + @short Delete all entries in the entire group + */ + public native void deleteGroup(boolean bGlobal); + public native void deleteGroup(); + /** + Checks whether it is possible to change this group. + @return whether changes may be made to this group in this configuration + file. + + @short Checks whether it is possible to change this group. + */ + public native boolean groupIsImmutable(); + public native void setDirty(boolean b); + public native void putData(KEntryKey _key, KEntry _data, boolean _checkGroup); + public native void putData(KEntryKey _key, KEntry _data); + public native KEntry lookupData(KEntryKey _key); + public native void sync(); + /** Deletes the wrapped C++ instance */ + protected native void finalize() throws InternalError; + /** Delete the wrapped C++ instance ahead of finalize() */ + public native void dispose(); + /** Has the wrapped C++ instance been deleted? */ + public native boolean isDisposed(); +} diff --git a/kdejava/koala/org/kde/koala/TDEConfigGroupSaver.java b/kdejava/koala/org/kde/koala/TDEConfigGroupSaver.java new file mode 100644 index 00000000..6cc7051d --- /dev/null +++ b/kdejava/koala/org/kde/koala/TDEConfigGroupSaver.java @@ -0,0 +1,66 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.QtSupport; + +/** + + Helper class to facilitate working with TDEConfig / KSimpleConfig + groups. + Careful programmers always set the group of a + TDEConfig KSimpleConfig object to the group they want to read from + and set it back to the old one of afterwards. This is usually + written as: +
    + String oldgroup config.group();
    + config.setGroup( "TheGroupThatIWant" );
    + ...
    + config.writeEntry( "Blah", "Blubb" );
    + config.setGroup( oldgroup );
    + 
    + In order to facilitate this task, you can use + TDEConfigGroupSaver. Simply construct such an object ON THE STACK + when you want to switch to a new group. Then, when the object goes + out of scope, the group will automatically be restored. If you + want to use several different groups within a function or method, + you can still use TDEConfigGroupSaver: Simply enclose all work with + one group (including the creation of the TDEConfigGroupSaver object) + in one block. + TDEConfigGroup provides similar functionality in a more object oriented + way. + @author Matthias Kalle Dalheimer + + @short Helper class for easier use of TDEConfig/KSimpleConfig groups. + @see TDEConfigBase + @see TDEConfig + @see KSimpleConfig + @see TDEConfigGroup + +*/ +public class TDEConfigGroupSaver implements QtSupport { + private long _qt; + private boolean _allocatedInJavaWorld = true; + protected TDEConfigGroupSaver(Class dummy){} + + /** + Constructor. You pass a pointer to the TDEConfigBase-derived + object you want to work with and a string indicating the _new_ + group. + @param config The TDEConfigBase-derived object this + TDEConfigGroupSaver works on. + @param group The new group that the config object should switch to. + @short Constructor. + */ + public TDEConfigGroupSaver(TDEConfigBase config, String group) { + newTDEConfigGroupSaver(config,group); + } + private native void newTDEConfigGroupSaver(TDEConfigBase config, String group); + public native TDEConfigBase config(); + /** Deletes the wrapped C++ instance */ + protected native void finalize() throws InternalError; + /** Delete the wrapped C++ instance ahead of finalize() */ + public native void dispose(); + /** Has the wrapped C++ instance been deleted? */ + public native boolean isDisposed(); +} diff --git a/kdejava/koala/org/kde/koala/TDEConfigINIBackEnd.java b/kdejava/koala/org/kde/koala/TDEConfigINIBackEnd.java new file mode 100644 index 00000000..fba09220 --- /dev/null +++ b/kdejava/koala/org/kde/koala/TDEConfigINIBackEnd.java @@ -0,0 +1,117 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.QtSupport; +import org.kde.qt.TQFile; + +/** + + Class for KDE INI-style configuration file loading/saving. + @author Preston Brown , + Matthias Kalle Dalheimer + + @short Class for KDE INI-style configuration file loading/saving. + +*/ +public class TDEConfigINIBackEnd extends TDEConfigBackEnd { + protected TDEConfigINIBackEnd(Class dummy){super((Class) null);} + /** + Constructs an ini-style configuration back end. + @param _config Specifies the configuration object which values + will be passed to as they are read, or from where values + to be written to will be obtained from. + @param _fileName The name of the file in which config + data is stored. All registered configuration directories + will be looked in in order of decreasing relevance. + @param _resType the resource type of the fileName specified, _if_ + it is not an absolute path (otherwise this parameter is ignored). + @param _useKDEGlobals If true, the user's system-wide kdeglobals file + will be imported into the config object. If false, only + the filename specified will be dealt with. + @short Constructs an ini-style configuration back end. + */ + public TDEConfigINIBackEnd(TDEConfigBase _config, String _fileName, String _resType, boolean _useKDEGlobals) { + super((Class) null); + newTDEConfigINIBackEnd(_config,_fileName,_resType,_useKDEGlobals); + } + private native void newTDEConfigINIBackEnd(TDEConfigBase _config, String _fileName, String _resType, boolean _useKDEGlobals); + public TDEConfigINIBackEnd(TDEConfigBase _config, String _fileName, String _resType) { + super((Class) null); + newTDEConfigINIBackEnd(_config,_fileName,_resType); + } + private native void newTDEConfigINIBackEnd(TDEConfigBase _config, String _fileName, String _resType); + /** + Parses all INI-style configuration files for a config object. + @return Whether or not parsing was successful. + + @short Parses all INI-style configuration files for a config object. + */ + public native boolean parseConfigFiles(); + /** + Writes configuration data to file(s). + @param bMerge Specifies whether the old config file already + on disk should be merged in with the data in memory. If true, + data is read off the disk and merged. If false, the on-disk + file is removed and only in-memory data is written out. + @short Writes configuration data to file(s). + */ + public native void sync(boolean bMerge); + public native void sync(); + /** + Parses one configuration file. + @param rFile The configuration file to parse + @param pWriteBackMap If specified, points to a KEntryMap where + the data read from the file should be stored, instead of + inserting them directly into the configuration object. + Use this area as a "scratchpad" when you need to know what is + on disk but don't want to effect the configuration object. + @param bGlobal Specifies whether entries should be marked as + belonging to the global KDE configuration file rather + than the application-specific KDE configuration file(s). + @param bDefault Specifies whether entries should be marked as + being default values. + @short Parses one configuration file. + */ + // void parseSingleConfigFile(TQFile& arg1,KEntryMap* arg2,bool arg3,bool arg4); >>>> NOT CONVERTED + // void parseSingleConfigFile(TQFile& arg1,KEntryMap* arg2,bool arg3); >>>> NOT CONVERTED + // void parseSingleConfigFile(TQFile& arg1,KEntryMap* arg2); >>>> NOT CONVERTED + protected native void parseSingleConfigFile(TQFile rFile); + /** + Writes configuration file back. + @param filename The name of the file to write. + @param bGlobal Specifies whether to write only entries which + are marked as belonging to the global KDE config file. + If this is false, it skips those entries. + @param bMerge Specifies whether the old config file already + on disk should be merged in with the data in memory. If true, + data is read off the disk and merged. If false, the on-disk + file is removed and only in-memory data is written out. + @return Whether some entries are left to be written to other + files. + + @short Writes configuration file back. + */ + protected native boolean writeConfigFile(String filename, boolean bGlobal, boolean bMerge); + protected native boolean writeConfigFile(String filename, boolean bGlobal); + protected native boolean writeConfigFile(String filename); + /** Get the entry map. + @param map the entries will be stored in this object. + @param bGlobal Specifies whether to get only entries which + are marked as belonging to the global KDE config file. + If this is false, it skips those entries. + @param mergeFile if not null, the dirty entries for this file will + be merged. + @return Whether there will be some entries left for writing to other + files. + + @short Get the entry map. + */ + // bool getEntryMap(KEntryMap& arg1,bool arg2,TQFile* arg3); >>>> NOT CONVERTED + /** Deletes the wrapped C++ instance */ + protected native void finalize() throws InternalError; + /** Delete the wrapped C++ instance ahead of finalize() */ + public native void dispose(); + /** Has the wrapped C++ instance been deleted? */ + public native boolean isDisposed(); +} diff --git a/kdejava/koala/org/kde/koala/TDEIO.java b/kdejava/koala/org/kde/koala/TDEIO.java new file mode 100644 index 00000000..7fe6837d --- /dev/null +++ b/kdejava/koala/org/kde/koala/TDEIO.java @@ -0,0 +1,1179 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.TQDomDocument; +import org.kde.qt.TQMimeSourceInterface; +import org.kde.qt.QtSupport; +import org.kde.qt.TQDataStream; +import java.util.ArrayList; +import org.kde.qt.TQMimeSource; +import org.kde.qt.TQWidget; + +/** + + @short A namespace for KIO globals. + +*/ +public class KIO { + public static final int S_SKIP = 1; + public static final int S_AUTO_SKIP = 2; + public static final int S_CANCEL = 0; + + public static final int M_OVERWRITE = 1; + public static final int M_OVERWRITE_ITSELF = 2; + public static final int M_SKIP = 4; + public static final int M_SINGLE = 8; + public static final int M_MULTI = 16; + public static final int M_RESUME = 32; + public static final int M_NORENAME = 64; + + /** + The result of open_RenameDlg(). + @short The result of open_RenameDlg(). + */ + public static final int R_RESUME = 6; + public static final int R_RESUME_ALL = 7; + public static final int R_OVERWRITE = 4; + public static final int R_OVERWRITE_ALL = 5; + public static final int R_SKIP = 2; + public static final int R_AUTO_SKIP = 3; + public static final int R_RENAME = 1; + public static final int R_CANCEL = 0; + + /** + Commands that can be invoked by a job. + @short Commands that can be invoked by a job. + */ + public static final int CMD_HOST = '0'; + public static final int CMD_CONNECT = '1'; + public static final int CMD_DISCONNECT = '2'; + public static final int CMD_SLAVE_STATUS = '3'; + public static final int CMD_SLAVE_CONNECT = '4'; + public static final int CMD_SLAVE_HOLD = '5'; + public static final int CMD_NONE = 'A'; + public static final int CMD_TESTDIR = 'B'; + public static final int CMD_GET = 'C'; + public static final int CMD_PUT = 'D'; + public static final int CMD_STAT = 'E'; + public static final int CMD_MIMETYPE = 'F'; + public static final int CMD_LISTDIR = 'G'; + public static final int CMD_MKDIR = 'H'; + public static final int CMD_RENAME = 'I'; + public static final int CMD_COPY = 'J'; + public static final int CMD_DEL = 'K'; + public static final int CMD_CHMOD = 'L'; + public static final int CMD_SPECIAL = 'M'; + public static final int CMD_USERPASS = 'N'; + public static final int CMD_REPARSECONFIGURATION = 'O'; + public static final int CMD_META_DATA = 'P'; + public static final int CMD_SYMLINK = 'Q'; + public static final int CMD_SUBURL = 'R'; + public static final int CMD_MESSAGEBOXANSWER = 'S'; + public static final int CMD_RESUMEANSWER = 'T'; + public static final int CMD_CONFIG = 'U'; + public static final int CMD_MULTI_GET = 'V'; + + /** + Error codes that can be emitted by KIO. + @short Error codes that can be emitted by KIO. + */ + public static final int ERR_CANNOT_OPEN_FOR_READING = 1; + public static final int ERR_CANNOT_OPEN_FOR_WRITING = 2; + public static final int ERR_CANNOT_LAUNCH_PROCESS = 3; + public static final int ERR_INTERNAL = 4; + public static final int ERR_MALFORMED_URL = 5; + public static final int ERR_UNSUPPORTED_PROTOCOL = 6; + public static final int ERR_NO_SOURCE_PROTOCOL = 7; + public static final int ERR_UNSUPPORTED_ACTION = 8; + public static final int ERR_IS_DIRECTORY = 9; + public static final int ERR_IS_FILE = 10; + public static final int ERR_DOES_NOT_EXIST = 11; + public static final int ERR_FILE_ALREADY_EXIST = 12; + public static final int ERR_DIR_ALREADY_EXIST = 13; + public static final int ERR_UNKNOWN_HOST = 14; + public static final int ERR_ACCESS_DENIED = 15; + public static final int ERR_WRITE_ACCESS_DENIED = 16; + public static final int ERR_CANNOT_ENTER_DIRECTORY = 17; + public static final int ERR_PROTOCOL_IS_NOT_A_FILESYSTEM = 18; + public static final int ERR_CYCLIC_LINK = 19; + public static final int ERR_USER_CANCELED = 20; + public static final int ERR_CYCLIC_COPY = 21; + public static final int ERR_COULD_NOT_CREATE_SOCKET = 22; + public static final int ERR_COULD_NOT_CONNECT = 23; + public static final int ERR_CONNECTION_BROKEN = 24; + public static final int ERR_NOT_FILTER_PROTOCOL = 25; + public static final int ERR_COULD_NOT_MOUNT = 26; + public static final int ERR_COULD_NOT_UNMOUNT = 27; + public static final int ERR_COULD_NOT_READ = 28; + public static final int ERR_COULD_NOT_WRITE = 29; + public static final int ERR_COULD_NOT_BIND = 30; + public static final int ERR_COULD_NOT_LISTEN = 31; + public static final int ERR_COULD_NOT_ACCEPT = 32; + public static final int ERR_COULD_NOT_LOGIN = 33; + public static final int ERR_COULD_NOT_STAT = 34; + public static final int ERR_COULD_NOT_CLOSEDIR = 35; + public static final int ERR_COULD_NOT_MKDIR = 37; + public static final int ERR_COULD_NOT_RMDIR = 38; + public static final int ERR_CANNOT_RESUME = 39; + public static final int ERR_CANNOT_RENAME = 40; + public static final int ERR_CANNOT_CHMOD = 41; + public static final int ERR_CANNOT_DELETE = 42; + public static final int ERR_SLAVE_DIED = 43; + public static final int ERR_OUT_OF_MEMORY = 44; + public static final int ERR_UNKNOWN_PROXY_HOST = 45; + public static final int ERR_COULD_NOT_AUTHENTICATE = 46; + public static final int ERR_ABORTED = 47; + public static final int ERR_INTERNAL_SERVER = 48; + public static final int ERR_SERVER_TIMEOUT = 49; + public static final int ERR_SERVICE_NOT_AVAILABLE = 50; + public static final int ERR_UNKNOWN = 51; + public static final int ERR_UNKNOWN_INTERRUPT = 53; + public static final int ERR_CANNOT_DELETE_ORIGINAL = 54; + public static final int ERR_CANNOT_DELETE_PARTIAL = 55; + public static final int ERR_CANNOT_RENAME_ORIGINAL = 56; + public static final int ERR_CANNOT_RENAME_PARTIAL = 57; + public static final int ERR_NEED_PASSWD = 58; + public static final int ERR_CANNOT_SYMLINK = 59; + public static final int ERR_NO_CONTENT = 60; + public static final int ERR_DISK_FULL = 61; + public static final int ERR_IDENTICAL_FILES = 62; + public static final int ERR_SLAVE_DEFINED = 63; + public static final int ERR_UPGRADE_REQUIRED = 64; + public static final int ERR_POST_DENIED = 65; + + /** + Constants used to specify the type of a KUDSAtom. + @short Constants used to specify the type of a KUDSAtom. + */ + public static final int UDS_STRING = 1; + public static final int UDS_LONG = 2; + public static final int UDS_TIME = 4|UDS_LONG; + public static final int UDS_SIZE = 8|UDS_LONG; + public static final int UDS_SIZE_LARGE = 32768|UDS_LONG; + public static final int UDS_USER = 16|UDS_STRING; + public static final int UDS_ICON_NAME = 24|UDS_STRING; + public static final int UDS_GROUP = 32|UDS_STRING; + public static final int UDS_EXTRA = 48|UDS_STRING; + public static final int UDS_NAME = 64|UDS_STRING; + public static final int UDS_LOCAL_PATH = 72|UDS_STRING; + public static final int UDS_HIDDEN = 80|UDS_LONG; + public static final int UDS_EXTENDED_ACL = 88|UDS_LONG; + public static final int UDS_ACL_STRING = 96|UDS_STRING; + public static final int UDS_DEFAULT_ACL_STRING = 104|UDS_STRING; + public static final int UDS_ACCESS = 128|UDS_LONG; + public static final int UDS_MODIFICATION_TIME = 256|UDS_TIME; + public static final int UDS_ACCESS_TIME = 512|UDS_TIME; + public static final int UDS_CREATION_TIME = 1024|UDS_TIME; + public static final int UDS_FILE_TYPE = 2048|UDS_LONG; + public static final int UDS_LINK_DEST = 4096|UDS_STRING; + public static final int UDS_URL = 8192|UDS_STRING; + public static final int UDS_MIME_TYPE = 16384|UDS_STRING; + public static final int UDS_GUESSED_MIME_TYPE = 16392|UDS_STRING; + public static final int UDS_XML_PROPERTIES = 0x8000|UDS_STRING; + + /** + Specifies how to use the cache. + @short Specifies how to use the cache. + @see #parseCacheControl + @see #getCacheControlString + */ + public static final int CC_CacheOnly = 0; + public static final int CC_Cache = 1; + public static final int CC_Verify = 2; + public static final int CC_Refresh = 3; + public static final int CC_Reload = 4; + + public static final int SupportsChmod = 0; + public static final int SupportsChown = 1; + public static final int SupportsUTime = 2; + public static final int SupportsSymlinks = 3; + public static final int CaseInsensitive = 4; + + /** HTTP / DAV method * @short HTTP / DAV method + */ + public static final int HTTP_GET = 0; + public static final int HTTP_PUT = 1; + public static final int HTTP_POST = 2; + public static final int HTTP_HEAD = 3; + public static final int HTTP_DELETE = 4; + public static final int HTTP_OPTIONS = 5; + public static final int DAV_PROPFIND = 6; + public static final int DAV_PROPPATCH = 7; + public static final int DAV_MKCOL = 8; + public static final int DAV_COPY = 9; + public static final int DAV_MOVE = 10; + public static final int DAV_LOCK = 11; + public static final int DAV_UNLOCK = 12; + public static final int DAV_SEARCH = 13; + public static final int DAV_SUBSCRIBE = 14; + public static final int DAV_UNSUBSCRIBE = 15; + public static final int DAV_POLL = 16; + public static final int DAV_NOTIFY = 17; + public static final int HTTP_UNKNOWN = -1; + + /** + Identifiers for KIO informational messages. + @short Identifiers for KIO informational messages. + */ + public static final int INF_TOTAL_SIZE = 10; + public static final int INF_PROCESSED_SIZE = 11; + public static final int INF_SPEED = 12; + public static final int INF_REDIRECTION = 20; + public static final int INF_MIME_TYPE = 21; + public static final int INF_ERROR_PAGE = 22; + public static final int INF_WARNING = 23; + public static final int INF_GETTING_FILE = 24; + public static final int INF_NEED_PASSWD = 25; + public static final int INF_INFOMESSAGE = 26; + public static final int INF_META_DATA = 27; + public static final int INF_NETWORK_STATUS = 28; + public static final int INF_MESSAGEBOX = 29; + + /** + Identifiers for KIO data messages. + @short Identifiers for KIO data messages. + */ + public static final int MSG_DATA = 100; + public static final int MSG_DATA_REQ = 101; + public static final int MSG_ERROR = 102; + public static final int MSG_CONNECTED = 103; + public static final int MSG_FINISHED = 104; + public static final int MSG_STAT_ENTRY = 105; + public static final int MSG_LIST_ENTRIES = 106; + public static final int MSG_RENAMED = 107; + public static final int MSG_RESUME = 108; + public static final int MSG_SLAVE_STATUS = 109; + public static final int MSG_SLAVE_ACK = 110; + public static final int MSG_NET_RETQUEST = 111; + public static final int MSG_NET_DROP = 112; + public static final int MSG_NEED_SUBURL_DATA = 113; + public static final int MSG_CANRESUME = 114; + public static final int MSG_AUTH_KEY = 115; + public static final int MSG_DEL_AUTH_KEY = 116; + + public static final int DEFAULT = 1; + public static final int STATUSBAR = 2; + public static final int LIST = 3; + + public static native int open_SkipDlg(boolean _multi, String _error_text); + public static native int open_SkipDlg(boolean _multi); + /** +
  • RenameDlg related Functions
  • + {@link KIO#RenameDlg} + Construct a modal, parent-less "rename" dialog, and return + a result code, as well as the new dest. Much easier to use than the + class RenameDlg directly. + @param caption the caption for the dialog box + @param src the URL of the file/dir we're trying to copy, as it's part of the text message + @param dest the URL of the destination file/dir, i.e. the one that already exists + @param mode parameters for the dialog (which buttons to show...), + see RenameDlg_Mode + @param newDest the new destination path, valid if R_RENAME was returned. + @param sizeSrc size of source file + @param sizeDest size of destination file + @param ctimeSrc creation time of source file + @param ctimeDest creation time of destination file + @param mtimeSrc modification time of source file + @param mtimeDest modification time of destination file + @return the result + + @short
  • RenameDlg related Functions
  • {@link KIO#RenameDlg} Construct a modal, parent-less "rename" dialog, and return a result code, as well as the new dest. + */ + public static native int open_RenameDlg(String caption, String src, String dest, int mode, StringBuffer newDestPath, long sizeSrc, long sizeDest, int ctimeSrc, int ctimeDest, int mtimeSrc, int mtimeDest); + public static native int open_RenameDlg(String caption, String src, String dest, int mode, StringBuffer newDestPath, long sizeSrc, long sizeDest, int ctimeSrc, int ctimeDest, int mtimeSrc); + public static native int open_RenameDlg(String caption, String src, String dest, int mode, StringBuffer newDestPath, long sizeSrc, long sizeDest, int ctimeSrc, int ctimeDest); + public static native int open_RenameDlg(String caption, String src, String dest, int mode, StringBuffer newDestPath, long sizeSrc, long sizeDest, int ctimeSrc); + public static native int open_RenameDlg(String caption, String src, String dest, int mode, StringBuffer newDestPath, long sizeSrc, long sizeDest); + public static native int open_RenameDlg(String caption, String src, String dest, int mode, StringBuffer newDestPath, long sizeSrc); + public static native int open_RenameDlg(String caption, String src, String dest, int mode, StringBuffer newDestPath); + public static native TQDataStream op_write(TQDataStream s, AuthInfo a); + public static native TQDataStream op_read(TQDataStream s, AuthInfo a); + /** + Converts size from bytes to the string representation. + @param size size in bytes + @return converted size as a string - e.g. 123.4 kB , 12.0 MB + + @short Converts size from bytes to the string representation. + */ + public static native String convertSize(long size); + /** + Converts size from bytes to a string representation with includes + the size in bytes. + e.g. 90 B, 240 B, 1.4 KB (1495 B), 2.6MB (2,734,344 B), 0 B + @param size size in bytes + @return converted size as a string - e.g. 1.4 KB (1495 B), 45 B + + @short Converts size from bytes to a string representation with includes the size in bytes. + */ + public static native String convertSizeWithBytes(long size); + /** + Converts a size to a string representation + Not unlike String.number(...) + @param size size in bytes + @return converted size as a string - e.g. 123456789 + + @short Converts a size to a string representation Not unlike String.number(. + */ + public static native String number(long size); + /** + Converts size from kilo-bytes to the string representation. + @param kbSize size in kilo-bytes + @return converted size as a string - e.g. 123.4 kB , 12.0 MB + + @short Converts size from kilo-bytes to the string representation. + */ + public static native String convertSizeFromKB(long kbSize); + /** + Convert seconds to a string representing number of days, hours, minutes and seconds + @param seconds number of seconds to convert + @return string representation in a locale depending format + + @short Convert seconds to a string representing number of days, hours, minutes and seconds + */ + public static native String convertSeconds(int seconds); + /** + Helper for showing information about a set of files and directories + @param items the number of items (= files + dirs + number of symlinks :) + @param files the number of files + @param dirs the number of dirs + @param size the sum of the size of the files + @param showSize whether to show the size in the result + @return the summary string + + @short Helper for showing information about a set of files and directories + */ + public static native String itemsSummaryString(int items, int files, int dirs, long size, boolean showSize); + /** + Encodes (from the text displayed to the real filename) + This translates % into %% and / into %2f + Used by KIO.link, for instance. + @param str the file name to encode + @return the encoded file name + + @short Encodes (from the text displayed to the real filename) This translates % into %% and / into %2f Used by KIO.link, for instance. + */ + public static native String encodeFileName(String str); + /** + Decodes (from the filename to the text displayed) + This translates %2[fF] into / and %% into % + @param str the file name to decode + @return the decoded file name + + @short Decodes (from the filename to the text displayed) This translates %2[fF] into / and %% into % + */ + public static native String decodeFileName(String str); + /** + Returns a translated error message for errorCode using the + additional error information provided by errorText. + @param errorCode the error code + @param errorText the additional error text + @return the created error string + + @short Returns a translated error message for errorCode using the additional error information provided by errorText. + */ + public static native String buildErrorString(int errorCode, String errorText); + /** + Returns translated error details for errorCode using the + additional error information provided by errorText , reqUrl + (the request URL), and the ioslave method . + @param errorCode the error code + @param errorText the additional error text + @param reqUrl the request URL + @param method the ioslave method + +
  • + String errorName - the name of the error +
  • + +
  • + String techName - if not null, the more technical name of the error +
  • + +
  • + String description - a description of the error +
  • + +
  • + ArrayList causes - a list of possible causes of the error +
  • + +
  • + ArrayList solutions - a liso of solutions for the error + +
  • @return the following data: + + @short Returns translated error details for errorCode using the additional error information provided by errorText , reqUrl (the request URL), and the ioslave method . + */ + public static native byte[] rawErrorDetail(int errorCode, String errorText, KURL reqUrl, int method); + public static native byte[] rawErrorDetail(int errorCode, String errorText, KURL reqUrl); + public static native byte[] rawErrorDetail(int errorCode, String errorText); + /** + Returns an appropriate error message if the given command cmd + is an unsupported action (ERR_UNSUPPORTED_ACTION). + @param protocol name of the protocol + @param cmd given command + @short Returns an appropriate error message if the given command cmd is an unsupported action (ERR_UNSUPPORTED_ACTION). + @see #enum + @see Command + */ + public static native String unsupportedActionErrorString(String protocol, int cmd); + /** + Parses the string representation of the cache control option. + @param cacheControl the string representation + @return the cache control value + + @short Parses the string representation of the cache control option. + @see #getCacheControlString + */ + public static native int parseCacheControl(String cacheControl); + /** + Returns a string representation of the given cache control method. + @param cacheControl the cache control method + @return the string representation + + @short Returns a string representation of the given cache control method. + @see #parseCacheControl + */ + public static native String getCacheControlString(int cacheControl); + /** + Returns the mount point where device is mounted + right now. This means, it has to be mounted, not just + defined in fstab. + @short Returns the mount point where device is mounted right now. + */ + public static native String findDeviceMountPoint(String device); + /** + Returns the mount point on which resides filename. + For instance if /home is a separate partition, findPathMountPoint("/home/user/blah") + will return /home + @param filename the file name to check + @return the mount point of the given filename + + @short Returns the mount point on which resides filename. + */ + public static native String findPathMountPoint(String filename); + /** + Checks if the path belongs to a filesystem that is probably + slow. It checks for NFS or for paths belonging to automounted + paths not yet mounted + @param filename the file name to check + @return true if the filesystem is probably slow + + @short Checks if the path belongs to a filesystem that is probably slow. + */ + public static native boolean probably_slow_mounted(String filename); + /** + Checks if the path belongs to a filesystem that is manually + mounted. + @param filename the file name to check + @return true if the filesystem is manually mounted + + @short Checks if the path belongs to a filesystem that is manually mounted. + */ + public static native boolean manually_mounted(String filename); + /** + Checks the capabilities of the filesystem to which a given file belongs. + given feature (e.g. chmod). + @param filename the file name to check + @param flag the flag to check + The availables flags are: + +
  • + SupportsChmod: returns true if the filesystem supports chmod + (e.g. msdos filesystems return false) +
  • + +
  • + SupportsChown: returns true if the filesystem supports chown + (e.g. msdos filesystems return false) +
  • + +
  • + SupportsUtime: returns true if the filesystems supports utime + (e.g. msdos filesystems return false) +
  • + +
  • + SupportsSymlinks: returns true if the filesystems supports symlinks + (e.g. msdos filesystems return false) +
  • + +
  • + CaseInsensitive: returns true if the filesystem treats + "foo" and "FOO" as being the same file (true for msdos systems) +
  • + @return true if the filesystem has that flag, false if not (or some error occurred) + + @short Checks the capabilities of the filesystem to which a given file belongs. + */ + public static native boolean testFileSystemFlag(String filename, int flag); + /** + Creates a PreviewJob to generate or retrieve a preview image + for the given URL. + @param items files to get previews for + @param width the maximum width to use + @param height the maximum height to use, if this is 0, the same + value as width is used. + @param iconSize the size of the mimetype icon to overlay over the + preview or zero to not overlay an icon. This has no effect if the + preview plugin that will be used doesn't use icon overlays. + @param iconAlpha transparency to use for the icon overlay + @param scale if the image is to be scaled to the requested size or + returned in its original size + @param save if the image should be cached for later use + @param enabledPlugins if non-zero, this points to a list containing + the names of the plugins that may be used. + @return the new PreviewJob + + @short Creates a PreviewJob to generate or retrieve a preview image for the given URL. + @see PreviewJob#availablePlugins + */ + public static native PreviewJob filePreview(ArrayList items, int width, int height, int iconSize, int iconAlpha, boolean scale, boolean save, String[] enabledPlugins); + public static native PreviewJob filePreview(ArrayList items, int width, int height, int iconSize, int iconAlpha, boolean scale, boolean save); + public static native PreviewJob filePreview(ArrayList items, int width, int height, int iconSize, int iconAlpha, boolean scale); + public static native PreviewJob filePreview(ArrayList items, int width, int height, int iconSize, int iconAlpha); + public static native PreviewJob filePreview(ArrayList items, int width, int height, int iconSize); + public static native PreviewJob filePreview(ArrayList items, int width, int height); + public static native PreviewJob filePreview(ArrayList items, int width); + /** + Creates a new DavJob that issues a PROPFIND command. PROPFIND retrieves + the properties of the resource identified by the given url. + @param url the URL of the resource + @param properties a propfind document that describes the properties that + should be retrieved + @param depth the depth of the request. Can be "0", "1" or "infinity" + @param showProgressInfo true to show progress information + @return the new DavJob + + @short Creates a new DavJob that issues a PROPFIND command. + */ + public static native DavJob davPropFind(KURL url, TQDomDocument properties, String depth, boolean showProgressInfo); + public static native DavJob davPropFind(KURL url, TQDomDocument properties, String depth); + /** + Creates a new DavJob that issues a PROPPATCH command. PROPPATCH sets + the properties of the resource identified by the given url. + @param url the URL of the resource + @param properties a PROPPACTCH document that describes the properties that + should be modified and its new values + @param showProgressInfo true to show progress information + @return the new DavJob + + @short Creates a new DavJob that issues a PROPPATCH command. + */ + public static native DavJob davPropPatch(KURL url, TQDomDocument properties, boolean showProgressInfo); + public static native DavJob davPropPatch(KURL url, TQDomDocument properties); + /** + Creates a new DavJob that issues a SEARCH command. + @param url the URL of the resource + @param nsURI the URI of the search method's qualified name + @param qName the local part of the search method's qualified name + @param query the search string + @param showProgressInfo true to show progress information + @return the new DavJob + + @short Creates a new DavJob that issues a SEARCH command. + */ + public static native DavJob davSearch(KURL url, String nsURI, String qName, String query, boolean showProgressInfo); + public static native DavJob davSearch(KURL url, String nsURI, String qName, String query); + /** + Retrieves meta information for the given items. + @param items files to get metainfo for + @return the MetaInfoJob to retrieve the items + + @short Retrieves meta information for the given items. + */ + public static native MetaInfoJob fileMetaInfo(ArrayList items); + /** + Creates a single directory. + @param url The URL of the directory to create. + @param permissions The permissions to set after creating the + directory (unix-style), -1 for default permissions. + @return A pointer to the job handling the operation. + + @short Creates a single directory. + */ + public static native SimpleJob mkdir(KURL url, int permissions); + public static native SimpleJob mkdir(KURL url); + /** + Removes a single directory. + The directory is assumed to be empty. + @param url The URL of the directory to remove. + @return A pointer to the job handling the operation. + + @short Removes a single directory. + */ + public static native SimpleJob rmdir(KURL url); + /** + Changes permissions on a file or directory. + See the other chmod below for changing many files + or directories. + @param url The URL of file or directory. + @param permissions The permissions to set. + @return the job handling the operation. + + @short Changes permissions on a file or directory. + */ + public static native SimpleJob chmod(KURL url, int permissions); + /** + Rename a file or directory. + Warning: this operation fails if a direct renaming is not + possible (like with files or dirs on separate partitions) + Use move or file_move in this case. + @param src The original URL + @param dest The final URL + @param overwrite whether to automatically overwrite if the dest exists + @return the job handling the operation. + + @short Rename a file or directory. + */ + public static native SimpleJob rename(KURL src, KURL dest, boolean overwrite); + /** + Create or move a symlink. + This is the lowlevel operation, similar to file_copy and file_move. + It doesn't do any check (other than those the slave does) + and it doesn't show rename and skip dialogs - use KIO.link for that. + @param target The string that will become the "target" of the link (can be relative) + @param dest The symlink to create. + @param overwrite whether to automatically overwrite if the dest exists + @param showProgressInfo true to show progress information + @return the job handling the operation. + + @short Create or move a symlink. + */ + public static native SimpleJob symlink(String target, KURL dest, boolean overwrite, boolean showProgressInfo); + public static native SimpleJob symlink(String target, KURL dest, boolean overwrite); + /** + Execute any command that is specific to one slave (protocol). + Examples are : HTTP POST, mount and unmount (kio_file) + @param url The URL isn't passed to the slave, but is used to know + which slave to send it to :-) + @param data Packed data. The meaning is completely dependent on the + slave, but usually starts with an int for the command number. + @param showProgressInfo true to show progress information + @return the job handling the operation. + + @short Execute any command that is specific to one slave (protocol). + */ + public static native SimpleJob special(KURL url, byte[] data, boolean showProgressInfo); + public static native SimpleJob special(KURL url, byte[] data); + /** + Mount filesystem. + Special job for kio_file. + @param ro Mount read-only if true. + @param fstype File system type (e.g. "ext2", can be null). + @param dev Device (e.g. /dev/sda0). + @param point Mount point, can be null. + @param showProgressInfo true to show progress information + @return the job handling the operation. + + @short Mount filesystem. + */ + public static native SimpleJob mount(boolean ro, String fstype, String dev, String point, boolean showProgressInfo); + public static native SimpleJob mount(boolean ro, String fstype, String dev, String point); + /** + Unmount filesystem. + Special job for kio_file. + @param point Point to unmount. + @param showProgressInfo true to show progress information + @return the job handling the operation. + + @short Unmount filesystem. + */ + public static native SimpleJob unmount(String point, boolean showProgressInfo); + public static native SimpleJob unmount(String point); + /** + HTTP cache update + @param url Url to update, protocol must be "http". + @param no_cache If true, cache entry for url is deleted. + @param expireDate Local machine time indicating when the entry is + supposed to expire. + @return the job handling the operation. + + @short HTTP cache update + */ + public static native SimpleJob http_update_cache(KURL url, boolean no_cache, int expireDate); + /** + Find all details for one file or directory. + @param url the URL of the file + @param showProgressInfo true to show progress information + @return the job handling the operation. + + @short Find all details for one file or directory. + */ + public static native StatJob stat(KURL url, boolean showProgressInfo); + public static native StatJob stat(KURL url); + /** + Find all details for one file or directory. + This version of the call includes two additional booleaneans, sideIsSource and details. + @param url the URL of the file + @param sideIsSource is true when stating a source file (we will do a get on it if + the stat works) and false when stating a destination file (target of a copy). + The reason for this parameter is that in some cases the kioslave might not + be able to determine a file's existence (e.g. HTTP doesn't allow it, FTP + has issues with case-sensitivity on some systems). + When the slave can't reliably determine the existence of a file, it will: + +
  • + be optimistic if sideIsSource=true, i.e. it will assume the file exists, + and if it doesn't this will appear when actually trying to download it +
  • + +
  • + be pessimistic if sideIsSource=false, i.e. it will assume the file + doesn't exist, to prevent showing "about to overwrite" errors to the user. + If you simply want to check for existence without downloading/uploading afterwards, + then you should use sideIsSource=false. +
  • + @param details selects the level of details we want. + By default this is 2 (all details wanted, including modification time, size, etc.), + setDetails(1) is used when deleting: we don't need all the information if it takes + too much time, no need to follow symlinks etc. + setDetails(0) is used for very simple probing: we'll only get the answer + "it's a file or a directory, or it doesn't exist". This is used by KRun. + @param showProgressInfo true to show progress information + @return the job handling the operation. + + @short Find all details for one file or directory. + */ + public static native StatJob stat(KURL url, boolean sideIsSource, short details, boolean showProgressInfo); + public static native StatJob stat(KURL url, boolean sideIsSource, short details); + /** + Get (a.k.a. read). + The slave emits the data through data(). + @param url the URL of the file + @param reload true to reload the file, false if it can be taken from the cache + @param showProgressInfo true to show progress information + @return the job handling the operation. + + @short Get (a. + */ + public static native TransferJob get(KURL url, boolean reload, boolean showProgressInfo); + public static native TransferJob get(KURL url, boolean reload); + public static native TransferJob get(KURL url); + /** + Put (a.k.a. write) + @param url Where to write data. + @param permissions May be -1. In this case no special permission mode is set. + @param overwrite If true, any existing file will be overwritten. + @param resume true to resume an operation. Warning, setting this to true means + that the data will be appended to dest if dest exists. + @param showProgressInfo true to show progress information + @return the job handling the operation. + + @short Put (a. + @see #multi_get + */ + public static native TransferJob put(KURL url, int permissions, boolean overwrite, boolean resume, boolean showProgressInfo); + public static native TransferJob put(KURL url, int permissions, boolean overwrite, boolean resume); + /** + HTTP POST (for form data). + Example: +
    +		    job = KIO.http_post( url, postData, false );
    +		    job.addMetaData("content-type", contentType );
    +		    job.addMetaData("referrer", referrerURL);
    +		 
    + postData is the data that you want to send and + contentType is the complete HTTP header line that + specifies the content's MIME type, for example + "Content-Type: text/xml". + You MUST specify content-type! + Often contentType is + "Content-Type: application/x-www-form-urlencoded" and + the postData is then an ASCII string (without null-termination!) + with characters like space, linefeed and percent escaped like %20, + %0A and %25. + @param url Where to write the data. + @param postData Encoded data to post. + @param showProgressInfo true to display + @return the job handling the operation. + + @short HTTP POST (for form data). + */ + public static native TransferJob http_post(KURL url, byte[] postData, boolean showProgressInfo); + public static native TransferJob http_post(KURL url, byte[] postData); + /** + Get (a.k.a. read), into a single byte[]. + @param url the URL of the file + @param reload true to reload the file, false if it can be taken from the cache + @param showProgressInfo true to show progress information + @return the job handling the operation. + + @short Get (a. + @see StoredTransferJob + */ + public static native StoredTransferJob storedGet(KURL url, boolean reload, boolean showProgressInfo); + public static native StoredTransferJob storedGet(KURL url, boolean reload); + public static native StoredTransferJob storedGet(KURL url); + /** + Put (a.k.a. write) data from a single byte[]. + @param arr The data to write + @param url Where to write data. + @param permissions May be -1. In this case no special permission mode is set. + @param overwrite If true, any existing file will be overwritten. + @param resume true to resume an operation. Warning, setting this to true means + that the data will be appended to dest if dest exists. + @param showProgressInfo true to show progress information + @return the job handling the operation. + + @short Put (a. + @see StoredTransferJob + */ + public static native StoredTransferJob storedPut(byte[] arr, KURL url, int permissions, boolean overwrite, boolean resume, boolean showProgressInfo); + public static native StoredTransferJob storedPut(byte[] arr, KURL url, int permissions, boolean overwrite, boolean resume); + /** + Creates a new multiple get job. + @param id the id of the get operation + @param url the URL of the file + @param metaData the MetaData associated with the file + @return the job handling the operation. + + @short Creates a new multiple get job. + @see #get + */ + // TDEIO::MultiGetJob* multi_get(long arg1,const KURL& arg2,const TDEIO::MetaData& arg3); >>>> NOT CONVERTED + /** + Find mimetype for one file or directory. + @param url the URL of the file + @param showProgressInfo true to show progress information + @return the job handling the operation. + + @short Find mimetype for one file or directory. + */ + public static native MimetypeJob mimetype(KURL url, boolean showProgressInfo); + public static native MimetypeJob mimetype(KURL url); + /** + Copy a single file. + Uses either SlaveBase.copy() if the slave supports that + or get() and put() otherwise. + @param src Where to get the file. + @param dest Where to put the file. + @param permissions May be -1. In this case no special permission mode is set. + @param overwrite If true, any existing file will be overwritten. + @param resume true to resume an operation. Warning, setting this to true means + that src will be appended to dest if dest exists. + You probably don't want that, so leave it to false :) + @param showProgressInfo true to show progress information + @return the job handling the operation. + + @short Copy a single file. + */ + public static native FileCopyJob file_copy(KURL src, KURL dest, int permissions, boolean overwrite, boolean resume, boolean showProgressInfo); + public static native FileCopyJob file_copy(KURL src, KURL dest, int permissions, boolean overwrite, boolean resume); + public static native FileCopyJob file_copy(KURL src, KURL dest, int permissions, boolean overwrite); + public static native FileCopyJob file_copy(KURL src, KURL dest, int permissions); + public static native FileCopyJob file_copy(KURL src, KURL dest); + /** + Move a single file. + Use either SlaveBase.rename() if the slave supports that, + or copy() and del() otherwise, or eventually get() & put() & del() + @param src Where to get the file. + @param dest Where to put the file. + @param permissions May be -1. In this case no special permission mode is set. + @param overwrite If true, any existing file will be overwritten. + @param resume true to resume an operation. Warning, setting this to true means + that src will be appended to dest if dest exists. + You probably don't want that, so leave it to false :) + @param showProgressInfo true to show progress information + @return the job handling the operation. + + @short Move a single file. + */ + public static native FileCopyJob file_move(KURL src, KURL dest, int permissions, boolean overwrite, boolean resume, boolean showProgressInfo); + public static native FileCopyJob file_move(KURL src, KURL dest, int permissions, boolean overwrite, boolean resume); + public static native FileCopyJob file_move(KURL src, KURL dest, int permissions, boolean overwrite); + public static native FileCopyJob file_move(KURL src, KURL dest, int permissions); + public static native FileCopyJob file_move(KURL src, KURL dest); + /** + Delete a single file. + @param src File to delete. + @param showProgressInfo true to show progress information + @return the job handling the operation. + + @short Delete a single file. + */ + public static native SimpleJob file_delete(KURL src, boolean showProgressInfo); + public static native SimpleJob file_delete(KURL src); + /** + List the contents of url, which is assumed to be a directory. + "." and ".." are returned, filter them out if you don't want them. + @param url the url of the directory + @param showProgressInfo true to show progress information + @param includeHidden true for all files, false to cull out UNIX hidden + files/dirs (whose names start with dot) + @return the job handling the operation. + + @short List the contents of url, which is assumed to be a directory. + */ + public static native ListJob listDir(KURL url, boolean showProgressInfo, boolean includeHidden); + public static native ListJob listDir(KURL url, boolean showProgressInfo); + public static native ListJob listDir(KURL url); + /** + The same as the previous method, but recurses subdirectories. + Directory links are not followed. + "." and ".." are returned but only for the toplevel directory. + Filter them out if you don't want them. + @param url the url of the directory + @param showProgressInfo true to show progress information + @param includeHidden true for all files, false to cull out UNIX hidden + files/dirs (whose names start with dot) + @return the job handling the operation. + + @short The same as the previous method, but recurses subdirectories. + */ + public static native ListJob listRecursive(KURL url, boolean showProgressInfo, boolean includeHidden); + public static native ListJob listRecursive(KURL url, boolean showProgressInfo); + public static native ListJob listRecursive(KURL url); + /** + Copy a file or directory src into the destination dest, + which can be a file (including the final filename) or a directory + (into which src will be copied). + This emulates the cp command completely. + @param src the file or directory to copy + @param dest the destination + @param showProgressInfo true to show progress information + @return the job handling the operation + + @short Copy a file or directory src into the destination dest, which can be a file (including the final filename) or a directory (into which src will be copied). + @see #copyAs + */ + public static native CopyJob copy(KURL src, KURL dest, boolean showProgressInfo); + public static native CopyJob copy(KURL src, KURL dest); + /** + Copy a file or directory src into the destination dest, + which is the destination name in any case, even for a directory. + As opposed to copy(), this doesn't emulate cp, but is the only + way to copy a directory, giving it a new name and getting an error + box if a directory already exists with the same name. + @param src the file or directory to copy + @param dest the destination + @param showProgressInfo true to show progress information + @return the job handling the operation + + @short Copy a file or directory src into the destination dest, which is the destination name in any case, even for a directory. + */ + public static native CopyJob copyAs(KURL src, KURL dest, boolean showProgressInfo); + public static native CopyJob copyAs(KURL src, KURL dest); + /** + Copy a list of file/dirs src into a destination directory dest. + @param src the list of files and/or directories + @param dest the destination + @param showProgressInfo true to show progress information + @return the job handling the operation + + @short Copy a list of file/dirs src into a destination directory dest. + */ + public static native CopyJob copy(ArrayList src, KURL dest, boolean showProgressInfo); + public static native CopyJob copy(ArrayList src, KURL dest); + /** + Moves a file or directory src to the given destination dest. + @param src the file or directory to copy + @param dest the destination + @param showProgressInfo true to show progress information + @return the job handling the operation + + @short Moves a file or directory src to the given destination dest. + @see #copy + @see #moveAs + */ + public static native CopyJob move(KURL src, KURL dest, boolean showProgressInfo); + public static native CopyJob move(KURL src, KURL dest); + /** + Moves a file or directory src to the given destination dest. Unlike move() + this operation will fail when the directory already exists. + @param src the file or directory to copy + @param dest the destination + @param showProgressInfo true to show progress information + @return the job handling the operation + + @short Moves a file or directory src to the given destination dest. + @see #copyAs + */ + public static native CopyJob moveAs(KURL src, KURL dest, boolean showProgressInfo); + public static native CopyJob moveAs(KURL src, KURL dest); + /** + Moves a list of files or directories src to the given destination dest. + @param src the list of files or directories to copy + @param dest the destination + @param showProgressInfo true to show progress information + @return the job handling the operation + + @short Moves a list of files or directories src to the given destination dest. + @see #copy + */ + public static native CopyJob move(ArrayList src, KURL dest, boolean showProgressInfo); + public static native CopyJob move(ArrayList src, KURL dest); + /** + Create a link. + If the protocols and hosts are the same, a Unix symlink will be created. + Otherwise, a .desktop file of Type Link and pointing to the src URL will be created. + @param src The existing file or directory, 'target' of the link. + @param destDir Destination directory where the link will be created. + @param showProgressInfo true to show progress information + @return the job handling the operation + + @short Create a link. + */ + public static native CopyJob link(KURL src, KURL destDir, boolean showProgressInfo); + public static native CopyJob link(KURL src, KURL destDir); + /** + Create several links + If the protocols and hosts are the same, a Unix symlink will be created. + Otherwise, a .desktop file of Type Link and pointing to the src URL will be created. + @param src The existing files or directories, 'targets' of the link. + @param destDir Destination directory where the links will be created. + @param showProgressInfo true to show progress information + @return the job handling the operation + + @short Create several links If the protocols and hosts are the same, a Unix symlink will be created. + @see #link + */ + public static native CopyJob link(ArrayList src, KURL destDir, boolean showProgressInfo); + public static native CopyJob link(ArrayList src, KURL destDir); + /** + Create a link. Unlike link() this operation will fail when the directory already + exists. + If the protocols and hosts are the same, a Unix symlink will be created. + Otherwise, a .desktop file of Type Link and pointing to the src URL will be created. + @param src The existing file or directory, 'target' of the link. + @param dest Destination directory where the link will be created. + @param showProgressInfo true to show progress information + @return the job handling the operation + + @short Create a link. + @see #link + @see #copyAs + */ + public static native CopyJob linkAs(KURL src, KURL dest, boolean showProgressInfo); + public static native CopyJob linkAs(KURL src, KURL dest); + /** + Trash a file or directory. + This is currently only supported for local files and directories. + Use "KURL src; src.setPath( path );" to create a URL from a path. + @param src file to delete + @param showProgressInfo true to show progress information + @return the job handling the operation + + @short Trash a file or directory. + */ + public static native CopyJob trash(KURL src, boolean showProgressInfo); + public static native CopyJob trash(KURL src); + /** + Trash a list of files or directories. + This is currently only supported for local files and directories. + @param src the files to delete + @param showProgressInfo true to show progress information + @return the job handling the operation + + @short Trash a list of files or directories. + */ + public static native CopyJob trash(ArrayList src, boolean showProgressInfo); + public static native CopyJob trash(ArrayList src); + /** + Delete a file or directory. + @param src file to delete + @param shred obsolete (TODO remove in KDE4) + @param showProgressInfo true to show progress information + @return the job handling the operation + + @short Delete a file or directory. + */ + public static native DeleteJob del(KURL src, boolean shred, boolean showProgressInfo); + public static native DeleteJob del(KURL src, boolean shred); + public static native DeleteJob del(KURL src); + /** + Deletes a list of files or directories. + @param src the files to delete + @param shred obsolete (TODO remove in KDE4) + @param showProgressInfo true to show progress information + @return the job handling the operation + + @short Deletes a list of files or directories. + */ + public static native DeleteJob del(ArrayList src, boolean shred, boolean showProgressInfo); + public static native DeleteJob del(ArrayList src, boolean shred); + public static native DeleteJob del(ArrayList src); + /** + Pastes the content of the clipboard to the given destination URL. + URLs are treated separately (performing a file copy) + from other data (which is saved into a file after asking the user + to choose a filename and the preferred data format) + @param destURL the URL to receive the data + @param move true to move the data, false to copy + @return the job that handles the operation + + @short Pastes the content of the clipboard to the given destination URL. + @see #pasteData + */ + public static native Job pasteClipboard(KURL destURL, boolean move); + public static native Job pasteClipboard(KURL destURL); + /** + Pastes the given data to the given destination URL. + NOTE: This method is blocking (uses NetAccess for saving the data). + Please consider using pasteDataAsync instead. + @param destURL the URL of the directory where the data will be pasted. + The filename to use in that directory is prompted by this method. + @param data the data to copy + @short Pastes the given data to the given destination URL. + @see #pasteClipboard + */ + public static native void pasteData(KURL destURL, byte[] data); + /** + Pastes the given data to the given destination URL. + Note that this method requires the caller to have chosen the byte[] + to paste before hand, unlike pasteClipboard and pasteMimeSource. + @param destURL the URL of the directory where the data will be pasted. + The filename to use in that directory is prompted by this method. + @param data the data to copy + @short Pastes the given data to the given destination URL. + @see #pasteClipboard + */ + public static native CopyJob pasteDataAsync(KURL destURL, byte[] data); + /** + Pastes the given data to the given destination URL. + Note that this method requires the caller to have chosen the byte[] + to paste before hand, unlike pasteClipboard and pasteMimeSource. + @param destURL the URL of the directory where the data will be pasted. + The filename to use in that directory is prompted by this method. + @param data the data to copy + @param dialogText the text to show in the dialog + @short Pastes the given data to the given destination URL. + @see #pasteClipboard + */ + public static native CopyJob pasteDataAsync(KURL destURL, byte[] data, String dialogText); + /** + Save the given mimesource data to the given destination URL + after offering the user to choose a data format. + This is the method used when handling drops (of anything else than URLs) + onto kdesktop and konqueror. + @param data the TQMimeSource (e.g. a TQDropEvent) + @param destURL the URL of the directory where the data will be pasted. + The filename to use in that directory is prompted by this method. + @param dialogText the text to show in the dialog + @param widget parent widget to use for dialogs + @param clipboard whether the TQMimeSource comes from TQClipboard. If you + use pasteClipboard for that case, you never have to worry about this parameter. + @short Save the given mimesource data to the given destination URL after offering the user to choose a data format. + @see #pasteClipboard + */ + public static native CopyJob pasteMimeSource(TQMimeSourceInterface data, KURL destURL, String dialogText, TQWidget widget, boolean clipboard); + public static native CopyJob pasteMimeSource(TQMimeSourceInterface data, KURL destURL, String dialogText, TQWidget widget); + /** + Checks whether the clipboard contains any URLs. + @return true if not + Not used anymore, wrong method name, so it will disappear in KDE4. + + @short Checks whether the clipboard contains any URLs. + */ + public static native boolean isClipboardEmpty(); + /** + Returns the text to use for the Paste action, when the application supports + pasting files, urls, and clipboard data, using pasteClipboard(). + @return a string suitable for KAction.setText, or an empty string if pasting + isn't possible right now. + + @short Returns the text to use for the Paste action, when the application supports pasting files, urls, and clipboard data, using pasteClipboard(). + */ + public static native String pasteActionText(); +} -- cgit v1.2.1