diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 90825e2392b2d70e43c7a25b8a3752299a933894 (patch) | |
tree | e33aa27f02b74604afbfd0ea4f1cfca8833d882a /kdejava/koala/org/kde/koala/SimpleJob.java | |
download | tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.tar.gz tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdejava/koala/org/kde/koala/SimpleJob.java')
-rw-r--r-- | kdejava/koala/org/kde/koala/SimpleJob.java | 146 |
1 files changed, 146 insertions, 0 deletions
diff --git a/kdejava/koala/org/kde/koala/SimpleJob.java b/kdejava/koala/org/kde/koala/SimpleJob.java new file mode 100644 index 00000000..dee58750 --- /dev/null +++ b/kdejava/koala/org/kde/koala/SimpleJob.java @@ -0,0 +1,146 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.QMetaObject; +import org.kde.qt.QtSupport; + +/** + + A simple job (one url and one command). + This is the base class for all jobs that are scheduled. + Other jobs are high-level jobs (CopyJob, DeleteJob, FileCopyJob...) + that manage subjobs but aren't scheduled directly. + @short A simple job (one url and one command). + +*/ +public class SimpleJob extends Job { + protected SimpleJob(Class dummy){super((Class) null);} + public native QMetaObject metaObject(); + public native String className(); + /** + Creates a new simple job. You don't need to use this constructor, + unless you create a new job that inherits from SimpleJob. + @param url the url of the job + @param command the command of the job + @param packedArgs the arguments + @param showProgressInfo true to show progress information to the user + @short Creates a new simple job. + */ + public SimpleJob(KURL url, int command, byte[] packedArgs, boolean showProgressInfo) { + super((Class) null); + newSimpleJob(url,command,packedArgs,showProgressInfo); + } + private native void newSimpleJob(KURL url, int command, byte[] packedArgs, boolean showProgressInfo); + /** + Returns the SimpleJob's URL + @return the url + + @short Returns the SimpleJob's URL + */ + public native KURL url(); + /** + Abort job. + This kills all subjobs and deletes the job. + @param quietly if true, Job will emit signal result + Should only be set to false when the user kills the job + (from kio_uiserver), not when you want to abort a job. + @short Abort job. + */ + public native void kill(boolean quietly); + public native void kill(); + /** + Abort job. + Suspends slave to be reused by another job for the same request. + @short Abort job. + */ + public native void putOnHold(); + /** + Called by the scheduler when a slave gets to + work on this job. + @short + */ + public native void start(Slave slave); + /** + Called to detach a slave from a job. + @short + */ + public native void slaveDone(); + /** + Slave in use by this job. + @short + */ + public native Slave slave(); + /** + @short + */ + public native int command(); + /** + Forward signal from the slave + Can also be called by the parent job, when it knows the size. + @param data_size the total size + @short Forward signal from the slave Can also be called by the parent job, when it knows the size. + */ + public native void slotTotalSize(long data_size); + /** + Called on a slave's error. + Made public for the scheduler. + @short + */ + public native void slotError(int arg1, String arg2); + /** + Discard suspended slave. + @short Discard suspended slave. + */ + public static native void removeOnHold(); + protected native void storeSSLSessionFromJob(KURL m_redirectionURL); + /** + Called when the slave marks the job + as finished. + @short Called when the slave marks the job as finished. + */ + protected native void slotFinished(); + /** + Called on a slave's warning. + @short + */ + protected native void slotWarning(String arg1); + /** + Called on a slave's info message. + @param s the info message + @short Called on a slave's info message. + @see #infoMessage + */ + protected native void slotInfoMessage(String s); + /** + Called on a slave's connected signal. + @short Called on a slave's connected signal. + @see #connected + */ + protected native void slotConnected(); + /** + Forward signal from the slave. + @param data_size the processed size in bytes + @short Forward signal from the slave. + @see #processedSize + */ + protected native void slotProcessedSize(long data_size); + /** + Forward signal from the slave. + @param speed the speed in bytes/s + @short Forward signal from the slave. + @see #speed + */ + protected native void slotSpeed(long speed); + /** + MetaData from the slave is received. + @param _metaData the meta data + @short MetaData from the slave is received. + @see #metaData + */ + // void slotMetaData(const KIO::MetaData& arg1); >>>> NOT CONVERTED + /** + @short + */ + protected native void slotNeedProgressId(); +} |