From 5baaa6b5ff2b9d30279cf9e9658b9509fcdf884c Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 24 Jan 2013 14:05:19 -0600 Subject: Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4 --- kdejava/koala/org/kde/koala/KGlobal.java | 135 ----- kdejava/koala/org/kde/koala/KGlobalAccel.java | 210 ------- kdejava/koala/org/kde/koala/KGlobalSettings.java | 481 ---------------- kdejava/koala/org/kde/koala/KProcess.java | 628 --------------------- .../koala/org/kde/koala/KProcessController.java | 79 --- kdejava/koala/org/kde/koala/KProcessRunner.java | 23 - kdejava/koala/org/kde/koala/KProcessSignals.java | 72 --- kdejava/koala/org/kde/koala/TDEGlobal.java | 135 +++++ kdejava/koala/org/kde/koala/TDEGlobalAccel.java | 210 +++++++ kdejava/koala/org/kde/koala/TDEGlobalSettings.java | 481 ++++++++++++++++ kdejava/koala/org/kde/koala/TDEProcess.java | 628 +++++++++++++++++++++ .../koala/org/kde/koala/TDEProcessController.java | 79 +++ kdejava/koala/org/kde/koala/TDEProcessRunner.java | 23 + kdejava/koala/org/kde/koala/TDEProcessSignals.java | 72 +++ 14 files changed, 1628 insertions(+), 1628 deletions(-) delete mode 100644 kdejava/koala/org/kde/koala/KGlobal.java delete mode 100644 kdejava/koala/org/kde/koala/KGlobalAccel.java delete mode 100644 kdejava/koala/org/kde/koala/KGlobalSettings.java delete mode 100644 kdejava/koala/org/kde/koala/KProcess.java delete mode 100644 kdejava/koala/org/kde/koala/KProcessController.java delete mode 100644 kdejava/koala/org/kde/koala/KProcessRunner.java delete mode 100644 kdejava/koala/org/kde/koala/KProcessSignals.java create mode 100644 kdejava/koala/org/kde/koala/TDEGlobal.java create mode 100644 kdejava/koala/org/kde/koala/TDEGlobalAccel.java create mode 100644 kdejava/koala/org/kde/koala/TDEGlobalSettings.java create mode 100644 kdejava/koala/org/kde/koala/TDEProcess.java create mode 100644 kdejava/koala/org/kde/koala/TDEProcessController.java create mode 100644 kdejava/koala/org/kde/koala/TDEProcessRunner.java create mode 100644 kdejava/koala/org/kde/koala/TDEProcessSignals.java (limited to 'kdejava/koala/org') diff --git a/kdejava/koala/org/kde/koala/KGlobal.java b/kdejava/koala/org/kde/koala/KGlobal.java deleted file mode 100644 index 43e9eb40..00000000 --- a/kdejava/koala/org/kde/koala/KGlobal.java +++ /dev/null @@ -1,135 +0,0 @@ -//Auto-generated by kalyptus. DO NOT EDIT. -package org.kde.koala; - -import org.kde.qt.Qt; -import org.kde.qt.QtSupport; - -/** - - Access to the KDE global objects. - TDEGlobal provides you with pointers of many central - objects that exist only once in the process. It is also - responsible for managing instances of KStaticDeleterBase. - @author Sirtaj Singh Kang (taj@kde.org) - - @short Access to the KDE global objects. - @see KStaticDeleterBase - -*/ -public class TDEGlobal implements QtSupport { - private long _qt; - private boolean _allocatedInJavaWorld = true; - protected TDEGlobal(Class dummy){} - - public TDEGlobal() { - newTDEGlobal(); - } - private native void newTDEGlobal(); - /** - Returns the global instance. There is always at least - one instance of a component in one application (in most - cases the application itself). - @return the global instance - - @short Returns the global instance. - */ - public static native TDEInstanceInterface instance(); - /** - Returns the application standard dirs object. - @return the global standard dir object - - @short Returns the application standard dirs object. - */ - public static native KStandardDirs dirs(); - /** - Returns the general config object. - @return the global configuration object. - - @short Returns the general config object. - */ - public static native KConfig config(); - /** - Returns the general config object. - @return the global configuration object. - - @short Returns the general config object. - */ - public static native KSharedConfig sharedConfig(); - /** - Returns an iconloader object. - @return the global iconloader object - - @short Returns an iconloader object. - */ - public static native KIconLoader iconLoader(); - /** - Returns the global locale object. - @return the global locale object - - @short Returns the global locale object. - */ - public static native KLocale locale(); - /** - The global charset manager. - @return the global charset manager - - @short The global charset manager. - */ - public static native KCharsets charsets(); - /** - Creates a static String. - To be used inside functions(!) like: -
-		 static StringmyString = TDEGlobal.staticString("myText");
-		 
- !!! Do _NOT_ use: !!! -
-		 static String myString = TDEGlobal.staticString("myText");
-		 
- This creates a static object (instead of a static reference) - and as you know static objects are EVIL. - @param str the string to create - @return the static string - - @short Creates a static String. - */ - public static native String staticQString(String str); - /** - Registers a static deleter. - @param d the static deleter to register - @short Registers a static deleter. - @see KStaticDeleterBase - @see KStaticDeleter - */ - public static native void registerStaticDeleter(KStaticDeleterBase d); - /** - Unregisters a static deleter. - @param d the static deleter to unregister - @short Unregisters a static deleter. - @see KStaticDeleterBase - @see KStaticDeleter - */ - public static native void unregisterStaticDeleter(KStaticDeleterBase d); - /** - Calls KStaticDeleterBase.destructObject() on all - registered static deleters and unregisters them all. - @short Calls KStaticDeleterBase.destructObject() on all registered static deleters and unregisters them all. - @see KStaticDeleterBase - @see KStaticDeleter - */ - public static native void deleteStaticDeleters(); - /** - The instance currently active (useful in a multi-instance - application, such as a KParts application). - Don't use this - it's mainly for KAboutDialog and KBugReport. - @short The instance currently active (useful in a multi-instance application, such as a KParts application). - */ - public static native void setActiveInstance(TDEInstanceInterface d); - public static native TDEInstanceInterface activeInstance(); - /** 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/KGlobalAccel.java b/kdejava/koala/org/kde/koala/KGlobalAccel.java deleted file mode 100644 index fabb014b..00000000 --- a/kdejava/koala/org/kde/koala/KGlobalAccel.java +++ /dev/null @@ -1,210 +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.TQObject; -import org.kde.qt.TQObject; - -/** - - TDEGlobalAccel allows you to have global accelerators that are independent of - the focused window. Unlike KAccel it does not matter which window is - currently active. - @short Configurable global shortcut support. - @see KAccel - @see KAccelShortcutList - @see KKeyChooser - @see KKeyDialog - -*/ -public class TDEGlobalAccel extends TQObject { - protected TDEGlobalAccel(Class dummy){super((Class) null);} - public native TQMetaObject metaObject(); - public native String className(); - /** - Creates a new TDEGlobalAccel object with the given pParent and - psName. - @param pParent the parent of the TQObject - @param psName the name of the TQObject - @short Creates a new TDEGlobalAccel object with the given pParent and psName. - */ - public TDEGlobalAccel(TQObject pParent, String psName) { - super((Class) null); - newTDEGlobalAccel(pParent,psName); - } - private native void newTDEGlobalAccel(TQObject pParent, String psName); - public TDEGlobalAccel(TQObject pParent) { - super((Class) null); - newTDEGlobalAccel(pParent); - } - private native void newTDEGlobalAccel(TQObject pParent); - /** - Checks whether the accelerators are enabled. - @return true if the TDEGlobalAccel is enabled - - @short Checks whether the accelerators are enabled. - */ - public native boolean isEnabled(); - /** - Create an accelerator action. - Usage: -
-		 insert( "Do Something", i18n("Do Something"),
-		   i18n("This action allows you to do something really great with this program to "
-		        "the currently open document."),
-		   ALT+CTRL+Key_Q, KKey.QtWIN+CTRL+Key_Q, this, SLOT("slotDoSomething()") );
-		
- @param sAction The internal name of the action. - @param sLabel An i18n'ized short description of the action displayed when - using KKeyChooser to reconfigure the shortcuts. - @param sWhatsThis An extended description of the action. - @param cutDef3 The default 3 modifier scheme shortcut. - @param cutDef4 The default 4 modifier scheme shortcut. - @param pObjSlot Pointer to the slot object. - @param psMethodSlot Pointer to the slot method. - @param bConfigurable Allow the user to change this shortcut if set to 'true'. - @param bEnabled The action will be activated by the shortcut if set to 'true'. - @short Create an accelerator action. - */ - public native KAccelAction insert(String sAction, String sLabel, String sWhatsThis, KShortcut cutDef3, KShortcut cutDef4, TQObject pObjSlot, String psMethodSlot, boolean bConfigurable, boolean bEnabled); - public native KAccelAction insert(String sAction, String sLabel, String sWhatsThis, KShortcut cutDef3, KShortcut cutDef4, TQObject pObjSlot, String psMethodSlot, boolean bConfigurable); - public native KAccelAction insert(String sAction, String sLabel, String sWhatsThis, KShortcut cutDef3, KShortcut cutDef4, TQObject pObjSlot, String psMethodSlot); - /** - Removes the accelerator action identified by the name. - Remember to also call updateConnections(). - @param sAction the name of the action to remove - @short Removes the accelerator action identified by the name. - */ - public native boolean remove(String sAction); - /** - Use this to insert a label into the action list. This will be - displayed when the user configures shortcuts. - @param sName of the of the action to insert - @param sLabel a user-readable (i18n!) name for the action - @return the KAccelAction of the action - - @short Use this to insert a label into the action list. - */ - public native KAccelAction insert(String sName, String sLabel); - /** - Updates the connections of the accelerations after changing them. - @return true if successful, false otherwise - - @short Updates the connections of the accelerations after changing them. - */ - public native boolean updateConnections(); - /** - Return the shortcut associated with the action named by sAction. - @param sAction the name of the action - @return the shortcut. If the action does not exist a null shortcut will be returned. - - @short Return the shortcut associated with the action named by sAction. - */ - public native KShortcut shortcut(String sAction); - /** - Set the shortcut to be associated with the action named by sAction. - @param sAction the name of the action - @param shortcut the shortcut for the action - @return true if successful, false otherwise - - @short Set the shortcut to be associated with the action named by sAction. - */ - public native boolean setShortcut(String sAction, KShortcut shortcut); - /** - Set the slot to be called when the shortcut of the action named - by sAction is pressed. - @param sAction the name of the action - @param pObjSlot the receiver of the signal - @param psMethodSlot the slot to receive the signal - @return true if successful, false otherwise - - @short Set the slot to be called when the shortcut of the action named by sAction is pressed. - */ - public native boolean setSlot(String sAction, TQObject pObjSlot, String psMethodSlot); - /** - Enables or disables action sAction. - @short Enables or disables action sAction. - */ - public native boolean setActionEnabled(String sAction, boolean bEnable); - /** - Return the label (i18n'ized short description) associated with the action named by sAction. - @param sAction the name of the action - @return the label - - @short Return the label (i18n'ized short description) associated with the action named by sAction. - */ - public native String label(String sAction); - /** - Returns the configuration group that is used to save the accelerators. - @return the configuration group - - @short Returns the configuration group that is used to save the accelerators. - @see KConfig - */ - public native String configGroup(); - /** - Sets the configuration group that is used to save the accelerators. - @param cg the configuration group - @short Sets the configuration group that is used to save the accelerators. - @see KConfig - */ - public native void setConfigGroup(String cg); - /** - Read all shortcuts from pConfig, or (if pConfig - is zero) from the application's configuration file - TDEGlobal.config(). - @param pConfig the configuration file to read from, or 0 for the application - configuration file - @return true if successful, false otherwise - - @short Read all shortcuts from pConfig, or (if pConfig is zero) from the application's configuration file TDEGlobal.config(). - */ - public native boolean readSettings(KConfigBase pConfig); - public native boolean readSettings(); - /** - Write the current shortcuts to pConfig, - or (if pConfig is zero) to the application's - configuration file. - @param pConfig the configuration file to read from, or 0 for the application - configuration file - @return true if successful, false otherwise - - @short Write the current shortcuts to pConfig, or (if pConfig is zero) to the application's configuration file. - */ - public native boolean writeSettings(KConfigBase pConfig); - public native boolean writeSettings(); - /** - Write the current shortcuts to pConfig, - or (if pConfig is zero) to the application's - configuration file. Alternatively, if bGlobal is true, then write - to kdeglobals. - @param pConfig the configuration file to read from, or 0 for the application - configuration file - @param bGlobal if true write the configuration to the kde global settings - @return true if successful, false otherwise - - @short Write the current shortcuts to pConfig, or (if pConfig is zero) to the application's configuration file. - */ - public native boolean writeSettings(KConfigBase pConfig, boolean bGlobal); - /** - @short - */ - public native void disableBlocking(boolean disable); - /** - KAccelActions.useFourModifierKeys(). - @short - */ - public static native boolean useFourModifierKeys(); - /** - @short - */ - public static native void blockShortcuts(boolean block); - /** 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/KGlobalSettings.java b/kdejava/koala/org/kde/koala/KGlobalSettings.java deleted file mode 100644 index d7d48321..00000000 --- a/kdejava/koala/org/kde/koala/KGlobalSettings.java +++ /dev/null @@ -1,481 +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.QtSupport; -import org.kde.qt.TQPoint; -import org.kde.qt.TQWidget; - -/** - - Access the KDE global configuration. - @author David Faure - - @short Access the KDE global configuration. - -*/ -public class TDEGlobalSettings implements QtSupport { - private long _qt; - private boolean _allocatedInJavaWorld = true; - protected TDEGlobalSettings(Class dummy){} - - /** - This enum describes the return type for insertTearOffHandle() whether to insert - a handle or not. Applications who independently want to use handles in their popup menus - should test for Application level before calling the appropriate function in KPopupMenu. - @short This enum describes the return type for insertTearOffHandle() whether to insert a handle or not. - */ - public static final int Disable = 0; - public static final int ApplicationLevel = 1; - public static final int Enable = 2; - - /** - This enum describes the completion mode used for by the KCompletion class. - See - the styleguide. - @short This enum describes the completion mode used for by the KCompletion class. - */ - public static final int CompletionNone = 1; - public static final int CompletionAuto = 2; - public static final int CompletionMan = 3; - public static final int CompletionShell = 4; - public static final int CompletionPopup = 5; - public static final int CompletionPopupAuto = 6; - - public TDEGlobalSettings() { - newTDEGlobalSettings(); - } - private native void newTDEGlobalSettings(); - /** - Returns a threshold in pixels for drag & drop operations. - As long as the mouse movement has not exceeded this number - of pixels in either X or Y direction no drag operation may - be started. This prevents spurious drags when the user intended - to click on something but moved the mouse a bit while doing so. - For this to work you must save the position of the mouse (oldPos) - in the TQWidget.mousePressEvent(). - When the position of the mouse (newPos) - in a TQWidget.mouseMoveEvent() exceeds this threshold - you may start a drag - which should originate from oldPos. - Example code: -
-		 void KColorCells.mousePressEvent( TQMouseEvent e )
-		 {
-		    mOldPos = e.pos();
-		 }
-			 void KColorCells.mouseMoveEvent( TQMouseEvent e )
-		 {
-		    if( !(e.state() && LeftButton)) return;
-			    int delay = TDEGlobalSettings.dndEventDelay();
-		    TQPoint newPos = e.pos();
-		    if(newPos.x() > mOldPos.x()+delay || newPos.x() < mOldPos.x()-delay ||
-		       newPos.y() > mOldPos.y()+delay || newPos.y() < mOldPos.y()-delay)
-		    {
-		       // Drag color object
-		       int cell = posToCell(mOldPos); // Find color at mOldPos
-		       if ((cell != -1) && colors[cell].isValid())
-		       {
-		          KColorDrag d = KColorDrag.makeDrag( colors[cell], this);
-		          d.dragCopy();
-		       }
-		    }
-		 }
-		 
- @return the threshold for drag & drop in pixels - - @short Returns a threshold in pixels for drag & drop operations. - */ - public static native int dndEventDelay(); - /** - Returns whether KDE runs in single (default) or double click - mode. - see http://developer.kde.org/documentation/standards/kde/style/mouse/index.html - @return true if single click mode, or false if double click mode. - - @short Returns whether KDE runs in single (default) or double click mode. - */ - public static native boolean singleClick(); - /** - Returns whether tear-off handles are inserted in KPopupMenus. - @return whether tear-off handles are inserted in KPopupMenus. - - @short Returns whether tear-off handles are inserted in KPopupMenus. - */ - public static native int insertTearOffHandle(); - /** - Checks whether the cursor changes over icons. - @return the KDE setting for "change cursor over icon" - - @short Checks whether the cursor changes over icons. - */ - public static native boolean changeCursorOverIcon(); - /** - Checks whether to show feedback when in item (specifically an - icon) is activated. - @return whether to show some feedback when an item is activated. - - @short Checks whether to show feedback when in item (specifically an icon) is activated. - */ - public static native boolean visualActivate(); - /** - Returns the speed of the visual activation feedback. - @return the speed of the visual activation feedback, between - 0 for minimum and 100 for maximum speed - - @short Returns the speed of the visual activation feedback. - */ - public static native int visualActivateSpeed(); - /** - Returns the KDE setting for the auto-select option. - @return the auto-select delay or -1 if auto-select is disabled. - - @short Returns the KDE setting for the auto-select option. - */ - public static native int autoSelectDelay(); - /** - Returns the KDE setting for the shortcut key to open - context menus. - @return the key that pops up context menus. - - @short Returns the KDE setting for the shortcut key to open context menus. - */ - public static native int contextMenuKey(); - /** - Returns the KDE setting for context menus. - @return whether context menus should be shown on button press - or button release (click). - - @short Returns the KDE setting for context menus. - */ - public static native boolean showContextMenusOnPress(); - /** - Returns the preferred completion mode setting. - @return Completion. Default is CompletionPopup. - - @short Returns the preferred completion mode setting. - */ - public static native int completionMode(); - /** - This returns the current mouse settings. - On Windows, settings are retrieved from the system. - @return the current mouse settings - - @short This returns the current mouse settings. - */ - // TDEGlobalSettings::KMouseSettings& mouseSettings(); >>>> NOT CONVERTED - /** - The path to the desktop directory of the current user. - @return the user's desktop directory - - @short The path to the desktop directory of the current user. - */ - public static native String desktopPath(); - /** - The path to the autostart directory of the current user. - @return the path of the autostart directory - - @short The path to the autostart directory of the current user. - */ - public static native String autostartPath(); - /** - DEPRECATED (starting from kde-3.4). - This isn't where the trash contents is, anymore. - Use KIO.trash() to trash files, "trash:/" to list the trash contents. - @short DEPRECATED (starting from kde-3. - */ - public static native String trashPath(); - /** - The path where documents are stored of the current user. - @return the path of the document directory - - @short The path where documents are stored of the current user. - */ - public static native String documentPath(); - /** - The default color to use when highlighting toolbar buttons. - @return the toolbar highlight color - - @short The default color to use when highlighting toolbar buttons. - */ - public static native TQColor toolBarHighlightColor(); - /** - The default color to use for inactive titles. - @return the inactive title color - - @short The default color to use for inactive titles. - */ - public static native TQColor inactiveTitleColor(); - /** - The default color to use for inactive texts. - @return the inactive text color - - @short The default color to use for inactive texts. - */ - public static native TQColor inactiveTextColor(); - /** - The default color to use for active titles. - @return the active title color - - @short The default color to use for active titles. - */ - public static native TQColor activeTitleColor(); - /** - The default color to use for active texts. - @return the active text color - - @short The default color to use for active texts. - */ - public static native TQColor activeTextColor(); - /** - Returns the contrast for borders. - @return the contrast (between 0 for minimum and 10 for maximum - contrast) - - @short Returns the contrast for borders. - */ - public static native int contrast(); - /** - Returns the button background color - @return the button background color - - @short Returns the button background color - */ - public static native TQColor buttonBackground(); - /** - Returns the button text color - @return the button text color - - @short Returns the button text color - */ - public static native TQColor buttonTextColor(); - /** - Returns the default base (background) color. - @return the default base (background) color - - @short Returns the default base (background) color. - @see org.kde.qt.TQColorGroup#base - */ - public static native TQColor baseColor(); - /** - Returns the default text color. - @return the default text color - - @short Returns the default text color. - @see org.kde.qt.TQColorGroup#text - */ - public static native TQColor textColor(); - /** - Returns the default link color. - @return the default link color - - @short Returns the default link color. - */ - public static native TQColor linkColor(); - /** - Returns the default color for visited links. - @return the default color for visited links - - @short Returns the default color for visited links. - */ - public static native TQColor visitedLinkColor(); - /** - Returns the default color for highlighted text. - @return the default color for highlighted text - - @short Returns the default color for highlighted text. - @see org.kde.qt.TQColorGroup#hightlightedText - */ - public static native TQColor highlightedTextColor(); - /** - Returns the default color for text highlights. - @return the default color for text highlights - - @short Returns the default color for text highlights. - @see org.kde.qt.TQColorGroup#hightlight - */ - public static native TQColor highlightColor(); - /** - Returns the alternate background color used by KListView with - KListViewItem. Any other list that uses alternating background - colors should use this too, to obey to the user's preferences. Returns - an invalid color if the user doesn't want alternating backgrounds. - @return the alternate background color - - @short Returns the alternate background color used by KListView with KListViewItem. - @see #calculateAlternateBackgroundColor - */ - public static native TQColor alternateBackgroundColor(); - /** - Calculates a color based on base to be used as alternating - color for e.g. listviews. - @param base the base for the calculation - @return the calculated color - - @short Calculates a color based on base to be used as alternating color for e. - @see #alternateBackgroundColor - */ - public static native TQColor calculateAlternateBackgroundColor(TQColor base); - /** - Returns if the sorted column in a KListView shall be drawn with a - shaded background color. - @return true if the sorted column shall be shaded - - @short Returns if the sorted column in a KListView shall be drawn with a shaded background color. - */ - public static native boolean shadeSortColumn(); - /** - Returns the default general font. - @return the default general font. - - @short Returns the default general font. - */ - public static native TQFont generalFont(); - /** - Returns the default fixed font. - @return the default fixed font. - - @short Returns the default fixed font. - */ - public static native TQFont fixedFont(); - /** - Returns the default toolbar font. - @return the default toolbar font. - - @short Returns the default toolbar font. - */ - public static native TQFont toolBarFont(); - /** - Returns the default menu font. - @return the default menu font. - - @short Returns the default menu font. - */ - public static native TQFont menuFont(); - /** - Returns the default window title font. - @return the default window title font. - - @short Returns the default window title font. - */ - public static native TQFont windowTitleFont(); - /** - Returns the default taskbar font. - @return the default taskbar font. - - @short Returns the default taskbar font. - */ - public static native TQFont taskbarFont(); - /** - Returns a font of approx. 48 pt. capable of showing text. - @param text the text to test - @return the font that is capable to show the text with 48 pt - - @short Returns a font of approx. - */ - public static native TQFont largeFont(String text); - public static native TQFont largeFont(); - /** - Returns if the user specified multihead. In case the display - has multiple screens, the return value of this function specifies - if the user wants KDE to run on all of them or just on the primary - On Windows, settings are retrieved from the system. - @return true if the user chose multi head - - @short Returns if the user specified multihead. - */ - public static native boolean isMultiHead(); - /** - Typically, TQScrollView derived classes can be scrolled fast by - holding down the Ctrl-button during wheel-scrolling. - But TQTextEdit and derived classes perform zooming instead of fast - scrolling. - This value determines whether the user wants to zoom or scroll fast - with Ctrl-wheelscroll. - @return true if the user wishes to zoom with the mouse wheel, - false for scrolling - - @short Typically, TQScrollView derived classes can be scrolled fast by holding down the Ctrl-button during wheel-scrolling. - */ - public static native boolean wheelMouseZooms(); - /** - This function returns the desktop geometry for an application's splash - screen. It takes into account the user's display settings (number of - screens, Xinerama, etc), and the user's preferences (if KDE should be - Xinerama aware). - @return the geometry to use for the desktop. Note that it might not - start at (0,0). - - @short This function returns the desktop geometry for an application's splash screen. - */ - public static native TQRect splashScreenDesktopGeometry(); - /** - This function returns the desktop geometry for an application that needs - to set the geometry of a widget on the screen manually. It takes into - account the user's display settings (number of screens, Xinerama, etc), - and the user's preferences (if KDE should be Xinerama aware). - Note that this can break in multi-head (not Xinerama) mode because this - point could be on multiple screens. Use with care. - @param point a reference point for the widget, for instance one that the - widget should be adjacent or on top of. - @return the geometry to use for the desktop. Note that it might not - start at (0,0). - - @short This function returns the desktop geometry for an application that needs to set the geometry of a widget on the screen manually. - */ - public static native TQRect desktopGeometry(TQPoint point); - /** - This function returns the desktop geometry for an application that needs - to set the geometry of a widget on the screen manually. It takes into - account the user's display settings (number of screens, Xinerama, etc), - and the user's preferences (if KDE should be Xinerama aware). - @param w the widget in question. This is used to determine which screen - to use in Xinerama or multi-head mode. - @return the geometry to use for the desktop. Note that it might not - start at (0,0). - - @short This function returns the desktop geometry for an application that needs to set the geometry of a widget on the screen manually. - */ - public static native TQRect desktopGeometry(TQWidget w); - /** - This function determines if the user wishes to see icons on the - push buttons. - @return Returns true if user wants to show icons. - - @short This function determines if the user wishes to see icons on the push buttons. - */ - public static native boolean showIconsOnPushButtons(); - /** - This function determines if the user wishes to see previews - for the selected url - @return Returns true if user wants to show previews. - - @short This function determines if the user wishes to see previews for the selected url - */ - public static native boolean showFilePreview(KURL arg1); - /** - Whether the user wishes to use opaque resizing. Primarily - intended for TQSplitter.setOpaqueResize() - @return Returns true if user wants to use opaque resizing. - - @short Whether the user wishes to use opaque resizing. - */ - public static native boolean opaqueResize(); - /** - The layout scheme to use for dialog buttons - @return Returns the number of the scheme to use. - - @short The layout scheme to use for dialog buttons - @see KDialogBase#setButtonStyle - */ - public static native int buttonLayout(); - /** 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/KProcess.java b/kdejava/koala/org/kde/koala/KProcess.java deleted file mode 100644 index caad1555..00000000 --- a/kdejava/koala/org/kde/koala/KProcess.java +++ /dev/null @@ -1,628 +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.TQObject; -import org.kde.qt.TQObject; - -/** - - Child process invocation, monitoring and control. -
  • General usage and features:
  • - This class allows a KDE application to start child processes without having - to worry about UNX signal handling issues and zombie process reaping. - Basically, this class distinguishes three different ways of running - child processes: - -
  • - DontCare -- The child process is invoked and both the child - process and the parent process continue concurrently. -
  • - The process is started in an own session (see setsid(2)). - -
  • - NotifyOnExit -- The child process is invoked and both the - child and the parent process run concurrently. -
  • - When the child process exits, the TDEProcess instance - corresponding to it emits the Qt signal processExited(). - Since this signal is not emitted from within a UNX - signal handler, arbitrary function calls can be made. - Be aware: When the TDEProcess object gets destructed, the child - process will be killed if it is still running! - This means in particular, that it usually makes no sense to use - a TDEProcess on the stack with NotifyOnExit. - -
  • - OwnGroup -- like NotifyOnExit, but the child process is started - in an own process group (and an own session, FWIW). The behavior of - kill() changes to killing the whole process group - this makes - this mode useful for implementing primitive job management. It can be - used to work around broken wrapper scripts that don't propagate signals - to the "real" program. However, use this with care, as you disturb the - shell's job management if your program is started from the command line. -
  • - -
  • - Block -- The child process starts and the parent process - is suspended until the child process exits. (Really not recommended - for programs with a GUI.) - In this mode the parent can read the child's output, but can't send it any - input. -
  • - TDEProcess also provides several functions for determining the exit status - and the pid of the child process it represents. - Furthermore it is possible to supply command-line arguments to the process - in a clean fashion (no null-terminated stringlists and such...) - A small usage example: -
    -   TDEProcess proc = new TDEProcess;
    -   proc << "my_executable";
    -   proc << "These" << "are" << "the" << "command" << "line" << "args";
    -   TQApplication.connect(proc, SIGNAL("processExited(TDEProcess )"),
    -                         pointer_to_my_object, SLOT("my_objects_slot(TDEProcess )"));
    -   proc.start();
    - 
    - This will start "my_executable" with the commandline arguments "These"... - When the child process exits, the slot will be invoked. -
  • Communication with the child process:
  • - TDEProcess supports communication with the child process through - stdin/stdout/stderr. - The following functions are provided for getting data from the child - process or sending data to the child's stdin (For more information, - have a look at the documentation of each function): - -
  • - writeStdin() - -- Transmit data to the child process' stdin. When all data was sent, the - signal wroteStdin() is emitted. -
  • - -
  • - When data arrives at stdout or stderr, the signal receivedStdout() - resp. receivedStderr() is emitted. -
  • - -
  • - You can shut down individual communication channels with - closeStdin(), closeStdout(), and closeStderr(), resp. -
  • - See {@link TDEProcessSignals} for signals emitted by TDEProcess - @author Christian Czezatke e9025461@student.tuwien.ac.at - - @short Child process invocation, monitoring and control. - @see KProcIO - -*/ -public class TDEProcess extends TQObject { - protected TDEProcess(Class dummy){super((Class) null);} - /** - More or less intuitive constants for use with setPriority(). - @short More or less intuitive constants for use with setPriority(). - */ - public static final int PrioLowest = 20; - public static final int PrioLow = 10; - public static final int PrioLower = 5; - public static final int PrioNormal = 0; - public static final int PrioHigher = -5; - public static final int PrioHigh = -10; - public static final int PrioHighest = -19; - - /** - Modes in which the communication channel can be opened. - If communication for more than one channel is required, - the values have to be or'ed together, for example to get - communication with stdout as well as with stdin, you would - specify Stdin | Stdout - If NoRead is specified in conjunction with Stdout, - no data is actually read from Stdout but only - the signal receivedStdout(int fd, int &len) is emitted. - @short Modes in which the communication channel can be opened. - */ - public static final int NoCommunication = 0; - public static final int Stdin = 1; - public static final int Stdout = 2; - public static final int Stderr = 4; - public static final int AllOutput = 6; - public static final int All = 7; - public static final int NoRead = 8; - - /** - Run-modes for a child process. - @short Run-modes for a child process. - */ - public static final int DontCare = 0; - public static final int NotifyOnExit = 1; - public static final int Block = 2; - public static final int OwnGroup = 3; - - public native TQMetaObject metaObject(); - public native String className(); - /** - Constructor - @short Constructor - */ - public TDEProcess(TQObject parent, String name) { - super((Class) null); - newTDEProcess(parent,name); - } - private native void newTDEProcess(TQObject parent, String name); - public TDEProcess(TQObject parent) { - super((Class) null); - newTDEProcess(parent); - } - private native void newTDEProcess(TQObject parent); - /** - Constructor - @short Constructor - */ - public TDEProcess() { - super((Class) null); - newTDEProcess(); - } - private native void newTDEProcess(); - /** - Sets the executable and the command line argument list for this process. - For example, doing an "ls -l /usr/local/bin" can be achieved by: -
    -		  TDEProcess p;
    -		  ...
    -		  p << "ls" << "-l" << "/usr/local/bin"
    -		  
    - @param arg the argument to add - @return a reference to this TDEProcess - - @short Sets the executable and the command line argument list for this process. - */ - public native TDEProcess op_write(String arg); - /** - Sets the executable and the command line argument list for this process, - in a single method call, or add a list of arguments. - @param args the arguments to add - @return a reference to this TDEProcess - - @short Sets the executable and the command line argument list for this process, in a single method call, or add a list of arguments. - */ - public native TDEProcess op_write(String[] args); - /** - Clear a command line argument list that has been set by using - operator<<. - @short Clear a command line argument list that has been set by using operator<<. - */ - public native void clearArguments(); - /** - Starts the process. - For a detailed description of the - various run modes and communication semantics, have a look at the - general description of the TDEProcess class. Note that if you use - setUsePty( Stdout | Stderr, \ ), you cannot use Stdout | Stderr - here - instead, use Stdout only to receive the mixed output. - The following problems could cause this function to - return false: - -
  • - The process is already running. -
  • - -
  • - The command line argument list is empty. -
  • - -
  • - The the comm parameter is incompatible with the selected pty usage. -
  • - -
  • - The starting of the process failed (could not fork). -
  • - -
  • - The executable was not found. -
  • - @param runmode The Run-mode for the process. - @param comm Specifies which communication links should be - established to the child process (stdin/stdout/stderr). By default, - no communication takes place and the respective communication - signals will never get emitted. - @return true on success, false on error - (see above for error conditions) - - @short Starts the process. - */ - public native boolean start(int runmode, int comm); - public native boolean start(int runmode); - public native boolean start(); - /** - Stop the process (by sending it a signal). - @param signo The signal to send. The default is SIGTERM. - @return true if the signal was delivered successfully. - - @short Stop the process (by sending it a signal). - */ - public native boolean kill(int signo); - public native boolean kill(); - /** - Checks whether the process is running. - @return true if the process is (still) considered to be running - - @short Checks whether the process is running. - */ - public native boolean isRunning(); - /** Returns the process id of the process. - If it is called after - the process has exited, it returns the process id of the last - child process that was created by this instance of TDEProcess. - Calling it before any child process has been started by this - TDEProcess instance causes pid() to return 0. - @return the pid of the process or 0 if no process has been started yet. - - @short Returns the process id of the process. - */ - public native int pid(); - /** - Suspend processing of data from stdout of the child process. - @short Suspend processing of data from stdout of the child process. - */ - public native void suspend(); - /** - Resume processing of data from stdout of the child process. - @short Resume processing of data from stdout of the child process. - */ - public native void resume(); - /** - Suspend execution of the current thread until the child process dies - or the timeout hits. This function is not recommended for programs - with a GUI. - @param timeout timeout in seconds. -1 means wait indefinitely. - @return true if the process exited, false if the timeout hit. - - @short Suspend execution of the current thread until the child process dies or the timeout hits. - */ - public native boolean waitThread(int timeout); - public native boolean waitThread(); - /** - Checks whether the process exited cleanly. - @return true if the process has already finished and has exited - "voluntarily", ie: it has not been killed by a signal. - - @short Checks whether the process exited cleanly. - */ - public native boolean normalExit(); - /** - Checks whether the process was killed by a signal. - @return true if the process has already finished and has not exited - "voluntarily", ie: it has been killed by a signal. - - @short Checks whether the process was killed by a signal. - */ - public native boolean signalled(); - /** - Checks whether a killed process dumped core. - @return true if signalled() returns true and the process - dumped core. Note that on systems that don't define the - WCOREDUMP macro, the return value is always false. - - @short Checks whether a killed process dumped core. - */ - public native boolean coreDumped(); - /** - Returns the exit status of the process. - @return the exit status of the process. Note that this value - is not valid if normalExit() returns false. - - @short Returns the exit status of the process. - */ - public native int exitStatus(); - /** - Returns the signal the process was killed by. - @return the signal number that caused the process to exit. - Note that this value is not valid if signalled() returns false. - - @short Returns the signal the process was killed by. - */ - public native int exitSignal(); - /** - Transmit data to the child process' stdin. - This function may return false in the following cases: - -
  • - The process is not currently running. - This implies that you cannot use this function in Block mode. -
  • - -
  • - Communication to stdin has not been requested in the start() call. -
  • - -
  • - Transmission of data to the child process by a previous call to - writeStdin() is still in progress. -
  • - Please note that the data is sent to the client asynchronously, - so when this function returns, the data might not have been - processed by the child process. - That means that you must not free buffer or call writeStdin() - again until either a wroteStdin() signal indicates that the - data has been sent or a processExited() signal shows that - the child process is no longer alive. - If all the data has been sent to the client, the signal - wroteStdin() will be emitted. - @param buffer the buffer to write - @param buflen the length of the buffer - @return false if an error has occurred - - @short Transmit data to the child process' stdin. - */ - public native boolean writeStdin(String buffer, int buflen); - /** - Shuts down the Stdin communication link. If no pty is used, this - causes "EOF" to be indicated on the child's stdin file descriptor. - @return false if no Stdin communication link exists (any more). - - @short Shuts down the Stdin communication link. - */ - public native boolean closeStdin(); - /** - Shuts down the Stdout communication link. If no pty is used, any further - attempts by the child to write to its stdout file descriptor will cause - it to receive a SIGPIPE. - @return false if no Stdout communication link exists (any more). - - @short Shuts down the Stdout communication link. - */ - public native boolean closeStdout(); - /** - Shuts down the Stderr communication link. If no pty is used, any further - attempts by the child to write to its stderr file descriptor will cause - it to receive a SIGPIPE. - @return false if no Stderr communication link exists (any more). - - @short Shuts down the Stderr communication link. - */ - public native boolean closeStderr(); - /** - Deletes the optional utmp entry and closes the pty. - Make sure to shut down any communication links that are using the pty - before calling this function. - @return false if the pty is not open (any more). - - @short Deletes the optional utmp entry and closes the pty. - */ - public native boolean closePty(); - /** - @brief Close stdin, stdout, stderr and the pty - This is the same that calling all close functions in a row: - @short @brief Close stdin, stdout, stderr and the pty - @see #closeStdin - @see @see - @see #closeStdout - @see @see - @see #closeStderr - @see @see - @see #closePty - */ - public native void closeAll(); - /** - Lets you see what your arguments are for debugging. - @return the list of arguments - - @short Lets you see what your arguments are for debugging. - */ - // const TQValueList& args(); >>>> NOT CONVERTED - /** - Controls whether the started process should drop any - setuid/setgid privileges or whether it should keep them. - Note that this function is mostly a dummy, as the KDE libraries - currently refuse to run with setuid/setgid privileges. - The default is false: drop privileges - @param keepPrivileges true to keep the privileges - @short Controls whether the started process should drop any setuid/setgid privileges or whether it should keep them. - */ - public native void setRunPrivileged(boolean keepPrivileges); - /** - Returns whether the started process will drop any - setuid/setgid privileges or whether it will keep them. - @return true if the process runs privileged - - @short Returns whether the started process will drop any setuid/setgid privileges or whether it will keep them. - */ - public native boolean runPrivileged(); - /** - Adds the variable name to the process' environment. - This function must be called before starting the process. - @param name the name of the environment variable - @param value the new value for the environment variable - @short Adds the variable name to the process' environment. - */ - public native void setEnvironment(String name, String value); - /** - Changes the current working directory (CWD) of the process - to be started. - This function must be called before starting the process. - @param dir the new directory - @short Changes the current working directory (CWD) of the process to be started. - */ - public native void setWorkingDirectory(String dir); - /** - Specify whether to start the command via a shell or directly. - The default is to start the command directly. - If useShell is true shell will be used as shell, or - if shell is empty, /bin/sh will be used. - When using a shell, the caller should make sure that all filenames etc. - are properly quoted when passed as argument. - @param useShell true if the command should be started via a shell - @param shell the path to the shell that will execute the process, or - 0 to use /bin/sh. Use getenv("SHELL") to use the user's - default shell, but note that doing so is usually a bad idea - for shell compatibility reasons. - @short Specify whether to start the command via a shell or directly. - @see #quote - */ - public native void setUseShell(boolean useShell, String shell); - public native void setUseShell(boolean useShell); - /** - Detaches TDEProcess from child process. All communication is closed. - No exit notification is emitted any more for the child process. - Deleting the TDEProcess will no longer kill the child process. - Note that the current process remains the parent process of the - child process. - @short Detaches TDEProcess from child process. - */ - public native void detach(); - /** - Sets the scheduling priority of the process. - @param prio the new priority in the range -20 (high) to 19 (low). - @return false on error; see setpriority(2) for possible reasons. - - @short Sets the scheduling priority of the process. - */ - public native boolean setPriority(int prio); - /** - This function can be used to quote an argument string such that - the shell processes it properly. This is e. g. necessary for - user-provided file names which may contain spaces or quotes. - It also prevents expansion of wild cards and environment variables. - @param arg the argument to quote - @return the quoted argument - - @short This function can be used to quote an argument string such that the shell processes it properly. - */ - public static native String quote(String arg); - /** - Sets up the environment according to the data passed via - setEnvironment() - @short Sets up the environment according to the data passed via setEnvironment() - */ - protected native void setupEnvironment(); - /** - This function is called from start() right before a fork() takes - place. According to the comm parameter this function has to initialize - the in, out and err data members of TDEProcess. - This function should return 1 if setting the needed communication channels - was successful. - The default implementation is to create UNIX STREAM sockets for the - communication, but you could reimplement this function to establish a - TCP/IP communication for network communication, for example. - @short This function is called from start() right before a fork() takes place. - */ - protected native int setupCommunication(int comm); - /** - Called right after a (successful) fork() on the parent side. This function - will usually do some communications cleanup, like closing in[0], - out[1] and out[1]. - Furthermore, it must also create the TQSocketNotifiers innot, - outnot and errnot and connect their Qt signals to the respective - TDEProcess slots. - For a more detailed explanation, it is best to have a look at the default - implementation in kprocess.cpp. - @short Called right after a (successful) fork() on the parent side. - */ - protected native int commSetupDoneP(); - /** - Called right after a (successful) fork(), but before an exec() on the child - process' side. It usually duplicates the in[0], out[1] and - err[1] file handles to the respective standard I/O handles. - @short Called right after a (successful) fork(), but before an exec() on the child process' side. - */ - protected native int commSetupDoneC(); - /** - Immediately called after a successfully started process in NotifyOnExit - mode has exited. This function normally calls commClose() - and emits the processExited() signal. - @param state the exit code of the process as returned by waitpid() - @short Immediately called after a successfully started process in NotifyOnExit mode has exited. - */ - protected native void processHasExited(int state); - /** - Cleans up the communication links to the child after it has exited. - This function should act upon the values of pid() and runs. - See the kprocess.cpp source for details. - -
  • - If pid() returns zero, the communication links should be closed - only. -
  • - -
  • - if pid() returns non-zero and runs is false, all data - immediately available from the communication links should be processed - before closing them. -
  • - -
  • - if pid() returns non-zero and runs is true, the communication - links should be monitored for data until the file handle returned by - TDEProcessController.theTDEProcessController.notifierFd() becomes ready - for reading - when it triggers, runs should be reset to false, and - the function should be immediately left without closing anything. -
  • - The previous semantics of this function are forward-compatible, but should - be avoided, as they are prone to race conditions and can cause TDEProcess - (and thus the whole program) to lock up under certain circumstances. At the - end the function closes the communication links in any case. Additionally - -
  • - if runs is true, the communication links are monitored for data - until all of them have returned EOF. Note that if any system function is - interrupted (errno == EINTR) the polling loop should be aborted. -
  • - -
  • - if runs is false, all data immediately available from the - communication links is processed. - -
  • @short Cleans up the communication links to the child after it has exited. - */ - protected native void commClose(); - /** - Specify the actual executable that should be started (first argument to execve) - Normally the the first argument is the executable but you can - override that with this function. - @short Specify the actual executable that should be started (first argument to execve) Normally the the first argument is the executable but you can override that with this function. - */ - protected native void setBinaryExecutable(String filename); - /** - Called by slotChildOutput() this function copies data arriving from - the child process' stdout to the respective buffer and emits the signal - receivedStdout(). - @short Called by slotChildOutput() this function copies data arriving from the child process' stdout to the respective buffer and emits the signal receivedStdout(). - */ - protected native int childOutput(int fdno); - /** - Called by slotChildError() this function copies data arriving from - the child process' stderr to the respective buffer and emits the signal - receivedStderr(). - @short Called by slotChildError() this function copies data arriving from the child process' stderr to the respective buffer and emits the signal receivedStderr(). - */ - protected native int childError(int fdno); - /** - This slot gets activated when data from the child's stdout arrives. - It usually calls childOutput(). - @param fdno the file descriptor for the output - @short This slot gets activated when data from the child's stdout arrives. - */ - protected native void slotChildOutput(int fdno); - /** - This slot gets activated when data from the child's stderr arrives. - It usually calls childError(). - @param fdno the file descriptor for the output - @short This slot gets activated when data from the child's stderr arrives. - */ - protected native void slotChildError(int fdno); - /** - Called when another bulk of data can be sent to the child's - stdin. If there is no more data to be sent to stdin currently - available, this function must disable the TQSocketNotifier innot. - @param dummy ignore this argument - @short Called when another bulk of data can be sent to the child's stdin. - */ - protected native void slotSendData(int dummy); - /** 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/KProcessController.java b/kdejava/koala/org/kde/koala/KProcessController.java deleted file mode 100644 index d6e02651..00000000 --- a/kdejava/koala/org/kde/koala/KProcessController.java +++ /dev/null @@ -1,79 +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.TQObject; - -/** - - A class for internal use by TDEProcess only. -- Exactly one instance - of this class is created by TDEApplication. - This class takes care of the actual (UNX) signal handling. - @author Christian Czezatke - - @short Used internally by TDEProcess. - -*/ -public class TDEProcessController extends TQObject { - protected TDEProcessController(Class dummy){super((Class) null);} - public native TQMetaObject metaObject(); - public native String className(); - /** - Wait for any process to exit and handle their exit without - starting an event loop. - This function may cause TDEProcess to emit any of its signals. - @param timeout the timeout in seconds. -1 means no timeout. - @return true if a process exited, false - if no process exited within timeout seconds. - - @short Wait for any process to exit and handle their exit without starting an event loop. - */ - public native boolean waitForProcessExit(int timeout); - /** - Call this function to defer processing of the data that became available - on notifierFd(). - @short Call this function to defer processing of the data that became available on notifierFd(). - */ - public native void unscheduleCheck(); - /** - This function must be called at some point after calling - unscheduleCheck(). - @short This function @em must be called at some point after calling unscheduleCheck(). - */ - public native void rescheduleCheck(); - public native int notifierFd(); - /** - @short - */ - public native void addTDEProcess(TDEProcess arg1); - /** - @short - */ - public native void removeTDEProcess(TDEProcess arg1); - /** - @short - */ - public native void addProcess(int pid); - /** - Create an instance if none exists yet. - Called by TDEApplication.TDEApplication() - @short Create an instance if none exists yet. - */ - public static native void ref(); - /** - Destroy the instance if one exists and it is not referenced any more. - Called by TDEApplication.~TDEApplication() - @short Destroy the instance if one exists and it is not referenced any more. - */ - public static native void deref(); - /** - Automatically called upon SIGCHLD. Never call it directly. - If your application (or some library it uses) redirects SIGCHLD, - the new signal handler (and only it) should call the old handler - returned by sigaction(). - @short Automatically called upon SIGCHLD. - */ - public static native void theSigCHLDHandler(int signal); -} diff --git a/kdejava/koala/org/kde/koala/KProcessRunner.java b/kdejava/koala/org/kde/koala/KProcessRunner.java deleted file mode 100644 index 95856d14..00000000 --- a/kdejava/koala/org/kde/koala/KProcessRunner.java +++ /dev/null @@ -1,23 +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.TQObject; - -/** - - This class watches a process launched by KRun. - It sends a notification when the process exits (for the taskbar) - and it will show an error message if necessary (e.g. "program not found"). - @short - -*/ -public class TDEProcessRunner extends TQObject { - protected TDEProcessRunner(Class dummy){super((Class) null);} - public native TQMetaObject metaObject(); - public native String className(); - public native int pid(); - public static native int run(TDEProcess arg1, String binName); -} diff --git a/kdejava/koala/org/kde/koala/KProcessSignals.java b/kdejava/koala/org/kde/koala/KProcessSignals.java deleted file mode 100644 index e2d2361c..00000000 --- a/kdejava/koala/org/kde/koala/KProcessSignals.java +++ /dev/null @@ -1,72 +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.TQObject; - -public interface TDEProcessSignals { - /** - Emitted after the process has terminated when - the process was run in the NotifyOnExit (==default option to - start() ) or the Block mode. - @param proc a pointer to the process that has exited - @short Emitted after the process has terminated when the process was run in the NotifyOnExit (==default option to start() ) or the Block mode. - */ - void processExited(TDEProcess proc); - /** - Emitted, when output from the child process has - been received on stdout. - To actually get this signal, the Stdout communication link - has to be turned on in start(). - @param proc a pointer to the process that has received the output - @param buffer The data received. - @param buflen The number of bytes that are available. - You should copy the information contained in buffer to your private - data structures before returning from the slot. - Example: -
    -		     String myBuf = String.fromLatin1(buffer, buflen);
    -		 
    - @short Emitted, when output from the child process has been received on stdout. - */ - void receivedStdout(TDEProcess proc, String buffer, int buflen); - /** - Emitted when output from the child process has - been received on stdout. - To actually get this signal, the Stdout communication link - has to be turned on in start() and the - NoRead flag must have been passed. - You will need to explicitly call resume() after your call to start() - to begin processing data from the child process' stdout. This is - to ensure that this signal is not emitted when no one is connected - to it, otherwise this signal will not be emitted. - The data still has to be read from file descriptor fd. - @param fd the file descriptor that provides the data - @param len the number of bytes that have been read from fd must - be written here - @short Emitted when output from the child process has been received on stdout. - */ - void receivedStdout(int fd, int[] len); - /** - Emitted, when output from the child process has - been received on stderr. - To actually get this signal, the Stderr communication link - has to be turned on in start(). - You should copy the information contained in buffer to your private - data structures before returning from the slot. - @param proc a pointer to the process that has received the data - @param buffer The data received. - @param buflen The number of bytes that are available. - @short Emitted, when output from the child process has been received on stderr. - */ - void receivedStderr(TDEProcess proc, String buffer, int buflen); - /** - Emitted after all the data that has been - specified by a prior call to writeStdin() has actually been - written to the child process. - @param proc a pointer to the process - @short Emitted after all the data that has been specified by a prior call to writeStdin() has actually been written to the child process. - */ - void wroteStdin(TDEProcess proc); -} diff --git a/kdejava/koala/org/kde/koala/TDEGlobal.java b/kdejava/koala/org/kde/koala/TDEGlobal.java new file mode 100644 index 00000000..43e9eb40 --- /dev/null +++ b/kdejava/koala/org/kde/koala/TDEGlobal.java @@ -0,0 +1,135 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.QtSupport; + +/** + + Access to the KDE global objects. + TDEGlobal provides you with pointers of many central + objects that exist only once in the process. It is also + responsible for managing instances of KStaticDeleterBase. + @author Sirtaj Singh Kang (taj@kde.org) + + @short Access to the KDE global objects. + @see KStaticDeleterBase + +*/ +public class TDEGlobal implements QtSupport { + private long _qt; + private boolean _allocatedInJavaWorld = true; + protected TDEGlobal(Class dummy){} + + public TDEGlobal() { + newTDEGlobal(); + } + private native void newTDEGlobal(); + /** + Returns the global instance. There is always at least + one instance of a component in one application (in most + cases the application itself). + @return the global instance + + @short Returns the global instance. + */ + public static native TDEInstanceInterface instance(); + /** + Returns the application standard dirs object. + @return the global standard dir object + + @short Returns the application standard dirs object. + */ + public static native KStandardDirs dirs(); + /** + Returns the general config object. + @return the global configuration object. + + @short Returns the general config object. + */ + public static native KConfig config(); + /** + Returns the general config object. + @return the global configuration object. + + @short Returns the general config object. + */ + public static native KSharedConfig sharedConfig(); + /** + Returns an iconloader object. + @return the global iconloader object + + @short Returns an iconloader object. + */ + public static native KIconLoader iconLoader(); + /** + Returns the global locale object. + @return the global locale object + + @short Returns the global locale object. + */ + public static native KLocale locale(); + /** + The global charset manager. + @return the global charset manager + + @short The global charset manager. + */ + public static native KCharsets charsets(); + /** + Creates a static String. + To be used inside functions(!) like: +
    +		 static StringmyString = TDEGlobal.staticString("myText");
    +		 
    + !!! Do _NOT_ use: !!! +
    +		 static String myString = TDEGlobal.staticString("myText");
    +		 
    + This creates a static object (instead of a static reference) + and as you know static objects are EVIL. + @param str the string to create + @return the static string + + @short Creates a static String. + */ + public static native String staticQString(String str); + /** + Registers a static deleter. + @param d the static deleter to register + @short Registers a static deleter. + @see KStaticDeleterBase + @see KStaticDeleter + */ + public static native void registerStaticDeleter(KStaticDeleterBase d); + /** + Unregisters a static deleter. + @param d the static deleter to unregister + @short Unregisters a static deleter. + @see KStaticDeleterBase + @see KStaticDeleter + */ + public static native void unregisterStaticDeleter(KStaticDeleterBase d); + /** + Calls KStaticDeleterBase.destructObject() on all + registered static deleters and unregisters them all. + @short Calls KStaticDeleterBase.destructObject() on all registered static deleters and unregisters them all. + @see KStaticDeleterBase + @see KStaticDeleter + */ + public static native void deleteStaticDeleters(); + /** + The instance currently active (useful in a multi-instance + application, such as a KParts application). + Don't use this - it's mainly for KAboutDialog and KBugReport. + @short The instance currently active (useful in a multi-instance application, such as a KParts application). + */ + public static native void setActiveInstance(TDEInstanceInterface d); + public static native TDEInstanceInterface activeInstance(); + /** 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/TDEGlobalAccel.java b/kdejava/koala/org/kde/koala/TDEGlobalAccel.java new file mode 100644 index 00000000..fabb014b --- /dev/null +++ b/kdejava/koala/org/kde/koala/TDEGlobalAccel.java @@ -0,0 +1,210 @@ +//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.TQObject; +import org.kde.qt.TQObject; + +/** + + TDEGlobalAccel allows you to have global accelerators that are independent of + the focused window. Unlike KAccel it does not matter which window is + currently active. + @short Configurable global shortcut support. + @see KAccel + @see KAccelShortcutList + @see KKeyChooser + @see KKeyDialog + +*/ +public class TDEGlobalAccel extends TQObject { + protected TDEGlobalAccel(Class dummy){super((Class) null);} + public native TQMetaObject metaObject(); + public native String className(); + /** + Creates a new TDEGlobalAccel object with the given pParent and + psName. + @param pParent the parent of the TQObject + @param psName the name of the TQObject + @short Creates a new TDEGlobalAccel object with the given pParent and psName. + */ + public TDEGlobalAccel(TQObject pParent, String psName) { + super((Class) null); + newTDEGlobalAccel(pParent,psName); + } + private native void newTDEGlobalAccel(TQObject pParent, String psName); + public TDEGlobalAccel(TQObject pParent) { + super((Class) null); + newTDEGlobalAccel(pParent); + } + private native void newTDEGlobalAccel(TQObject pParent); + /** + Checks whether the accelerators are enabled. + @return true if the TDEGlobalAccel is enabled + + @short Checks whether the accelerators are enabled. + */ + public native boolean isEnabled(); + /** + Create an accelerator action. + Usage: +
    +		 insert( "Do Something", i18n("Do Something"),
    +		   i18n("This action allows you to do something really great with this program to "
    +		        "the currently open document."),
    +		   ALT+CTRL+Key_Q, KKey.QtWIN+CTRL+Key_Q, this, SLOT("slotDoSomething()") );
    +		
    + @param sAction The internal name of the action. + @param sLabel An i18n'ized short description of the action displayed when + using KKeyChooser to reconfigure the shortcuts. + @param sWhatsThis An extended description of the action. + @param cutDef3 The default 3 modifier scheme shortcut. + @param cutDef4 The default 4 modifier scheme shortcut. + @param pObjSlot Pointer to the slot object. + @param psMethodSlot Pointer to the slot method. + @param bConfigurable Allow the user to change this shortcut if set to 'true'. + @param bEnabled The action will be activated by the shortcut if set to 'true'. + @short Create an accelerator action. + */ + public native KAccelAction insert(String sAction, String sLabel, String sWhatsThis, KShortcut cutDef3, KShortcut cutDef4, TQObject pObjSlot, String psMethodSlot, boolean bConfigurable, boolean bEnabled); + public native KAccelAction insert(String sAction, String sLabel, String sWhatsThis, KShortcut cutDef3, KShortcut cutDef4, TQObject pObjSlot, String psMethodSlot, boolean bConfigurable); + public native KAccelAction insert(String sAction, String sLabel, String sWhatsThis, KShortcut cutDef3, KShortcut cutDef4, TQObject pObjSlot, String psMethodSlot); + /** + Removes the accelerator action identified by the name. + Remember to also call updateConnections(). + @param sAction the name of the action to remove + @short Removes the accelerator action identified by the name. + */ + public native boolean remove(String sAction); + /** + Use this to insert a label into the action list. This will be + displayed when the user configures shortcuts. + @param sName of the of the action to insert + @param sLabel a user-readable (i18n!) name for the action + @return the KAccelAction of the action + + @short Use this to insert a label into the action list. + */ + public native KAccelAction insert(String sName, String sLabel); + /** + Updates the connections of the accelerations after changing them. + @return true if successful, false otherwise + + @short Updates the connections of the accelerations after changing them. + */ + public native boolean updateConnections(); + /** + Return the shortcut associated with the action named by sAction. + @param sAction the name of the action + @return the shortcut. If the action does not exist a null shortcut will be returned. + + @short Return the shortcut associated with the action named by sAction. + */ + public native KShortcut shortcut(String sAction); + /** + Set the shortcut to be associated with the action named by sAction. + @param sAction the name of the action + @param shortcut the shortcut for the action + @return true if successful, false otherwise + + @short Set the shortcut to be associated with the action named by sAction. + */ + public native boolean setShortcut(String sAction, KShortcut shortcut); + /** + Set the slot to be called when the shortcut of the action named + by sAction is pressed. + @param sAction the name of the action + @param pObjSlot the receiver of the signal + @param psMethodSlot the slot to receive the signal + @return true if successful, false otherwise + + @short Set the slot to be called when the shortcut of the action named by sAction is pressed. + */ + public native boolean setSlot(String sAction, TQObject pObjSlot, String psMethodSlot); + /** + Enables or disables action sAction. + @short Enables or disables action sAction. + */ + public native boolean setActionEnabled(String sAction, boolean bEnable); + /** + Return the label (i18n'ized short description) associated with the action named by sAction. + @param sAction the name of the action + @return the label + + @short Return the label (i18n'ized short description) associated with the action named by sAction. + */ + public native String label(String sAction); + /** + Returns the configuration group that is used to save the accelerators. + @return the configuration group + + @short Returns the configuration group that is used to save the accelerators. + @see KConfig + */ + public native String configGroup(); + /** + Sets the configuration group that is used to save the accelerators. + @param cg the configuration group + @short Sets the configuration group that is used to save the accelerators. + @see KConfig + */ + public native void setConfigGroup(String cg); + /** + Read all shortcuts from pConfig, or (if pConfig + is zero) from the application's configuration file + TDEGlobal.config(). + @param pConfig the configuration file to read from, or 0 for the application + configuration file + @return true if successful, false otherwise + + @short Read all shortcuts from pConfig, or (if pConfig is zero) from the application's configuration file TDEGlobal.config(). + */ + public native boolean readSettings(KConfigBase pConfig); + public native boolean readSettings(); + /** + Write the current shortcuts to pConfig, + or (if pConfig is zero) to the application's + configuration file. + @param pConfig the configuration file to read from, or 0 for the application + configuration file + @return true if successful, false otherwise + + @short Write the current shortcuts to pConfig, or (if pConfig is zero) to the application's configuration file. + */ + public native boolean writeSettings(KConfigBase pConfig); + public native boolean writeSettings(); + /** + Write the current shortcuts to pConfig, + or (if pConfig is zero) to the application's + configuration file. Alternatively, if bGlobal is true, then write + to kdeglobals. + @param pConfig the configuration file to read from, or 0 for the application + configuration file + @param bGlobal if true write the configuration to the kde global settings + @return true if successful, false otherwise + + @short Write the current shortcuts to pConfig, or (if pConfig is zero) to the application's configuration file. + */ + public native boolean writeSettings(KConfigBase pConfig, boolean bGlobal); + /** + @short + */ + public native void disableBlocking(boolean disable); + /** + KAccelActions.useFourModifierKeys(). + @short + */ + public static native boolean useFourModifierKeys(); + /** + @short + */ + public static native void blockShortcuts(boolean block); + /** 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/TDEGlobalSettings.java b/kdejava/koala/org/kde/koala/TDEGlobalSettings.java new file mode 100644 index 00000000..d7d48321 --- /dev/null +++ b/kdejava/koala/org/kde/koala/TDEGlobalSettings.java @@ -0,0 +1,481 @@ +//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.QtSupport; +import org.kde.qt.TQPoint; +import org.kde.qt.TQWidget; + +/** + + Access the KDE global configuration. + @author David Faure + + @short Access the KDE global configuration. + +*/ +public class TDEGlobalSettings implements QtSupport { + private long _qt; + private boolean _allocatedInJavaWorld = true; + protected TDEGlobalSettings(Class dummy){} + + /** + This enum describes the return type for insertTearOffHandle() whether to insert + a handle or not. Applications who independently want to use handles in their popup menus + should test for Application level before calling the appropriate function in KPopupMenu. + @short This enum describes the return type for insertTearOffHandle() whether to insert a handle or not. + */ + public static final int Disable = 0; + public static final int ApplicationLevel = 1; + public static final int Enable = 2; + + /** + This enum describes the completion mode used for by the KCompletion class. + See + the styleguide. + @short This enum describes the completion mode used for by the KCompletion class. + */ + public static final int CompletionNone = 1; + public static final int CompletionAuto = 2; + public static final int CompletionMan = 3; + public static final int CompletionShell = 4; + public static final int CompletionPopup = 5; + public static final int CompletionPopupAuto = 6; + + public TDEGlobalSettings() { + newTDEGlobalSettings(); + } + private native void newTDEGlobalSettings(); + /** + Returns a threshold in pixels for drag & drop operations. + As long as the mouse movement has not exceeded this number + of pixels in either X or Y direction no drag operation may + be started. This prevents spurious drags when the user intended + to click on something but moved the mouse a bit while doing so. + For this to work you must save the position of the mouse (oldPos) + in the TQWidget.mousePressEvent(). + When the position of the mouse (newPos) + in a TQWidget.mouseMoveEvent() exceeds this threshold + you may start a drag + which should originate from oldPos. + Example code: +
    +		 void KColorCells.mousePressEvent( TQMouseEvent e )
    +		 {
    +		    mOldPos = e.pos();
    +		 }
    +			 void KColorCells.mouseMoveEvent( TQMouseEvent e )
    +		 {
    +		    if( !(e.state() && LeftButton)) return;
    +			    int delay = TDEGlobalSettings.dndEventDelay();
    +		    TQPoint newPos = e.pos();
    +		    if(newPos.x() > mOldPos.x()+delay || newPos.x() < mOldPos.x()-delay ||
    +		       newPos.y() > mOldPos.y()+delay || newPos.y() < mOldPos.y()-delay)
    +		    {
    +		       // Drag color object
    +		       int cell = posToCell(mOldPos); // Find color at mOldPos
    +		       if ((cell != -1) && colors[cell].isValid())
    +		       {
    +		          KColorDrag d = KColorDrag.makeDrag( colors[cell], this);
    +		          d.dragCopy();
    +		       }
    +		    }
    +		 }
    +		 
    + @return the threshold for drag & drop in pixels + + @short Returns a threshold in pixels for drag & drop operations. + */ + public static native int dndEventDelay(); + /** + Returns whether KDE runs in single (default) or double click + mode. + see http://developer.kde.org/documentation/standards/kde/style/mouse/index.html + @return true if single click mode, or false if double click mode. + + @short Returns whether KDE runs in single (default) or double click mode. + */ + public static native boolean singleClick(); + /** + Returns whether tear-off handles are inserted in KPopupMenus. + @return whether tear-off handles are inserted in KPopupMenus. + + @short Returns whether tear-off handles are inserted in KPopupMenus. + */ + public static native int insertTearOffHandle(); + /** + Checks whether the cursor changes over icons. + @return the KDE setting for "change cursor over icon" + + @short Checks whether the cursor changes over icons. + */ + public static native boolean changeCursorOverIcon(); + /** + Checks whether to show feedback when in item (specifically an + icon) is activated. + @return whether to show some feedback when an item is activated. + + @short Checks whether to show feedback when in item (specifically an icon) is activated. + */ + public static native boolean visualActivate(); + /** + Returns the speed of the visual activation feedback. + @return the speed of the visual activation feedback, between + 0 for minimum and 100 for maximum speed + + @short Returns the speed of the visual activation feedback. + */ + public static native int visualActivateSpeed(); + /** + Returns the KDE setting for the auto-select option. + @return the auto-select delay or -1 if auto-select is disabled. + + @short Returns the KDE setting for the auto-select option. + */ + public static native int autoSelectDelay(); + /** + Returns the KDE setting for the shortcut key to open + context menus. + @return the key that pops up context menus. + + @short Returns the KDE setting for the shortcut key to open context menus. + */ + public static native int contextMenuKey(); + /** + Returns the KDE setting for context menus. + @return whether context menus should be shown on button press + or button release (click). + + @short Returns the KDE setting for context menus. + */ + public static native boolean showContextMenusOnPress(); + /** + Returns the preferred completion mode setting. + @return Completion. Default is CompletionPopup. + + @short Returns the preferred completion mode setting. + */ + public static native int completionMode(); + /** + This returns the current mouse settings. + On Windows, settings are retrieved from the system. + @return the current mouse settings + + @short This returns the current mouse settings. + */ + // TDEGlobalSettings::KMouseSettings& mouseSettings(); >>>> NOT CONVERTED + /** + The path to the desktop directory of the current user. + @return the user's desktop directory + + @short The path to the desktop directory of the current user. + */ + public static native String desktopPath(); + /** + The path to the autostart directory of the current user. + @return the path of the autostart directory + + @short The path to the autostart directory of the current user. + */ + public static native String autostartPath(); + /** + DEPRECATED (starting from kde-3.4). + This isn't where the trash contents is, anymore. + Use KIO.trash() to trash files, "trash:/" to list the trash contents. + @short DEPRECATED (starting from kde-3. + */ + public static native String trashPath(); + /** + The path where documents are stored of the current user. + @return the path of the document directory + + @short The path where documents are stored of the current user. + */ + public static native String documentPath(); + /** + The default color to use when highlighting toolbar buttons. + @return the toolbar highlight color + + @short The default color to use when highlighting toolbar buttons. + */ + public static native TQColor toolBarHighlightColor(); + /** + The default color to use for inactive titles. + @return the inactive title color + + @short The default color to use for inactive titles. + */ + public static native TQColor inactiveTitleColor(); + /** + The default color to use for inactive texts. + @return the inactive text color + + @short The default color to use for inactive texts. + */ + public static native TQColor inactiveTextColor(); + /** + The default color to use for active titles. + @return the active title color + + @short The default color to use for active titles. + */ + public static native TQColor activeTitleColor(); + /** + The default color to use for active texts. + @return the active text color + + @short The default color to use for active texts. + */ + public static native TQColor activeTextColor(); + /** + Returns the contrast for borders. + @return the contrast (between 0 for minimum and 10 for maximum + contrast) + + @short Returns the contrast for borders. + */ + public static native int contrast(); + /** + Returns the button background color + @return the button background color + + @short Returns the button background color + */ + public static native TQColor buttonBackground(); + /** + Returns the button text color + @return the button text color + + @short Returns the button text color + */ + public static native TQColor buttonTextColor(); + /** + Returns the default base (background) color. + @return the default base (background) color + + @short Returns the default base (background) color. + @see org.kde.qt.TQColorGroup#base + */ + public static native TQColor baseColor(); + /** + Returns the default text color. + @return the default text color + + @short Returns the default text color. + @see org.kde.qt.TQColorGroup#text + */ + public static native TQColor textColor(); + /** + Returns the default link color. + @return the default link color + + @short Returns the default link color. + */ + public static native TQColor linkColor(); + /** + Returns the default color for visited links. + @return the default color for visited links + + @short Returns the default color for visited links. + */ + public static native TQColor visitedLinkColor(); + /** + Returns the default color for highlighted text. + @return the default color for highlighted text + + @short Returns the default color for highlighted text. + @see org.kde.qt.TQColorGroup#hightlightedText + */ + public static native TQColor highlightedTextColor(); + /** + Returns the default color for text highlights. + @return the default color for text highlights + + @short Returns the default color for text highlights. + @see org.kde.qt.TQColorGroup#hightlight + */ + public static native TQColor highlightColor(); + /** + Returns the alternate background color used by KListView with + KListViewItem. Any other list that uses alternating background + colors should use this too, to obey to the user's preferences. Returns + an invalid color if the user doesn't want alternating backgrounds. + @return the alternate background color + + @short Returns the alternate background color used by KListView with KListViewItem. + @see #calculateAlternateBackgroundColor + */ + public static native TQColor alternateBackgroundColor(); + /** + Calculates a color based on base to be used as alternating + color for e.g. listviews. + @param base the base for the calculation + @return the calculated color + + @short Calculates a color based on base to be used as alternating color for e. + @see #alternateBackgroundColor + */ + public static native TQColor calculateAlternateBackgroundColor(TQColor base); + /** + Returns if the sorted column in a KListView shall be drawn with a + shaded background color. + @return true if the sorted column shall be shaded + + @short Returns if the sorted column in a KListView shall be drawn with a shaded background color. + */ + public static native boolean shadeSortColumn(); + /** + Returns the default general font. + @return the default general font. + + @short Returns the default general font. + */ + public static native TQFont generalFont(); + /** + Returns the default fixed font. + @return the default fixed font. + + @short Returns the default fixed font. + */ + public static native TQFont fixedFont(); + /** + Returns the default toolbar font. + @return the default toolbar font. + + @short Returns the default toolbar font. + */ + public static native TQFont toolBarFont(); + /** + Returns the default menu font. + @return the default menu font. + + @short Returns the default menu font. + */ + public static native TQFont menuFont(); + /** + Returns the default window title font. + @return the default window title font. + + @short Returns the default window title font. + */ + public static native TQFont windowTitleFont(); + /** + Returns the default taskbar font. + @return the default taskbar font. + + @short Returns the default taskbar font. + */ + public static native TQFont taskbarFont(); + /** + Returns a font of approx. 48 pt. capable of showing text. + @param text the text to test + @return the font that is capable to show the text with 48 pt + + @short Returns a font of approx. + */ + public static native TQFont largeFont(String text); + public static native TQFont largeFont(); + /** + Returns if the user specified multihead. In case the display + has multiple screens, the return value of this function specifies + if the user wants KDE to run on all of them or just on the primary + On Windows, settings are retrieved from the system. + @return true if the user chose multi head + + @short Returns if the user specified multihead. + */ + public static native boolean isMultiHead(); + /** + Typically, TQScrollView derived classes can be scrolled fast by + holding down the Ctrl-button during wheel-scrolling. + But TQTextEdit and derived classes perform zooming instead of fast + scrolling. + This value determines whether the user wants to zoom or scroll fast + with Ctrl-wheelscroll. + @return true if the user wishes to zoom with the mouse wheel, + false for scrolling + + @short Typically, TQScrollView derived classes can be scrolled fast by holding down the Ctrl-button during wheel-scrolling. + */ + public static native boolean wheelMouseZooms(); + /** + This function returns the desktop geometry for an application's splash + screen. It takes into account the user's display settings (number of + screens, Xinerama, etc), and the user's preferences (if KDE should be + Xinerama aware). + @return the geometry to use for the desktop. Note that it might not + start at (0,0). + + @short This function returns the desktop geometry for an application's splash screen. + */ + public static native TQRect splashScreenDesktopGeometry(); + /** + This function returns the desktop geometry for an application that needs + to set the geometry of a widget on the screen manually. It takes into + account the user's display settings (number of screens, Xinerama, etc), + and the user's preferences (if KDE should be Xinerama aware). + Note that this can break in multi-head (not Xinerama) mode because this + point could be on multiple screens. Use with care. + @param point a reference point for the widget, for instance one that the + widget should be adjacent or on top of. + @return the geometry to use for the desktop. Note that it might not + start at (0,0). + + @short This function returns the desktop geometry for an application that needs to set the geometry of a widget on the screen manually. + */ + public static native TQRect desktopGeometry(TQPoint point); + /** + This function returns the desktop geometry for an application that needs + to set the geometry of a widget on the screen manually. It takes into + account the user's display settings (number of screens, Xinerama, etc), + and the user's preferences (if KDE should be Xinerama aware). + @param w the widget in question. This is used to determine which screen + to use in Xinerama or multi-head mode. + @return the geometry to use for the desktop. Note that it might not + start at (0,0). + + @short This function returns the desktop geometry for an application that needs to set the geometry of a widget on the screen manually. + */ + public static native TQRect desktopGeometry(TQWidget w); + /** + This function determines if the user wishes to see icons on the + push buttons. + @return Returns true if user wants to show icons. + + @short This function determines if the user wishes to see icons on the push buttons. + */ + public static native boolean showIconsOnPushButtons(); + /** + This function determines if the user wishes to see previews + for the selected url + @return Returns true if user wants to show previews. + + @short This function determines if the user wishes to see previews for the selected url + */ + public static native boolean showFilePreview(KURL arg1); + /** + Whether the user wishes to use opaque resizing. Primarily + intended for TQSplitter.setOpaqueResize() + @return Returns true if user wants to use opaque resizing. + + @short Whether the user wishes to use opaque resizing. + */ + public static native boolean opaqueResize(); + /** + The layout scheme to use for dialog buttons + @return Returns the number of the scheme to use. + + @short The layout scheme to use for dialog buttons + @see KDialogBase#setButtonStyle + */ + public static native int buttonLayout(); + /** 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/TDEProcess.java b/kdejava/koala/org/kde/koala/TDEProcess.java new file mode 100644 index 00000000..caad1555 --- /dev/null +++ b/kdejava/koala/org/kde/koala/TDEProcess.java @@ -0,0 +1,628 @@ +//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.TQObject; +import org.kde.qt.TQObject; + +/** + + Child process invocation, monitoring and control. +
  • General usage and features:
  • + This class allows a KDE application to start child processes without having + to worry about UNX signal handling issues and zombie process reaping. + Basically, this class distinguishes three different ways of running + child processes: + +
  • + DontCare -- The child process is invoked and both the child + process and the parent process continue concurrently. +
  • + The process is started in an own session (see setsid(2)). + +
  • + NotifyOnExit -- The child process is invoked and both the + child and the parent process run concurrently. +
  • + When the child process exits, the TDEProcess instance + corresponding to it emits the Qt signal processExited(). + Since this signal is not emitted from within a UNX + signal handler, arbitrary function calls can be made. + Be aware: When the TDEProcess object gets destructed, the child + process will be killed if it is still running! + This means in particular, that it usually makes no sense to use + a TDEProcess on the stack with NotifyOnExit. + +
  • + OwnGroup -- like NotifyOnExit, but the child process is started + in an own process group (and an own session, FWIW). The behavior of + kill() changes to killing the whole process group - this makes + this mode useful for implementing primitive job management. It can be + used to work around broken wrapper scripts that don't propagate signals + to the "real" program. However, use this with care, as you disturb the + shell's job management if your program is started from the command line. +
  • + +
  • + Block -- The child process starts and the parent process + is suspended until the child process exits. (Really not recommended + for programs with a GUI.) + In this mode the parent can read the child's output, but can't send it any + input. +
  • + TDEProcess also provides several functions for determining the exit status + and the pid of the child process it represents. + Furthermore it is possible to supply command-line arguments to the process + in a clean fashion (no null-terminated stringlists and such...) + A small usage example: +
    +   TDEProcess proc = new TDEProcess;
    +   proc << "my_executable";
    +   proc << "These" << "are" << "the" << "command" << "line" << "args";
    +   TQApplication.connect(proc, SIGNAL("processExited(TDEProcess )"),
    +                         pointer_to_my_object, SLOT("my_objects_slot(TDEProcess )"));
    +   proc.start();
    + 
    + This will start "my_executable" with the commandline arguments "These"... + When the child process exits, the slot will be invoked. +
  • Communication with the child process:
  • + TDEProcess supports communication with the child process through + stdin/stdout/stderr. + The following functions are provided for getting data from the child + process or sending data to the child's stdin (For more information, + have a look at the documentation of each function): + +
  • + writeStdin() + -- Transmit data to the child process' stdin. When all data was sent, the + signal wroteStdin() is emitted. +
  • + +
  • + When data arrives at stdout or stderr, the signal receivedStdout() + resp. receivedStderr() is emitted. +
  • + +
  • + You can shut down individual communication channels with + closeStdin(), closeStdout(), and closeStderr(), resp. +
  • + See {@link TDEProcessSignals} for signals emitted by TDEProcess + @author Christian Czezatke e9025461@student.tuwien.ac.at + + @short Child process invocation, monitoring and control. + @see KProcIO + +*/ +public class TDEProcess extends TQObject { + protected TDEProcess(Class dummy){super((Class) null);} + /** + More or less intuitive constants for use with setPriority(). + @short More or less intuitive constants for use with setPriority(). + */ + public static final int PrioLowest = 20; + public static final int PrioLow = 10; + public static final int PrioLower = 5; + public static final int PrioNormal = 0; + public static final int PrioHigher = -5; + public static final int PrioHigh = -10; + public static final int PrioHighest = -19; + + /** + Modes in which the communication channel can be opened. + If communication for more than one channel is required, + the values have to be or'ed together, for example to get + communication with stdout as well as with stdin, you would + specify Stdin | Stdout + If NoRead is specified in conjunction with Stdout, + no data is actually read from Stdout but only + the signal receivedStdout(int fd, int &len) is emitted. + @short Modes in which the communication channel can be opened. + */ + public static final int NoCommunication = 0; + public static final int Stdin = 1; + public static final int Stdout = 2; + public static final int Stderr = 4; + public static final int AllOutput = 6; + public static final int All = 7; + public static final int NoRead = 8; + + /** + Run-modes for a child process. + @short Run-modes for a child process. + */ + public static final int DontCare = 0; + public static final int NotifyOnExit = 1; + public static final int Block = 2; + public static final int OwnGroup = 3; + + public native TQMetaObject metaObject(); + public native String className(); + /** + Constructor + @short Constructor + */ + public TDEProcess(TQObject parent, String name) { + super((Class) null); + newTDEProcess(parent,name); + } + private native void newTDEProcess(TQObject parent, String name); + public TDEProcess(TQObject parent) { + super((Class) null); + newTDEProcess(parent); + } + private native void newTDEProcess(TQObject parent); + /** + Constructor + @short Constructor + */ + public TDEProcess() { + super((Class) null); + newTDEProcess(); + } + private native void newTDEProcess(); + /** + Sets the executable and the command line argument list for this process. + For example, doing an "ls -l /usr/local/bin" can be achieved by: +
    +		  TDEProcess p;
    +		  ...
    +		  p << "ls" << "-l" << "/usr/local/bin"
    +		  
    + @param arg the argument to add + @return a reference to this TDEProcess + + @short Sets the executable and the command line argument list for this process. + */ + public native TDEProcess op_write(String arg); + /** + Sets the executable and the command line argument list for this process, + in a single method call, or add a list of arguments. + @param args the arguments to add + @return a reference to this TDEProcess + + @short Sets the executable and the command line argument list for this process, in a single method call, or add a list of arguments. + */ + public native TDEProcess op_write(String[] args); + /** + Clear a command line argument list that has been set by using + operator<<. + @short Clear a command line argument list that has been set by using operator<<. + */ + public native void clearArguments(); + /** + Starts the process. + For a detailed description of the + various run modes and communication semantics, have a look at the + general description of the TDEProcess class. Note that if you use + setUsePty( Stdout | Stderr, \ ), you cannot use Stdout | Stderr + here - instead, use Stdout only to receive the mixed output. + The following problems could cause this function to + return false: + +
  • + The process is already running. +
  • + +
  • + The command line argument list is empty. +
  • + +
  • + The the comm parameter is incompatible with the selected pty usage. +
  • + +
  • + The starting of the process failed (could not fork). +
  • + +
  • + The executable was not found. +
  • + @param runmode The Run-mode for the process. + @param comm Specifies which communication links should be + established to the child process (stdin/stdout/stderr). By default, + no communication takes place and the respective communication + signals will never get emitted. + @return true on success, false on error + (see above for error conditions) + + @short Starts the process. + */ + public native boolean start(int runmode, int comm); + public native boolean start(int runmode); + public native boolean start(); + /** + Stop the process (by sending it a signal). + @param signo The signal to send. The default is SIGTERM. + @return true if the signal was delivered successfully. + + @short Stop the process (by sending it a signal). + */ + public native boolean kill(int signo); + public native boolean kill(); + /** + Checks whether the process is running. + @return true if the process is (still) considered to be running + + @short Checks whether the process is running. + */ + public native boolean isRunning(); + /** Returns the process id of the process. + If it is called after + the process has exited, it returns the process id of the last + child process that was created by this instance of TDEProcess. + Calling it before any child process has been started by this + TDEProcess instance causes pid() to return 0. + @return the pid of the process or 0 if no process has been started yet. + + @short Returns the process id of the process. + */ + public native int pid(); + /** + Suspend processing of data from stdout of the child process. + @short Suspend processing of data from stdout of the child process. + */ + public native void suspend(); + /** + Resume processing of data from stdout of the child process. + @short Resume processing of data from stdout of the child process. + */ + public native void resume(); + /** + Suspend execution of the current thread until the child process dies + or the timeout hits. This function is not recommended for programs + with a GUI. + @param timeout timeout in seconds. -1 means wait indefinitely. + @return true if the process exited, false if the timeout hit. + + @short Suspend execution of the current thread until the child process dies or the timeout hits. + */ + public native boolean waitThread(int timeout); + public native boolean waitThread(); + /** + Checks whether the process exited cleanly. + @return true if the process has already finished and has exited + "voluntarily", ie: it has not been killed by a signal. + + @short Checks whether the process exited cleanly. + */ + public native boolean normalExit(); + /** + Checks whether the process was killed by a signal. + @return true if the process has already finished and has not exited + "voluntarily", ie: it has been killed by a signal. + + @short Checks whether the process was killed by a signal. + */ + public native boolean signalled(); + /** + Checks whether a killed process dumped core. + @return true if signalled() returns true and the process + dumped core. Note that on systems that don't define the + WCOREDUMP macro, the return value is always false. + + @short Checks whether a killed process dumped core. + */ + public native boolean coreDumped(); + /** + Returns the exit status of the process. + @return the exit status of the process. Note that this value + is not valid if normalExit() returns false. + + @short Returns the exit status of the process. + */ + public native int exitStatus(); + /** + Returns the signal the process was killed by. + @return the signal number that caused the process to exit. + Note that this value is not valid if signalled() returns false. + + @short Returns the signal the process was killed by. + */ + public native int exitSignal(); + /** + Transmit data to the child process' stdin. + This function may return false in the following cases: + +
  • + The process is not currently running. + This implies that you cannot use this function in Block mode. +
  • + +
  • + Communication to stdin has not been requested in the start() call. +
  • + +
  • + Transmission of data to the child process by a previous call to + writeStdin() is still in progress. +
  • + Please note that the data is sent to the client asynchronously, + so when this function returns, the data might not have been + processed by the child process. + That means that you must not free buffer or call writeStdin() + again until either a wroteStdin() signal indicates that the + data has been sent or a processExited() signal shows that + the child process is no longer alive. + If all the data has been sent to the client, the signal + wroteStdin() will be emitted. + @param buffer the buffer to write + @param buflen the length of the buffer + @return false if an error has occurred + + @short Transmit data to the child process' stdin. + */ + public native boolean writeStdin(String buffer, int buflen); + /** + Shuts down the Stdin communication link. If no pty is used, this + causes "EOF" to be indicated on the child's stdin file descriptor. + @return false if no Stdin communication link exists (any more). + + @short Shuts down the Stdin communication link. + */ + public native boolean closeStdin(); + /** + Shuts down the Stdout communication link. If no pty is used, any further + attempts by the child to write to its stdout file descriptor will cause + it to receive a SIGPIPE. + @return false if no Stdout communication link exists (any more). + + @short Shuts down the Stdout communication link. + */ + public native boolean closeStdout(); + /** + Shuts down the Stderr communication link. If no pty is used, any further + attempts by the child to write to its stderr file descriptor will cause + it to receive a SIGPIPE. + @return false if no Stderr communication link exists (any more). + + @short Shuts down the Stderr communication link. + */ + public native boolean closeStderr(); + /** + Deletes the optional utmp entry and closes the pty. + Make sure to shut down any communication links that are using the pty + before calling this function. + @return false if the pty is not open (any more). + + @short Deletes the optional utmp entry and closes the pty. + */ + public native boolean closePty(); + /** + @brief Close stdin, stdout, stderr and the pty + This is the same that calling all close functions in a row: + @short @brief Close stdin, stdout, stderr and the pty + @see #closeStdin + @see @see + @see #closeStdout + @see @see + @see #closeStderr + @see @see + @see #closePty + */ + public native void closeAll(); + /** + Lets you see what your arguments are for debugging. + @return the list of arguments + + @short Lets you see what your arguments are for debugging. + */ + // const TQValueList& args(); >>>> NOT CONVERTED + /** + Controls whether the started process should drop any + setuid/setgid privileges or whether it should keep them. + Note that this function is mostly a dummy, as the KDE libraries + currently refuse to run with setuid/setgid privileges. + The default is false: drop privileges + @param keepPrivileges true to keep the privileges + @short Controls whether the started process should drop any setuid/setgid privileges or whether it should keep them. + */ + public native void setRunPrivileged(boolean keepPrivileges); + /** + Returns whether the started process will drop any + setuid/setgid privileges or whether it will keep them. + @return true if the process runs privileged + + @short Returns whether the started process will drop any setuid/setgid privileges or whether it will keep them. + */ + public native boolean runPrivileged(); + /** + Adds the variable name to the process' environment. + This function must be called before starting the process. + @param name the name of the environment variable + @param value the new value for the environment variable + @short Adds the variable name to the process' environment. + */ + public native void setEnvironment(String name, String value); + /** + Changes the current working directory (CWD) of the process + to be started. + This function must be called before starting the process. + @param dir the new directory + @short Changes the current working directory (CWD) of the process to be started. + */ + public native void setWorkingDirectory(String dir); + /** + Specify whether to start the command via a shell or directly. + The default is to start the command directly. + If useShell is true shell will be used as shell, or + if shell is empty, /bin/sh will be used. + When using a shell, the caller should make sure that all filenames etc. + are properly quoted when passed as argument. + @param useShell true if the command should be started via a shell + @param shell the path to the shell that will execute the process, or + 0 to use /bin/sh. Use getenv("SHELL") to use the user's + default shell, but note that doing so is usually a bad idea + for shell compatibility reasons. + @short Specify whether to start the command via a shell or directly. + @see #quote + */ + public native void setUseShell(boolean useShell, String shell); + public native void setUseShell(boolean useShell); + /** + Detaches TDEProcess from child process. All communication is closed. + No exit notification is emitted any more for the child process. + Deleting the TDEProcess will no longer kill the child process. + Note that the current process remains the parent process of the + child process. + @short Detaches TDEProcess from child process. + */ + public native void detach(); + /** + Sets the scheduling priority of the process. + @param prio the new priority in the range -20 (high) to 19 (low). + @return false on error; see setpriority(2) for possible reasons. + + @short Sets the scheduling priority of the process. + */ + public native boolean setPriority(int prio); + /** + This function can be used to quote an argument string such that + the shell processes it properly. This is e. g. necessary for + user-provided file names which may contain spaces or quotes. + It also prevents expansion of wild cards and environment variables. + @param arg the argument to quote + @return the quoted argument + + @short This function can be used to quote an argument string such that the shell processes it properly. + */ + public static native String quote(String arg); + /** + Sets up the environment according to the data passed via + setEnvironment() + @short Sets up the environment according to the data passed via setEnvironment() + */ + protected native void setupEnvironment(); + /** + This function is called from start() right before a fork() takes + place. According to the comm parameter this function has to initialize + the in, out and err data members of TDEProcess. + This function should return 1 if setting the needed communication channels + was successful. + The default implementation is to create UNIX STREAM sockets for the + communication, but you could reimplement this function to establish a + TCP/IP communication for network communication, for example. + @short This function is called from start() right before a fork() takes place. + */ + protected native int setupCommunication(int comm); + /** + Called right after a (successful) fork() on the parent side. This function + will usually do some communications cleanup, like closing in[0], + out[1] and out[1]. + Furthermore, it must also create the TQSocketNotifiers innot, + outnot and errnot and connect their Qt signals to the respective + TDEProcess slots. + For a more detailed explanation, it is best to have a look at the default + implementation in kprocess.cpp. + @short Called right after a (successful) fork() on the parent side. + */ + protected native int commSetupDoneP(); + /** + Called right after a (successful) fork(), but before an exec() on the child + process' side. It usually duplicates the in[0], out[1] and + err[1] file handles to the respective standard I/O handles. + @short Called right after a (successful) fork(), but before an exec() on the child process' side. + */ + protected native int commSetupDoneC(); + /** + Immediately called after a successfully started process in NotifyOnExit + mode has exited. This function normally calls commClose() + and emits the processExited() signal. + @param state the exit code of the process as returned by waitpid() + @short Immediately called after a successfully started process in NotifyOnExit mode has exited. + */ + protected native void processHasExited(int state); + /** + Cleans up the communication links to the child after it has exited. + This function should act upon the values of pid() and runs. + See the kprocess.cpp source for details. + +
  • + If pid() returns zero, the communication links should be closed + only. +
  • + +
  • + if pid() returns non-zero and runs is false, all data + immediately available from the communication links should be processed + before closing them. +
  • + +
  • + if pid() returns non-zero and runs is true, the communication + links should be monitored for data until the file handle returned by + TDEProcessController.theTDEProcessController.notifierFd() becomes ready + for reading - when it triggers, runs should be reset to false, and + the function should be immediately left without closing anything. +
  • + The previous semantics of this function are forward-compatible, but should + be avoided, as they are prone to race conditions and can cause TDEProcess + (and thus the whole program) to lock up under certain circumstances. At the + end the function closes the communication links in any case. Additionally + +
  • + if runs is true, the communication links are monitored for data + until all of them have returned EOF. Note that if any system function is + interrupted (errno == EINTR) the polling loop should be aborted. +
  • + +
  • + if runs is false, all data immediately available from the + communication links is processed. + +
  • @short Cleans up the communication links to the child after it has exited. + */ + protected native void commClose(); + /** + Specify the actual executable that should be started (first argument to execve) + Normally the the first argument is the executable but you can + override that with this function. + @short Specify the actual executable that should be started (first argument to execve) Normally the the first argument is the executable but you can override that with this function. + */ + protected native void setBinaryExecutable(String filename); + /** + Called by slotChildOutput() this function copies data arriving from + the child process' stdout to the respective buffer and emits the signal + receivedStdout(). + @short Called by slotChildOutput() this function copies data arriving from the child process' stdout to the respective buffer and emits the signal receivedStdout(). + */ + protected native int childOutput(int fdno); + /** + Called by slotChildError() this function copies data arriving from + the child process' stderr to the respective buffer and emits the signal + receivedStderr(). + @short Called by slotChildError() this function copies data arriving from the child process' stderr to the respective buffer and emits the signal receivedStderr(). + */ + protected native int childError(int fdno); + /** + This slot gets activated when data from the child's stdout arrives. + It usually calls childOutput(). + @param fdno the file descriptor for the output + @short This slot gets activated when data from the child's stdout arrives. + */ + protected native void slotChildOutput(int fdno); + /** + This slot gets activated when data from the child's stderr arrives. + It usually calls childError(). + @param fdno the file descriptor for the output + @short This slot gets activated when data from the child's stderr arrives. + */ + protected native void slotChildError(int fdno); + /** + Called when another bulk of data can be sent to the child's + stdin. If there is no more data to be sent to stdin currently + available, this function must disable the TQSocketNotifier innot. + @param dummy ignore this argument + @short Called when another bulk of data can be sent to the child's stdin. + */ + protected native void slotSendData(int dummy); + /** 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/TDEProcessController.java b/kdejava/koala/org/kde/koala/TDEProcessController.java new file mode 100644 index 00000000..d6e02651 --- /dev/null +++ b/kdejava/koala/org/kde/koala/TDEProcessController.java @@ -0,0 +1,79 @@ +//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.TQObject; + +/** + + A class for internal use by TDEProcess only. -- Exactly one instance + of this class is created by TDEApplication. + This class takes care of the actual (UNX) signal handling. + @author Christian Czezatke + + @short Used internally by TDEProcess. + +*/ +public class TDEProcessController extends TQObject { + protected TDEProcessController(Class dummy){super((Class) null);} + public native TQMetaObject metaObject(); + public native String className(); + /** + Wait for any process to exit and handle their exit without + starting an event loop. + This function may cause TDEProcess to emit any of its signals. + @param timeout the timeout in seconds. -1 means no timeout. + @return true if a process exited, false + if no process exited within timeout seconds. + + @short Wait for any process to exit and handle their exit without starting an event loop. + */ + public native boolean waitForProcessExit(int timeout); + /** + Call this function to defer processing of the data that became available + on notifierFd(). + @short Call this function to defer processing of the data that became available on notifierFd(). + */ + public native void unscheduleCheck(); + /** + This function must be called at some point after calling + unscheduleCheck(). + @short This function @em must be called at some point after calling unscheduleCheck(). + */ + public native void rescheduleCheck(); + public native int notifierFd(); + /** + @short + */ + public native void addTDEProcess(TDEProcess arg1); + /** + @short + */ + public native void removeTDEProcess(TDEProcess arg1); + /** + @short + */ + public native void addProcess(int pid); + /** + Create an instance if none exists yet. + Called by TDEApplication.TDEApplication() + @short Create an instance if none exists yet. + */ + public static native void ref(); + /** + Destroy the instance if one exists and it is not referenced any more. + Called by TDEApplication.~TDEApplication() + @short Destroy the instance if one exists and it is not referenced any more. + */ + public static native void deref(); + /** + Automatically called upon SIGCHLD. Never call it directly. + If your application (or some library it uses) redirects SIGCHLD, + the new signal handler (and only it) should call the old handler + returned by sigaction(). + @short Automatically called upon SIGCHLD. + */ + public static native void theSigCHLDHandler(int signal); +} diff --git a/kdejava/koala/org/kde/koala/TDEProcessRunner.java b/kdejava/koala/org/kde/koala/TDEProcessRunner.java new file mode 100644 index 00000000..95856d14 --- /dev/null +++ b/kdejava/koala/org/kde/koala/TDEProcessRunner.java @@ -0,0 +1,23 @@ +//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.TQObject; + +/** + + This class watches a process launched by KRun. + It sends a notification when the process exits (for the taskbar) + and it will show an error message if necessary (e.g. "program not found"). + @short + +*/ +public class TDEProcessRunner extends TQObject { + protected TDEProcessRunner(Class dummy){super((Class) null);} + public native TQMetaObject metaObject(); + public native String className(); + public native int pid(); + public static native int run(TDEProcess arg1, String binName); +} diff --git a/kdejava/koala/org/kde/koala/TDEProcessSignals.java b/kdejava/koala/org/kde/koala/TDEProcessSignals.java new file mode 100644 index 00000000..e2d2361c --- /dev/null +++ b/kdejava/koala/org/kde/koala/TDEProcessSignals.java @@ -0,0 +1,72 @@ +//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.TQObject; + +public interface TDEProcessSignals { + /** + Emitted after the process has terminated when + the process was run in the NotifyOnExit (==default option to + start() ) or the Block mode. + @param proc a pointer to the process that has exited + @short Emitted after the process has terminated when the process was run in the NotifyOnExit (==default option to start() ) or the Block mode. + */ + void processExited(TDEProcess proc); + /** + Emitted, when output from the child process has + been received on stdout. + To actually get this signal, the Stdout communication link + has to be turned on in start(). + @param proc a pointer to the process that has received the output + @param buffer The data received. + @param buflen The number of bytes that are available. + You should copy the information contained in buffer to your private + data structures before returning from the slot. + Example: +
    +		     String myBuf = String.fromLatin1(buffer, buflen);
    +		 
    + @short Emitted, when output from the child process has been received on stdout. + */ + void receivedStdout(TDEProcess proc, String buffer, int buflen); + /** + Emitted when output from the child process has + been received on stdout. + To actually get this signal, the Stdout communication link + has to be turned on in start() and the + NoRead flag must have been passed. + You will need to explicitly call resume() after your call to start() + to begin processing data from the child process' stdout. This is + to ensure that this signal is not emitted when no one is connected + to it, otherwise this signal will not be emitted. + The data still has to be read from file descriptor fd. + @param fd the file descriptor that provides the data + @param len the number of bytes that have been read from fd must + be written here + @short Emitted when output from the child process has been received on stdout. + */ + void receivedStdout(int fd, int[] len); + /** + Emitted, when output from the child process has + been received on stderr. + To actually get this signal, the Stderr communication link + has to be turned on in start(). + You should copy the information contained in buffer to your private + data structures before returning from the slot. + @param proc a pointer to the process that has received the data + @param buffer The data received. + @param buflen The number of bytes that are available. + @short Emitted, when output from the child process has been received on stderr. + */ + void receivedStderr(TDEProcess proc, String buffer, int buflen); + /** + Emitted after all the data that has been + specified by a prior call to writeStdin() has actually been + written to the child process. + @param proc a pointer to the process + @short Emitted after all the data that has been specified by a prior call to writeStdin() has actually been written to the child process. + */ + void wroteStdin(TDEProcess proc); +} -- cgit v1.2.1