You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdebindings/kdejava/koala/org/kde/koala/KDE.java

537 lines
26 KiB

//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;
import org.kde.qt.Qt;
import org.kde.qt.QRect;
import org.kde.qt.QtSupport;
import org.kde.qt.QDataStream;
import org.kde.qt.QRegion;
import org.kde.qt.QPixmap;
import java.util.Calendar;
import org.kde.qt.QPainter;
import org.kde.qt.QBitmap;
import org.kde.qt.QIconSet;
import org.kde.qt.QBrush;
import org.kde.qt.QColorGroup;
/**
Namespace for general KDE functions.
@short Namespace for general KDE functions.
*/
public class KDE {
/**
Returns the encoded number of KDE's version, see the KDE_VERSION macro.
In contrary to that macro this function returns the number of the actully
installed KDE version, not the number of the KDE version that was
installed when the program was compiled.
@return the version number, encoded in a single uint
@short Returns the encoded number of KDE's version, see the KDE_VERSION macro.
*/
public static native int version();
/**
Returns the major number of KDE's version, e.g.
3 for KDE 3.1.2.
@return the major version number
@short Returns the major number of KDE's version, e.
*/
public static native int versionMajor();
/**
Returns the minor number of KDE's version, e.g.
1 for KDE 3.1.2.
@return the minor version number
@short Returns the minor number of KDE's version, e.
*/
public static native int versionMinor();
/**
Returns the release of KDE's version, e.g.
2 for KDE 3.1.2.
@return the release number
@short Returns the release of KDE's version, e.
*/
public static native int versionRelease();
/**
Returns the KDE version as string, e.g. "3.1.2".
@return the KDE version. You can keep the string forever
@short Returns the KDE version as string, e.
*/
public static native String versionString();
// int KSSLPemCallback(char* arg1,int arg2,int arg3,void* arg4); >>>> NOT CONVERTED
/**
{@link KLocale}
i18n is the function that does everything you need to translate
a string. You just wrap around every user visible string a i18n
call to get a String with the string in the user's preferred
language.
The argument must be an UTF-8 encoded string (If you only use
characters that are in US-ASCII, you're on the safe side. But
for e.g. German umlauts or French accents should be recoded to
UTF-8)
@short {@link KLocale} i18n is the function that does everything you need to translate a string.
*/
public static native String i18n(String text);
/**
{@link KLocale}
If the string is too ambiguous to be translated well to a non-english
language, use this form of i18n to separate lookup string and english
text.
@short {@link KLocale} If the string is too ambiguous to be translated well to a non-english language, use this form of i18n to separate lookup string and english text.
@see #translate
*/
public static native String i18n(String comment, String text);
/**
{@link KLocale}
If you want to handle plural forms, use this form of i18n.
@param singular the singular form of the word, for example "file".
@param plural the plural form of the word. Must contain a "%n" that will
be replaced by the number <code>n</code>, for example "%n files"
@param n the number
@return the correct singular or plural for the selected language,
depending on n
@short {@link KLocale} If you want to handle plural forms, use this form of i18n.
@see #translate
*/
public static native String i18n(String singular, String plural, long n);
/**
{@link KLocale}
Qt3's uic generates i18n( "msg", "comment" ) calls which conflict
with our i18n method. We use uic -tr tr2i18n to redirect
to the right i18n() function
@short {@link KLocale} Qt3's uic generates i18n( "msg", "comment" ) calls which conflict with our i18n method.
*/
public static native String tr2i18n(String message, String arg2);
public static native String tr2i18n(String message);
public static native QDataStream op_write(QDataStream s, KFileItem a);
public static native QDataStream op_read(QDataStream s, KFileItem a);
public static native int pageNameToPageSize(String name);
public static native String pageSizeToPageName(int s);
/**
{@link KURL}
Compares URLs. They are parsed, split and compared.
Two malformed URLs with the same string representation
are nevertheless considered to be unequal.
That means no malformed URL equals anything else.
@short {@link KURL} Compares URLs.
*/
public static native boolean urlcmp(String _url1, String _url2);
/**
{@link KURL}
Compares URLs. They are parsed, split and compared.
Two malformed URLs with the same string representation
are nevertheless considered to be unequal.
That means no malformed URL equals anything else.
@param _url1 A reference URL
@param _url2 A URL that will be compared with the reference URL
@param _ignore_trailing Described in KURL.cmp
@param _ignore_ref If true, disables comparison of HTML-style references.
@short {@link KURL} Compares URLs.
*/
public static native boolean urlcmp(String _url1, String _url2, boolean _ignore_trailing, boolean _ignore_ref);
public static native QDataStream op_write(QDataStream s, KURL a);
public static native QDataStream op_read(QDataStream s, KURL a);
/**
Locale-independent qstricmp. Use this for comparing ascii keywords
in a case-insensitive way.
qstricmp fails with e.g. the Turkish locale where 'I'.lower() != 'i'
@short Locale-independent qstricmp.
*/
public static native int kasciistricmp(String str1, String str2);
public static native QDataStream op_write(QDataStream s, KSSLCertificate r);
public static native QDataStream op_read(QDataStream s, KSSLCertificate r);
public static native int op_equals(KSSLCertificate x, KSSLCertificate y);
public static native int op_not_equals(KSSLCertificate x, KSSLCertificate y);
// QDataStream& op_read(QDataStream& arg1,KProtocolInfo::ExtraField& arg2); >>>> NOT CONVERTED
// QDataStream& op_write(QDataStream& arg1,const KProtocolInfo::ExtraField& arg2); >>>> NOT CONVERTED
/**
{@link KGlobal}
Check, if a file may be accessed in a given mode.
This is a wrapper around the access() system call.
checkAccess() calls access() with the given parameters.
If this is OK, checkAccess() returns true. If not, and W_OK
is part of mode, it is checked if there is write access to
the directory. If yes, checkAccess() returns true.
In all other cases checkAccess() returns false.
Other than access() this function EXPLICITLY ignores non-existant
files if checking for write access.
@param pathname The full path of the file you want to test
@param mode The access mode, as in the access() system call.
@return Whether the access is allowed, true = Access allowed
@short {@link KGlobal} Check, if a file may be accessed in a given mode.
*/
public static native boolean checkAccess(String pathname, int mode);
public static native QDataStream op_write(QDataStream s, KSSLCertDlgRet r);
public static native QDataStream op_read(QDataStream s, KSSLCertDlgRet r);
public static native QDataStream op_write(QDataStream str, boolean b);
public static native QDataStream op_read(QDataStream str, boolean b);
public static native QDataStream op_write(QDataStream str, long ll);
// QDataStream& op_read(QDataStream& arg1,long long int& arg2); >>>> NOT CONVERTED
// QDataStream& op_read(QDataStream& arg1,unsigned long long int& arg2); >>>> NOT CONVERTED
/**
Convert an ASN1 UTCTIME value to a string. Uses KLocale settings.
@param tm the OpenSSL ASN1_UTCTIME pointer
@return the date formatted in a String
@short Convert an ASN1 UTCTIME value to a string.
@see ASN1_UTCTIME_QDateTime
*/
// QString ASN1_UTCTIME_QString(ASN1_UTCTIME* arg1); >>>> NOT CONVERTED
/**
Convert an ASN1 UTCTIME value to a Calendar. Uses KLocale settings.
@param tm the OpenSSL ASN1_UTCTIME pointer
@param isGmt set to 1 if the date is set to GMT
@return the date formatted in a QDateTime
@short Convert an ASN1 UTCTIME value to a QDateTime.
*/
// QDateTime ASN1_UTCTIME_QDateTime(ASN1_UTCTIME* arg1,int* arg2); >>>> NOT CONVERTED
/**
Convert an ASN1 INTEGER value to a string.
@param aint the OpenSSL ASN1_INTEGER pointer
@return the number formatted in a String
@short Convert an ASN1 INTEGER value to a string.
*/
// QString ASN1_INTEGER_QString(ASN1_INTEGER* arg1); >>>> NOT CONVERTED
/**
{@link KIconLoader}
Load a desktop icon.
@short {@link KIconLoader} Load a desktop icon.
*/
public static native QPixmap DesktopIcon(String name, int size, int state, KInstanceInterface instance);
public static native QPixmap DesktopIcon(String name, int size, int state);
public static native QPixmap DesktopIcon(String name, int size);
public static native QPixmap DesktopIcon(String name);
/**
{@link KIconLoader}
Load a desktop icon.
@short {@link KIconLoader} Load a desktop icon.
*/
public static native QPixmap DesktopIcon(String name, KInstanceInterface instance);
/**
{@link KIconLoader}
Load a desktop icon, and apply the necessary effects to get an IconSet.
@short {@link KIconLoader} Load a desktop icon, and apply the necessary effects to get an IconSet.
*/
public static native QIconSet DesktopIconSet(String name, int size, KInstanceInterface instance);
public static native QIconSet DesktopIconSet(String name, int size);
public static native QIconSet DesktopIconSet(String name);
/**
{@link KIconLoader}
Load a toolbar icon.
@short {@link KIconLoader} Load a toolbar icon.
*/
public static native QPixmap BarIcon(String name, int size, int state, KInstanceInterface instance);
public static native QPixmap BarIcon(String name, int size, int state);
public static native QPixmap BarIcon(String name, int size);
public static native QPixmap BarIcon(String name);
/**
{@link KIconLoader}
Load a toolbar icon.
@short {@link KIconLoader} Load a toolbar icon.
*/
public static native QPixmap BarIcon(String name, KInstanceInterface instance);
/**
{@link KIconLoader}
Load a toolbar icon, and apply the necessary effects to get an IconSet.
@short {@link KIconLoader} Load a toolbar icon, and apply the necessary effects to get an IconSet.
*/
public static native QIconSet BarIconSet(String name, int size, KInstanceInterface instance);
public static native QIconSet BarIconSet(String name, int size);
public static native QIconSet BarIconSet(String name);
/**
{@link KIconLoader}
Load a small icon.
@short {@link KIconLoader} Load a small icon.
*/
public static native QPixmap SmallIcon(String name, int size, int state, KInstanceInterface instance);
public static native QPixmap SmallIcon(String name, int size, int state);
public static native QPixmap SmallIcon(String name, int size);
public static native QPixmap SmallIcon(String name);
/**
{@link KIconLoader}
Load a small icon.
@short {@link KIconLoader} Load a small icon.
*/
public static native QPixmap SmallIcon(String name, KInstanceInterface instance);
/**
{@link KIconLoader}
Load a small icon, and apply the necessary effects to get an IconSet.
@short {@link KIconLoader} Load a small icon, and apply the necessary effects to get an IconSet.
*/
public static native QIconSet SmallIconSet(String name, int size, KInstanceInterface instance);
public static native QIconSet SmallIconSet(String name, int size);
public static native QIconSet SmallIconSet(String name);
/**
{@link KIconLoader}
Load a main toolbar icon.
@short {@link KIconLoader} Load a main toolbar icon.
*/
public static native QPixmap MainBarIcon(String name, int size, int state, KInstanceInterface instance);
public static native QPixmap MainBarIcon(String name, int size, int state);
public static native QPixmap MainBarIcon(String name, int size);
public static native QPixmap MainBarIcon(String name);
/**
{@link KIconLoader}
Load a main toolbar icon.
@short {@link KIconLoader} Load a main toolbar icon.
*/
public static native QPixmap MainBarIcon(String name, KInstanceInterface instance);
/**
{@link KIconLoader}
Load a main toolbar icon, and apply the effects to get an IconSet.
@short {@link KIconLoader} Load a main toolbar icon, and apply the effects to get an IconSet.
*/
public static native QIconSet MainBarIconSet(String name, int size, KInstanceInterface instance);
public static native QIconSet MainBarIconSet(String name, int size);
public static native QIconSet MainBarIconSet(String name);
/**
{@link KIconLoader}
Load a user icon. User icons are searched in $appdir/pics.
@short {@link KIconLoader} Load a user icon.
*/
public static native QPixmap UserIcon(String name, int state, KInstanceInterface instance);
public static native QPixmap UserIcon(String name, int state);
public static native QPixmap UserIcon(String name);
/**
{@link KIconLoader}
Load a user icon. User icons are searched in $appdir/pics.
@short {@link KIconLoader} Load a user icon.
*/
public static native QPixmap UserIcon(String name, KInstanceInterface instance);
/**
{@link KIconLoader}
Load a user icon, and apply the effects to get an IconSet.
@short {@link KIconLoader} Load a user icon, and apply the effects to get an IconSet.
*/
public static native QIconSet UserIconSet(String name, KInstanceInterface instance);
public static native QIconSet UserIconSet(String name);
/**
{@link KIconLoader}
Returns the current icon size for a specific group.
@short {@link KIconLoader} Returns the current icon size for a specific group.
*/
public static native int IconSize(int group, KInstanceInterface instance);
public static native int IconSize(int group);
/**
\addtogroup locates Locate Functions
@{
On The Usage Of 'locate' and 'locateLocal'
Typical KDE applications use resource files in one out of
three ways:
1) A resource file is read but is never written. A system
default is supplied but the user can override this
default in his local .kde directory:
<pre>
// Code example
myFile = locate("appdata", "groups.lst");
myData = myReadGroups(myFile); // myFile may be null
</pre>
2) A resource file is read and written. If the user has no
local version of the file the system default is used.
The resource file is always written to the users local
.kde directory.
<pre>
// Code example
myFile = locate("appdata", "groups.lst")
myData = myReadGroups(myFile);
...
doSomething(myData);
...
myFile = locateLocal("appdata", "groups.lst");
myWriteGroups(myFile, myData);
</pre>
3) A resource file is read and written. No system default
is used if the user has no local version of the file.
The resource file is always written to the users local
.kde directory.
<pre>
// Code example
myFile = locateLocal("appdata", "groups.lst");
myData = myReadGroups(myFile);
...
doSomething(myData);
...
myFile = locateLocal("appdata", "groups.lst");
myWriteGroups(myFile, myData);
</pre>
@short \addtogroup locates Locate Functions @{ On The Usage Of 'locate' and 'locateLocal'
*/
public static native String locate(String type, String filename, KInstanceInterface instance);
public static native String locate(String type, String filename);
public static native String locateLocal(String type, String filename, KInstanceInterface instance);
public static native String locateLocal(String type, String filename);
public static native String locateLocal(String type, String filename, boolean createDir, KInstanceInterface instance);
public static native String locateLocal(String type, String filename, boolean createDir);
public static native int op_incr(int group);
public static native int op_incr(int group, int arg2);
public static native QDataStream op_write(QDataStream s, int p);
public static native QDataStream op_read(QDataStream s, int p);
/**
{@link KStyle}
<code>#include</code> <code>&lt;kdrawutil.h&gt;</code>
Draws a Next-style button (solid black shadow with light and midlight highlight).
@param p The painter to use for drawing the button.
@param r Specifies the rect in which to draw the button.
@param g Specifies the shading colors.
@param sunken Whether to draw the button as sunken (pressed) or not.
@param fill The brush to use for filling the interior of the button.
Pass <b>null</b> to prevent the button from being filled.
@short {@link KStyle} @c \#include @c <kdrawutil.
*/
public static native void kDrawNextButton(QPainter p, QRect r, QColorGroup g, boolean sunken, QBrush fill);
public static native void kDrawNextButton(QPainter p, QRect r, QColorGroup g, boolean sunken);
public static native void kDrawNextButton(QPainter p, QRect r, QColorGroup g);
/**
{@link KStyle}
@overload
@short {@link KStyle} @overload
*/
public static native void kDrawNextButton(QPainter p, int x, int y, int w, int h, QColorGroup g, boolean sunken, QBrush fill);
public static native void kDrawNextButton(QPainter p, int x, int y, int w, int h, QColorGroup g, boolean sunken);
public static native void kDrawNextButton(QPainter p, int x, int y, int w, int h, QColorGroup g);
/**
{@link KStyle}
<code>#include</code> <code>&lt;kdrawutil.h&gt;</code>
Draws a Be-style button.
@param p The painter to use for drawing the button.
@param r Specifies the rect in which to draw the button.
@param g Specifies the shading colors.
@param sunken Whether to draw the button as sunken (pressed) or not.
@param fill The brush to use for filling the interior of the button.
Pass <b>null</b> to prevent the button from being filled.
@short {@link KStyle} @c \#include @c <kdrawutil.
*/
public static native void kDrawBeButton(QPainter p, QRect r, QColorGroup g, boolean sunken, QBrush fill);
public static native void kDrawBeButton(QPainter p, QRect r, QColorGroup g, boolean sunken);
public static native void kDrawBeButton(QPainter p, QRect r, QColorGroup g);
/**
{@link KStyle}
<code>#include</code> <code>&lt;kdrawutil.h&gt;</code>
@overload
@short {@link KStyle} @c \#include @c <kdrawutil.
*/
public static native void kDrawBeButton(QPainter p, int x, int y, int w, int h, QColorGroup g, boolean sunken, QBrush fill);
public static native void kDrawBeButton(QPainter p, int x, int y, int w, int h, QColorGroup g, boolean sunken);
public static native void kDrawBeButton(QPainter p, int x, int y, int w, int h, QColorGroup g);
/**
{@link KStyle}
<code>#include</code> <code>&lt;kdrawutil.h&gt;</code>
Draws a rounded oval button. This function doesn't fill the button.
See kRoundMaskRegion() for setting masks for fills.
@param p The painter to use for drawing the button.
@param r Specifies the rect in which to draw the button.
@param g Specifies the shading colors.
@param sunken Whether to draw the button as sunken (pressed) or not.
@short {@link KStyle} @c \#include @c <kdrawutil.
*/
public static native void kDrawRoundButton(QPainter p, QRect r, QColorGroup g, boolean sunken);
public static native void kDrawRoundButton(QPainter p, QRect r, QColorGroup g);
/**
{@link KStyle}
@overload
@short {@link KStyle} @overload
*/
public static native void kDrawRoundButton(QPainter p, int x, int y, int w, int h, QColorGroup g, boolean sunken);
public static native void kDrawRoundButton(QPainter p, int x, int y, int w, int h, QColorGroup g);
/**
{@link KStyle}
<code>#include</code> <code>&lt;kdrawutil.h&gt;</code>
Sets a region to the pixels covered by a round button of the given
size. You can use this to set clipping regions.
@param r Reference to the region to set.
@param x The X coordinate of the button.
@param y The Y coordinate of the button.
@param w The width of the button.
@param h The height of the button.
@short {@link KStyle} @c \#include @c <kdrawutil.
@see #kDrawRoundButton
@see #kDrawRoundMask
*/
public static native void kRoundMaskRegion(QRegion r, int x, int y, int w, int h);
/**
{@link KStyle}
<code>#include</code> <code>&lt;kdrawutil.h&gt;</code>
Paints the pixels covered by a round button of the given size with
Qt.color1. This function is useful in QStyle.drawControlMask().
@param p The painter to use for drawing the button.
@param x The X coordinate of the button.
@param y The Y coordinate of the button.
@param w The width of the button.
@param h The height of the button.
@param clear Whether to clear the rectangle specified by <code></code>(x, y, w, h) to
Qt.color0 before drawing the mask.
@short {@link KStyle} @c \#include @c <kdrawutil.
*/
public static native void kDrawRoundMask(QPainter p, int x, int y, int w, int h, boolean clear);
public static native void kDrawRoundMask(QPainter p, int x, int y, int w, int h);
/**
{@link KStyle}
<code>#include</code> <code>&lt;kdrawutil.h&gt;</code>
Paints the provided bitmaps in the painter, using the supplied colorgroup for
the foreground colors. There's one bitmap for each color. If you want to skip
a color, pass <b>null</b> for the corresponding bitmap.
@note The bitmaps will be self-masked automatically if not masked
prior to calling this routine.
@param p The painter to use for drawing the bitmaps.
@param g Specifies the shading colors.
@param x The X coordinate at which to draw the bitmaps.
@param y The Y coordinate at which to draw the bitmaps.
@param lightColor The bitmap to use for the light part.
@param midColor The bitmap to use for the mid part.
@param midlightColor The bitmap to use for the midlight part.
@param darkColor The bitmap to use for the dark part.
@param blackColor The bitmap to use for the black part.
@param whiteColor The bitmap to use for the white part.
@short {@link KStyle} @c \#include @c <kdrawutil.
@see org.kde.qt.QColorGroup
*/
public static native void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, QBitmap lightColor, QBitmap midColor, QBitmap midlightColor, QBitmap darkColor, QBitmap blackColor, QBitmap whiteColor);
public static native void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, QBitmap lightColor, QBitmap midColor, QBitmap midlightColor, QBitmap darkColor, QBitmap blackColor);
public static native void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, QBitmap lightColor, QBitmap midColor, QBitmap midlightColor, QBitmap darkColor);
public static native void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, QBitmap lightColor, QBitmap midColor, QBitmap midlightColor);
public static native void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, QBitmap lightColor, QBitmap midColor);
public static native void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, QBitmap lightColor);
public static native void kColorBitmaps(QPainter p, QColorGroup g, int x, int y);
/**
{@link KStyle}
<code>#include</code> <code>&lt;kdrawutil.h&gt;</code>
@overload
@short {@link KStyle} @c \#include @c <kdrawutil.
*/
public static native void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, int w, int h, boolean isXBitmaps, char[] lightColor, char[] midColor, char[] midlightColor, char[] darkColor, char[] blackColor, char[] whiteColor);
public static native void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, int w, int h, boolean isXBitmaps, char[] lightColor, char[] midColor, char[] midlightColor, char[] darkColor, char[] blackColor);
public static native void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, int w, int h, boolean isXBitmaps, char[] lightColor, char[] midColor, char[] midlightColor, char[] darkColor);
public static native void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, int w, int h, boolean isXBitmaps, char[] lightColor, char[] midColor, char[] midlightColor);
public static native void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, int w, int h, boolean isXBitmaps, char[] lightColor, char[] midColor);
public static native void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, int w, int h, boolean isXBitmaps, char[] lightColor);
public static native void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, int w, int h, boolean isXBitmaps);
public static native void kColorBitmaps(QPainter p, QColorGroup g, int x, int y, int w, int h);
/**
compares two KEntryKeys (needed for QMap).
@short compares two KEntryKeys (needed for QMap).
*/
public static native boolean op_lt(KEntryKey k1, KEntryKey k2);
// const char* dcopTypeName(const DCOPArg& arg1); >>>> NOT CONVERTED
// QDataStream& op_write(QDataStream& arg1,const DCOPArg& arg2); >>>> NOT CONVERTED
// QDataStream& op_write(QDataStream& arg1,const DCOPRef& arg2); >>>> NOT CONVERTED
// QDataStream& op_read(QDataStream& arg1,DCOPRef& arg2); >>>> NOT CONVERTED
public static native QDataStream op_write(QDataStream s, KFileMetaInfoItem arg2);
public static native QDataStream op_read(QDataStream s, KFileMetaInfoItem arg2);
public static native QDataStream op_write(QDataStream s, KFileMetaInfoGroup arg2);
public static native QDataStream op_read(QDataStream s, KFileMetaInfoGroup arg2);
public static native QDataStream op_write(QDataStream s, KFileMetaInfo arg2);
public static native QDataStream op_read(QDataStream s, KFileMetaInfo arg2);
// QDataStream& op_read(QDataStream& arg1,KIO::UDSAtom& arg2); >>>> NOT CONVERTED
// QDataStream& op_write(QDataStream& arg1,const KIO::UDSAtom& arg2); >>>> NOT CONVERTED
// QDataStream& op_write(QDataStream& arg1,const KIO::UDSEntry& arg2); >>>> NOT CONVERTED
// QDataStream& op_read(QDataStream& arg1,KIO::UDSEntry& arg2); >>>> NOT CONVERTED
}