diff options
Diffstat (limited to 'python/pykde/sip/kio')
96 files changed, 0 insertions, 10166 deletions
diff --git a/python/pykde/sip/kio/authinfo.sip b/python/pykde/sip/kio/authinfo.sip deleted file mode 100644 index 454e1ff8..00000000 --- a/python/pykde/sip/kio/authinfo.sip +++ /dev/null @@ -1,206 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -namespace KIO -{ - -class AuthInfo -{ -%TypeHeaderCode -#include <authinfo.h> -%End - - -public: - AuthInfo (); - AuthInfo (const KIO::AuthInfo&); - bool isModified () const; - void setModified (bool); - KURL url; - QString username; - QString password; - QString prompt; - QString caption; - QString comment; - QString commentLabel; - QString realmValue; - QString digestInfo; - bool verifyPath; - bool readOnly; - bool keepPassword; - -protected: - -}; // class AuthInfo - - -%If ( KDE_3_1_4 - ) -//igx QDataStream& operator << (QDataStream&, const KIO::AuthInfo&); -//igx QDataStream& operator >> (QDataStream&, KIO::AuthInfo&); -%End - - -class NetRC -{ -%TypeHeaderCode -#include <authinfo.h> -%End - - -public: - - enum LookUpMode - { - exactOnly, - defaultOnly, - presetOnly - }; - - - class AutoLogin - { - - public: - QString type; - QString machine; - QString login; - QString password; - KStringListMap macdef; - - }; // class AutoLogin - - -public: - static KIO::NetRC* self (); - bool lookup (const KURL&, KIO::NetRC::AutoLogin&, bool = 0, QString = QString ::null , int = 6); - void reload (); - -protected: -//ig QString extract (const char*, const char*, int&); - int openf (const QString&); - -%If ( KDE_3_2_0 - ) - bool parse (int); -%End - - -private: - NetRC (); - ~NetRC (); - -protected: - -%If ( - KDE_3_2_0 ) - void parse (int); -%End - - -}; // class NetRC - -}; // namespace KIO - - - -%MappedType KStringListMap -{ -//converts a Python dict of QString:QStringList -%TypeHeaderCode -#include <sipqtQString.h> -#include <sipqtQStringList.h> -#include <qmap.h> -typedef QMap<QString, QStringList> KStringListMap; -%End - -%ConvertFromTypeCode - // Convert to a Python dict. - - if (!sipCpp) - return PyDict_New(); - - PyObject *dict; - - // Create the dictionary. - - if ((dict = PyDict_New()) == NULL) - return NULL; - - // Get it. - - const QMap<QString, QStringList> map = *sipCpp; - QMap<QString, QStringList>::ConstIterator it; - - for (it = map.begin (); it != map.end (); ++it) - { - PyObject *sKey = PyString_FromString ((const char *)((QString)it.key ())); - PyObject *sData = sipConvertFromInstance ((void *)&it.data (), sipClass_QStringList, sipTransferObj); - - if ((sKey == NULL) || (sData == NULL) || (PyDict_SetItem (dict, sKey, sData) < 0)) - { - Py_XDECREF (sKey); - Py_XDECREF (sData); - Py_DECREF (dict); - return NULL; - } - } - - return dict; -%End - - -%ConvertToTypeCode - if (sipIsErr == NULL) - return PyDict_Check(sipPy); - - QMap<QString, QStringList> *map = new QMap<QString, QStringList>; - - PyObject *key, *value; - int pos = 0; - QString *sKey; - QStringList *sData; - - while (PyDict_Next(sipPy, &pos, &key, &value)) - { - int iserr = 0; - - sKey = (QString *)sipForceConvertTo_QString (key, &iserr); - sData = (QStringList *)sipForceConvertTo_QStringList (value, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete map; - return 0; - } - - map->insert (*sKey, *sData); - } - - *sipCppPtr = map; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kio/chmodjob.sip b/python/pykde/sip/kio/chmodjob.sip deleted file mode 100644 index 51b29397..00000000 --- a/python/pykde/sip/kio/chmodjob.sip +++ /dev/null @@ -1,64 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -namespace KIO -{ - -class ChmodJob : KIO::Job -{ -%TypeHeaderCode -#include <jobclasses.h> -namespace KIO -{ -class ChmodInfo -{ -public: - KURL url; - int permissions; -}; -}; -#include <chmodjob.h> -%End - - -public: - ChmodJob (const KFileItemList&, int, int, int, int, bool, bool); - -protected: - void chmodNextFile (); - -protected slots: - virtual void slotResult (KIO::Job*); - void slotEntries (KIO::Job*, const KIO::UDSEntryList&); - void processList (); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class ChmodJob - -KIO::ChmodJob* chmod (const KFileItemList&, int, int, QString, QString, bool, bool = 1); -}; // namespace KIO - diff --git a/python/pykde/sip/kio/connection.sip b/python/pykde/sip/kio/connection.sip deleted file mode 100644 index 67e535fb..00000000 --- a/python/pykde/sip/kio/connection.sip +++ /dev/null @@ -1,72 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -namespace KIO -{ - -class Task -{ -%TypeHeaderCode -#include <connection.h> -%End - - -public: - int cmd; - QByteArray data; - -}; // class Task - - -class Connection : QObject -{ -%TypeHeaderCode -#include <connection.h> -%End - - -public: - Connection (); - void init (KSocket*); - void init (int, int); - void connect (QObject* = 0, const char* = 0); - void close (); - int fd_from () const; - int fd_to () const; - bool inited () const; - void send (int, const QByteArray& = QByteArray ()); - bool sendnow (int, const QByteArray&); -//ig int read (int*, QByteArray&); - void suspend (); - void resume (); - bool suspended () const; - -protected slots: - void dequeue (); - -}; // class Connection - -}; // namespace KIO - diff --git a/python/pykde/sip/kio/davjob.sip b/python/pykde/sip/kio/davjob.sip deleted file mode 100644 index ff140b0a..00000000 --- a/python/pykde/sip/kio/davjob.sip +++ /dev/null @@ -1,56 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_1_0 - ) -namespace KIO -{ - -class DavJob : KIO::TransferJob -{ -%TypeHeaderCode -#include <davjob.h> -%End - - -public: - DavJob (const KURL&, int, const QString&, bool); - QDomDocument& response (); - -protected slots: - virtual void slotFinished (); - virtual void slotData (const QByteArray&); - -protected: - -}; // class DavJob - -KIO::DavJob* davPropFind (const KURL&, const QDomDocument&, QString, bool = 1); -KIO::DavJob* davPropPatch (const KURL&, const QDomDocument&, bool = 1); -KIO::DavJob* davSearch (const KURL&, const QString&, const QString&, const QString&, bool = 1); -}; // namespace KIO - -%End - diff --git a/python/pykde/sip/kio/defaultprogress.sip b/python/pykde/sip/kio/defaultprogress.sip deleted file mode 100644 index 36460866..00000000 --- a/python/pykde/sip/kio/defaultprogress.sip +++ /dev/null @@ -1,103 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -namespace KIO -{ - -class DefaultProgress : KIO::ProgressBase -{ -%TypeHeaderCode -#include <defaultprogress.h> -%End - - -public: - DefaultProgress (bool = 1); - -%If ( KDE_3_1_0 - ) - DefaultProgress (QWidget* /TransferThis/, const char* = 0); - -%If ( KDE_3_2_1 - ) - bool keepOpen () const; - -%If ( KDE_3_4_0 - ) - static QString makePercentString (ulong, KIO::filesize_t, ulong); -%End - -%End - -%End - - -public slots: - virtual void slotTotalSize (KIO::Job*, KIO::filesize_t); - virtual void slotTotalFiles (KIO::Job*, ulong); - virtual void slotTotalDirs (KIO::Job*, ulong); - virtual void slotProcessedSize (KIO::Job*, KIO::filesize_t); - virtual void slotProcessedFiles (KIO::Job*, ulong); - virtual void slotProcessedDirs (KIO::Job*, ulong); - virtual void slotSpeed (KIO::Job*, ulong); - virtual void slotPercent (KIO::Job*, ulong); - virtual void slotInfoMessage (KIO::Job*, const QString&); - virtual void slotCopying (KIO::Job*, const KURL&, const KURL&); - virtual void slotMoving (KIO::Job*, const KURL&, const KURL&); - virtual void slotDeleting (KIO::Job*, const KURL&); - -%If ( KDE_3_1_0 - ) - void slotTransferring (KIO::Job*, const KURL&); -%End - - virtual void slotCreatingDir (KIO::Job*, const KURL&); - virtual void slotStating (KIO::Job*, const KURL&); - virtual void slotMounting (KIO::Job*, const QString&, const QString&); - virtual void slotUnmounting (KIO::Job*, const QString&); - virtual void slotCanResume (KIO::Job*, KIO::filesize_t); - -%If ( KDE_3_1_0 - ) - void slotClean (); -%End - - -protected: - -%If ( KDE_3_1_0 - ) - void init (); -%End - - void showTotals (); - void setDestVisible (bool); - -%If ( KDE_3_1_0 - ) - void checkDestination (const KURL&); -%End - - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class DefaultProgress - -}; // namespace KIO - diff --git a/python/pykde/sip/kio/forwardingslavebase.sip b/python/pykde/sip/kio/forwardingslavebase.sip deleted file mode 100644 index 23f39036..00000000 --- a/python/pykde/sip/kio/forwardingslavebase.sip +++ /dev/null @@ -1,63 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_4_0 - ) -namespace KIO -{ - -class ForwardingSlaveBase : QObject, KIO::SlaveBase -{ -%TypeHeaderCode -#include <forwardingslavebase.h> -%End - - -public: - ForwardingSlaveBase (const QCString&, const QCString&, const QCString&); - virtual void get (const KURL&); - virtual void put (const KURL&, int, bool, bool); - virtual void stat (const KURL&); - virtual void mimetype (const KURL&); - virtual void listDir (const KURL&); - virtual void mkdir (const KURL&, int); - virtual void rename (const KURL&, const KURL&, bool); - virtual void symlink (const QString&, const KURL&, bool); - virtual void chmod (const KURL&, int); - virtual void copy (const KURL&, const KURL&, int, bool); - virtual void del (const KURL&, bool); - -protected: - virtual bool rewriteURL (const KURL&, KURL&) = 0; - virtual void prepareUDSEntry (KIO::UDSEntry&, bool = 0) const; - KURL processedURL () const; - KURL requestedURL () const; - -}; // class ForwardingSlaveBase - -}; // namespace KIO - -%End - diff --git a/python/pykde/sip/kio/global.sip b/python/pykde/sip/kio/global.sip deleted file mode 100644 index 10933eee..00000000 --- a/python/pykde/sip/kio/global.sip +++ /dev/null @@ -1,732 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -%ModuleHeaderCode -#include <sipkioKIOUDSEntry.h> -#include <sipkioKIOUDSEntryList.h> -#include <sipkdecoreulonglong.h> -%End - -namespace KIO -{ -typedef longlong fileoffset_t; -typedef ulonglong filesize_t; -QString convertSize (KIO::filesize_t); - -%If ( KDE_3_5_0 - ) -QString convertSizeWithBytes (KIO::filesize_t); -%End - -QString number (KIO::filesize_t); -QString convertSizeFromKB (KIO::filesize_t); - -%If ( KDE_3_4_0 - ) -uint calculateRemainingSeconds (KIO::filesize_t, KIO::filesize_t, KIO::filesize_t); -QString convertSeconds (uint); -%End - -QTime calculateRemaining (KIO::filesize_t, KIO::filesize_t, KIO::filesize_t); -QString itemsSummaryString (uint, uint, uint, KIO::filesize_t, bool); -QString encodeFileName (const QString&); -QString decodeFileName (const QString&); - -%If ( KDE_3_2_0 - ) - -enum Command -{ - CMD_HOST, - CMD_CONNECT, - CMD_DISCONNECT, - CMD_SLAVE_STATUS, - CMD_SLAVE_CONNECT, - CMD_SLAVE_HOLD, - CMD_NONE, - CMD_TESTDIR, - CMD_GET, - CMD_PUT, - CMD_STAT, - CMD_MIMETYPE, - CMD_LISTDIR, - CMD_MKDIR, - CMD_RENAME, - CMD_COPY, - CMD_DEL, - CMD_CHMOD, - CMD_SPECIAL, - CMD_USERPASS, - CMD_REPARSECONFIGURATION, - CMD_META_DATA, - CMD_SYMLINK, - CMD_SUBURL, - CMD_MESSAGEBOXANSWER, - CMD_RESUMEANSWER, - CMD_CONFIG, - CMD_MULTI_GET -}; - -%End - - -%If ( KDE_3_1_0 - ) - -enum Error -{ - ERR_CANNOT_OPEN_FOR_READING, - ERR_CANNOT_OPEN_FOR_WRITING, - ERR_CANNOT_LAUNCH_PROCESS, - ERR_INTERNAL, - ERR_MALFORMED_URL, - ERR_UNSUPPORTED_PROTOCOL, - ERR_NO_SOURCE_PROTOCOL, - ERR_UNSUPPORTED_ACTION, - ERR_IS_DIRECTORY, - ERR_IS_FILE, - ERR_DOES_NOT_EXIST, - ERR_FILE_ALREADY_EXIST, - ERR_DIR_ALREADY_EXIST, - ERR_UNKNOWN_HOST, - ERR_ACCESS_DENIED, - ERR_WRITE_ACCESS_DENIED, - ERR_CANNOT_ENTER_DIRECTORY, - ERR_PROTOCOL_IS_NOT_A_FILESYSTEM, - ERR_CYCLIC_LINK, - ERR_USER_CANCELED, - ERR_CYCLIC_COPY, - ERR_COULD_NOT_CREATE_SOCKET, - ERR_COULD_NOT_CONNECT, - ERR_CONNECTION_BROKEN, - ERR_NOT_FILTER_PROTOCOL, - ERR_COULD_NOT_MOUNT, - ERR_COULD_NOT_UNMOUNT, - ERR_COULD_NOT_READ, - ERR_COULD_NOT_WRITE, - ERR_COULD_NOT_BIND, - ERR_COULD_NOT_LISTEN, - ERR_COULD_NOT_ACCEPT, - ERR_COULD_NOT_LOGIN, - ERR_COULD_NOT_STAT, - ERR_COULD_NOT_CLOSEDIR, - ERR_COULD_NOT_MKDIR, - ERR_COULD_NOT_RMDIR, - ERR_CANNOT_RESUME, - ERR_CANNOT_RENAME, - ERR_CANNOT_CHMOD, - ERR_CANNOT_DELETE, - ERR_SLAVE_DIED, - ERR_OUT_OF_MEMORY, - ERR_UNKNOWN_PROXY_HOST, - ERR_COULD_NOT_AUTHENTICATE, - ERR_ABORTED, - ERR_INTERNAL_SERVER, - ERR_SERVER_TIMEOUT, - ERR_SERVICE_NOT_AVAILABLE, - ERR_UNKNOWN, - ERR_UNKNOWN_INTERRUPT, - ERR_CANNOT_DELETE_ORIGINAL, - ERR_CANNOT_DELETE_PARTIAL, - ERR_CANNOT_RENAME_ORIGINAL, - ERR_CANNOT_RENAME_PARTIAL, - ERR_NEED_PASSWD, - ERR_CANNOT_SYMLINK, - ERR_NO_CONTENT, - ERR_DISK_FULL, - ERR_IDENTICAL_FILES, - ERR_SLAVE_DEFINED, - ERR_UPGRADE_REQUIRED, - ERR_POST_DENIED -}; - -%End - -QString buildErrorString (int, const QString&); -//ig QString buildHTMLErrorString (int, const QString&, const KURL* = 0, int = -1); -QByteArray rawErrorDetail (int, const QString&, const KURL* = 0, int = -1); - -%If ( KDE_3_2_0 - ) -QString unsupportedActionErrorString (const QString&, int); - -%If ( KDE_3_5_1 - ) - -enum UDSAtomTypes -{ - UDS_STRING, - UDS_LONG, - UDS_TIME, - UDS_SIZE, - UDS_SIZE_LARGE, - UDS_USER, - UDS_ICON_NAME, - UDS_GROUP, - UDS_EXTRA, - UDS_NAME, - UDS_LOCAL_PATH, - UDS_HIDDEN, - UDS_EXTENDED_ACL, - UDS_ACL_STRING, - UDS_DEFAULT_ACL_STRING, - UDS_ACCESS, - UDS_MODIFICATION_TIME, - UDS_ACCESS_TIME, - UDS_CREATION_TIME, - UDS_FILE_TYPE, - UDS_LINK_DEST, - UDS_URL, - UDS_MIME_TYPE, - UDS_GUESSED_MIME_TYPE, - UDS_XML_PROPERTIES -}; - -%End - -%End - - -%If ( KDE_3_0_1 - ) - -enum CacheControl -{ - CC_CacheOnly, - CC_Cache, - CC_Verify, - CC_Refresh, - CC_Reload -}; - -%End - -KIO::CacheControl parseCacheControl (const QString&); -QString getCacheControlString (KIO::CacheControl); -QString findDeviceMountPoint (const QString&); -QString findPathMountPoint (const QString&); -bool probably_slow_mounted (const QString&); - -%If ( KDE_3_1_0 - ) -bool manually_mounted (const QString&); - -%If ( KDE_3_2_0 - ) - -enum FileSystemFlag -{ - SupportsChmod, - SupportsChown, - SupportsUTime, - SupportsSymlinks, - CaseInsensitive -}; - -bool testFileSystemFlag (const QString&, KIO::FileSystemFlag); -%End - -%End - - -class UDSAtom -{ -%TypeHeaderCode -#include <global.h> -%End - - -public: - QString m_str; - long m_long; - uint m_uds; - -}; // class UDSAtom - -//ig typedef QValueList<KIO::UDSAtom> UDSEntry; -//ig typedef QValueList<KIO::UDSEntry> UDSEntryList; -//ig typedef QValueListIterator<UDSEntry> UDSEntryListIterator; -//ig typedef QValueListConstIterator<UDSEntry> UDSEntryListConstIterator; - -%If ( KDE_3_4_0 - KDE_3_5_1 ) - -enum UDSAtomTypes -{ - UDS_STRING, - UDS_LONG, - UDS_TIME, - UDS_SIZE, - UDS_SIZE_LARGE, - UDS_USER, - UDS_ICON_NAME, - UDS_GROUP, - UDS_EXTRA, - UDS_NAME, - UDS_LOCAL_PATH, - UDS_ACCESS, - UDS_MODIFICATION_TIME, - UDS_ACCESS_TIME, - UDS_CREATION_TIME, - UDS_FILE_TYPE, - UDS_LINK_DEST, - UDS_URL, - UDS_MIME_TYPE, - UDS_GUESSED_MIME_TYPE, - UDS_XML_PROPERTIES -}; - -%End - - -%If ( KDE_3_2_0 - KDE_3_4_0 ) - -enum UDSAtomTypes -{ - UDS_STRING, - UDS_LONG, - UDS_TIME, - UDS_SIZE, - UDS_SIZE_LARGE, - UDS_USER, - UDS_ICON_NAME, - UDS_GROUP, - UDS_EXTRA, - UDS_NAME, - UDS_ACCESS, - UDS_MODIFICATION_TIME, - UDS_ACCESS_TIME, - UDS_CREATION_TIME, - UDS_FILE_TYPE, - UDS_LINK_DEST, - UDS_URL, - UDS_MIME_TYPE, - UDS_GUESSED_MIME_TYPE, - UDS_XML_PROPERTIES -}; - -%End - - -%If ( KDE_3_1_0 - KDE_3_2_0 ) - -enum UDSAtomTypes -{ - UDS_STRING, - UDS_LONG, - UDS_TIME, - UDS_SIZE, - UDS_SIZE_LARGE, - UDS_USER, - UDS_GROUP, - UDS_NAME, - UDS_ACCESS, - UDS_MODIFICATION_TIME, - UDS_ACCESS_TIME, - UDS_CREATION_TIME, - UDS_FILE_TYPE, - UDS_LINK_DEST, - UDS_URL, - UDS_MIME_TYPE, - UDS_GUESSED_MIME_TYPE, - UDS_XML_PROPERTIES -}; - -%End - - -%If ( - KDE_3_1_0 ) - -enum UDSAtomTypes -{ - UDS_STRING, - UDS_LONG, - UDS_TIME, - UDS_SIZE, - UDS_SIZE_LARGE, - UDS_USER, - UDS_GROUP, - UDS_NAME, - UDS_ACCESS, - UDS_MODIFICATION_TIME, - UDS_ACCESS_TIME, - UDS_CREATION_TIME, - UDS_FILE_TYPE, - UDS_LINK_DEST, - UDS_URL, - UDS_MIME_TYPE, - UDS_GUESSED_MIME_TYPE -}; - - -enum Error -{ - ERR_CANNOT_OPEN_FOR_READING, - ERR_CANNOT_OPEN_FOR_WRITING, - ERR_CANNOT_LAUNCH_PROCESS, - ERR_INTERNAL, - ERR_MALFORMED_URL, - ERR_UNSUPPORTED_PROTOCOL, - ERR_NO_SOURCE_PROTOCOL, - ERR_UNSUPPORTED_ACTION, - ERR_IS_DIRECTORY, - ERR_IS_FILE, - ERR_DOES_NOT_EXIST, - ERR_FILE_ALREADY_EXIST, - ERR_DIR_ALREADY_EXIST, - ERR_UNKNOWN_HOST, - ERR_ACCESS_DENIED, - ERR_WRITE_ACCESS_DENIED, - ERR_CANNOT_ENTER_DIRECTORY, - ERR_PROTOCOL_IS_NOT_A_FILESYSTEM, - ERR_CYCLIC_LINK, - ERR_USER_CANCELED, - ERR_CYCLIC_COPY, - ERR_COULD_NOT_CREATE_SOCKET, - ERR_COULD_NOT_CONNECT, - ERR_CONNECTION_BROKEN, - ERR_NOT_FILTER_PROTOCOL, - ERR_COULD_NOT_MOUNT, - ERR_COULD_NOT_UNMOUNT, - ERR_COULD_NOT_READ, - ERR_COULD_NOT_WRITE, - ERR_COULD_NOT_BIND, - ERR_COULD_NOT_LISTEN, - ERR_COULD_NOT_ACCEPT, - ERR_COULD_NOT_LOGIN, - ERR_COULD_NOT_STAT, - ERR_COULD_NOT_CLOSEDIR, - ERR_COULD_NOT_MKDIR, - ERR_COULD_NOT_RMDIR, - ERR_CANNOT_RESUME, - ERR_CANNOT_RENAME, - ERR_CANNOT_CHMOD, - ERR_CANNOT_DELETE, - ERR_SLAVE_DIED, - ERR_OUT_OF_MEMORY, - ERR_UNKNOWN_PROXY_HOST, - ERR_COULD_NOT_AUTHENTICATE, - ERR_ABORTED, - ERR_INTERNAL_SERVER, - ERR_SERVER_TIMEOUT, - ERR_SERVICE_NOT_AVAILABLE, - ERR_UNKNOWN, - ERR_UNKNOWN_INTERRUPT, - ERR_CANNOT_DELETE_ORIGINAL, - ERR_CANNOT_DELETE_PARTIAL, - ERR_CANNOT_RENAME_ORIGINAL, - ERR_CANNOT_RENAME_PARTIAL, - ERR_NEED_PASSWD, - ERR_CANNOT_SYMLINK, - ERR_NO_CONTENT, - ERR_DISK_FULL, - ERR_IDENTICAL_FILES, - ERR_SLAVE_DEFINED -}; - - -%If ( - KDE_3_0_1 ) - -enum CacheControl -{ - CC_CacheOnly, - CC_Cache, - CC_Verify, - CC_Reload -}; - -%End - -%End - -//force -//ig typedef QMap<QString,QString> MetaData; -//end -}; // namespace KIO - -//force -KIO::UDSEntry testKIOUDSEntry (KIO::UDSEntry); -%MethodCode -//takes list | (KIO.UDSEntry) -//returns (KIO.UDSEntry) - sipRes = a0; -%End - -%ModuleHeaderCode -#include <sipkioKIOUDSEntryList.h> -%End - -KIO::UDSEntryList testKIOUDSEntryList (KIO::UDSEntryList); -%MethodCode -//takes list | (KIO.UDSEntryList) -//returns (KIO.UDSEntryList) - sipRes = a0; -%End - -%ModuleHeaderCode -#include <sipkioKIOMetaData.h> -#include <qmap.h> -%End - -KIO::MetaData testKIOMetaData (KIO::MetaData); -%MethodCode -//takes dict | (KIO.MetaData) -//returns (KIO.MetaData) - - - PyObject *dict; - if (sipParseArgs(&sipArgsParsed,sipArgs,"T", &PyDict_Type, &dict)) - { - int isErr = 0; - KIO::MetaData *map = (KIO::MetaData *)sipForceConvertTo_KIO_MetaData (dict, &isErr); - if (isErr) - { - Py_INCREF (Py_None); - return Py_None; - } - return sipConvertFrom_KIO_MetaData ((KIO::MetaData *)map, NULL); - } -%End - -//end - - -%MappedType KIO::UDSEntry -//converts a Python list of KIO.UDSAtom -{ -%TypeHeaderCode -#include <qvaluelist.h> -#include <global.h> -#include <sipkioKIOUDSEntry.h> -#include <sipkioKIOUDSAtom.h> -%End - -%ConvertFromTypeCode - if (!sipCpp) - return PyList_New(0); - - // Create the list - PyObject *pylist; - if ((pylist = PyList_New(0)) == NULL) - return NULL; - - QValueList<KIO::UDSAtom> *cpplist = (QValueList<KIO::UDSAtom> *)sipCpp; - PyObject *inst; - - // Get it. - QValueList<KIO::UDSAtom>::Iterator it; - for( it = cpplist->begin(); it != cpplist->end(); ++it ) - { - if (((inst = sipBuildResult (NULL, "N", new KIO::UDSAtom (*it), sipClass_KIO_UDSAtom)) == NULL) - || PyList_Append (pylist, inst) < 0) - { - Py_DECREF (pylist); - return NULL; - } - } - - return pylist; -%End - - -%ConvertToTypeCode - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - QValueList<KIO::UDSAtom> *cpplist = new QValueList<KIO::UDSAtom>; - - PyObject *elem; - KIO::UDSAtom *cpp; - int iserr = 0; - - for (int i = 0; i < PyList_Size (sipPy); i++) - { - elem = PyList_GET_ITEM (sipPy, i); - cpp = (KIO::UDSAtom *)sipForceConvertTo_KIO_UDSAtom (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (*cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - - -%MappedType KIO::UDSEntryList -//converts a Python list of KIO.UDSEntry -{ -%TypeHeaderCode -#include <qvaluelist.h> -#include <global.h> -#include <sipkioKIOUDSEntry.h> -%End - -%ConvertFromTypeCode - if (!sipCpp) - return PyList_New(0); - - // Create the list - PyObject *pylist; - if ((pylist = PyList_New(0)) == NULL) - return NULL; - - QValueList<KIO::UDSEntry> *cpplist = (QValueList<KIO::UDSEntry> *)sipCpp; - PyObject *inst; - - // Get it. - QValueList<KIO::UDSEntry>::Iterator it; - for( it = cpplist->begin(); it != cpplist->end(); ++it ) - { - KIO::UDSEntry cpp = *it; - inst = sipConvertFrom_KIO_UDSEntry (&cpp, sipTransferObj); - - if (PyList_Append (pylist, inst) < 0) - { - Py_DECREF (pylist); - return NULL; - } - } - - return pylist; -%End - - -%ConvertToTypeCode - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - QValueList<KIO::UDSEntry> *cpplist = new QValueList<KIO::UDSEntry>; - - PyObject *elem; - KIO::UDSEntry *cpp; - int iserr = 0; - - for (int i = 0; i < PyList_Size (sipPy); i++) - { - elem = PyList_GET_ITEM (sipPy, i); - cpp = (KIO::UDSEntry *)sipForceConvertTo_KIO_UDSEntry (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (*cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - - -%MappedType KIO::MetaData -//converts a Python dict of QString, QString -{ -%TypeHeaderCode -#include<qmap.h> -#include <global.h> -#include <sipqtQString.h> -%End - -%ConvertFromTypeCode - // Convert to a Python dict - - if (!sipCpp) - return PyDict_New(); - - PyObject *dict; - - // Create the dictionary. - - if ((dict = PyDict_New()) == NULL) - return NULL; - - // Get it. - - const QMap<QString,QString> cppmap = *sipCpp; - QMap<QString,QString>::ConstIterator it; - - for (it = cppmap.begin (); it != cppmap.end (); ++it) - { - QString acpp = it.key (); - QString bcpp = it.data (); - PyObject *ainst; - PyObject *binst; - if (((ainst = sipBuildResult (NULL, "N", new QString (acpp), sipClass_QString)) == NULL) - || ((binst = sipBuildResult (NULL, "N", new QString (bcpp), sipClass_QString)) == NULL) - || (PyDict_SetItem (dict, ainst, binst) < 0)) - { - Py_XDECREF (ainst); - Py_XDECREF (binst); - Py_DECREF (dict); - return NULL; - } - } - - return dict; -%End - - -%ConvertToTypeCode - // Convert a Python dictionary to a QMap on the heap. - - if (sipIsErr == NULL) - return PyDict_Check(sipPy); - - - QMap<QString,QString> *cppmap = new QMap<QString,QString>; - - PyObject *aelem, *belem; - int pos = 0; - QString *acpp; - QString *bcpp; - - while (PyDict_Next(sipPy, &pos, &aelem, &belem)) - { - int iserr = 0; - - acpp = (QString *)sipForceConvertTo_QString (aelem, &iserr); - bcpp = (QString *)sipForceConvertTo_QString (belem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cppmap; - return 0; - } - - cppmap->insert (*acpp, *bcpp); - } - - *sipCppPtr = (KIO::MetaData *)cppmap; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kio/job.sip b/python/pykde/sip/kio/job.sip deleted file mode 100644 index 2f6339ee..00000000 --- a/python/pykde/sip/kio/job.sip +++ /dev/null @@ -1,73 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -namespace KIO -{ -KIO::SimpleJob* mkdir (const KURL&, int = -1); -KIO::SimpleJob* rmdir (const KURL&); -KIO::SimpleJob* chmod (const KURL&, int); -KIO::SimpleJob* rename (const KURL&, const KURL&, bool); -KIO::SimpleJob* symlink (const QString&, const KURL&, bool, bool = 1); -KIO::SimpleJob* special (const KURL&, const QByteArray&, bool = 1); -KIO::SimpleJob* mount (bool, const char*, const QString&, const QString&, bool = 1); -KIO::SimpleJob* unmount (const QString&, bool = 1); -KIO::SimpleJob* http_update_cache (const KURL&, bool, time_t); -KIO::StatJob* stat (const KURL&, bool = 1); -KIO::StatJob* stat (const KURL&, bool, short, bool = 1); -KIO::TransferJob* get (const KURL&, bool = 0, bool = 1); -KIO::TransferJob* put (const KURL&, int, bool, bool, bool = 1); -KIO::TransferJob* http_post (const KURL&, const QByteArray&, bool = 1); - -%If ( KDE_3_3_0 - ) -KIO::StoredTransferJob* storedGet (const KURL&, bool = 0, bool = 1); -KIO::StoredTransferJob* storedPut (const QByteArray&, const KURL&, int, bool, bool, bool = 1); -%End - -KIO::MultiGetJob* multi_get (long, const KURL&, const KIO::MetaData&); -KIO::MimetypeJob* mimetype (const KURL&, bool = 1); -KIO::FileCopyJob* file_copy (const KURL&, const KURL&, int = -1, bool = 0, bool = 0, bool = 1); -KIO::FileCopyJob* file_move (const KURL&, const KURL&, int = -1, bool = 0, bool = 0, bool = 1); -KIO::SimpleJob* file_delete (const KURL&, bool = 1); -KIO::ListJob* listDir (const KURL&, bool = 1, bool = 1); -KIO::ListJob* listRecursive (const KURL&, bool = 1, bool = 1); -KIO::CopyJob* copy (const KURL&, const KURL&, bool = 1); -KIO::CopyJob* copyAs (const KURL&, const KURL&, bool = 1); -KIO::CopyJob* copy (const KURL::List&, const KURL&, bool = 1); -KIO::CopyJob* move (const KURL&, const KURL&, bool = 1); -KIO::CopyJob* moveAs (const KURL&, const KURL&, bool = 1); -KIO::CopyJob* move (const KURL::List&, const KURL&, bool = 1); -KIO::CopyJob* link (const KURL&, const KURL&, bool = 1); -KIO::CopyJob* link (const KURL::List&, const KURL&, bool = 1); -KIO::CopyJob* linkAs (const KURL&, const KURL&, bool = 1); - -%If ( KDE_3_4_0 - ) -KIO::CopyJob* trash (const KURL&, bool = 1); -KIO::CopyJob* trash (const KURL::List&, bool = 1); -%End - -KIO::DeleteJob* del (const KURL&, bool = 0, bool = 1) /PyName=del_/; -KIO::DeleteJob* del (const KURL::List&, bool = 0, bool = 1) /PyName=del_/; -}; // namespace KIO - diff --git a/python/pykde/sip/kio/jobclasses.sip b/python/pykde/sip/kio/jobclasses.sip deleted file mode 100644 index 9fc230ff..00000000 --- a/python/pykde/sip/kio/jobclasses.sip +++ /dev/null @@ -1,748 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -namespace KIO -{ - -class Job : QObject -{ -%TypeHeaderCode -#include <jobclasses.h> -%End - - -protected: - Job (bool); - -public: - virtual void kill (bool = 1); - int error (); - int progressId (); - const QString& errorText (); - QString errorString (); - QStringList detailedErrorStrings (const KURL* = 0, int = -1) const; - void showErrorDialog (QWidget* = 0); - void setAutoErrorHandlingEnabled (bool, QWidget* = 0); - bool isAutoErrorHandlingEnabled () const; - -%If ( KDE_3_5_0 - ) - void setAutoWarningHandlingEnabled (bool); - bool isAutoWarningHandlingEnabled () const; -%End - - -%If ( KDE_3_4_3 - ) - void setInteractive (bool); - bool isInteractive () const; -%End - - void setWindow (QWidget*); - QWidget* window () const; - -%If ( KDE_3_1_0 - ) - void setParentJob (KIO::Job*); - KIO::Job* parentJob () const; -%End - - void setMetaData (const KIO::MetaData&); - void addMetaData (const QString&, const QString&); - void addMetaData (const QMap<QString,QString>&); - void mergeMetaData (const QMap<QString,QString>&); - KIO::MetaData outgoingMetaData () const; - KIO::MetaData metaData () const; - QString queryMetaData (const QString&); - -%If ( KDE_3_2_0 - ) - KIO::filesize_t getProcessedSize (); -%End - - -signals: - void result (KIO::Job*); - void canceled (KIO::Job*); - void infoMessage (KIO::Job*, const QString&); - -%If ( KDE_3_5_0 - ) - void warning (KIO::Job*, const QString&); -%End - - void connected (KIO::Job*); - void percent (KIO::Job*, ulong); - void totalSize (KIO::Job*, KIO::filesize_t); - void processedSize (KIO::Job*, KIO::filesize_t); - void speed (KIO::Job*, ulong); - -protected slots: - virtual void slotResult (KIO::Job*); - void slotSpeed (KIO::Job*, ulong); - void slotInfoMessage (KIO::Job*, const QString&); - void slotSpeedTimeout (); - -protected: - virtual void addSubjob (KIO::Job*, bool = 1); - virtual void removeSubjob (KIO::Job*); - -%If ( KDE_3_4_0 - ) - void removeSubjob (KIO::Job*, bool, bool); -%End - - void emitPercent (KIO::filesize_t, KIO::filesize_t); - void emitSpeed (ulong); - void emitResult (); - -%If ( KDE_3_2_0 - ) - void setProcessedSize (KIO::filesize_t); -%End - -//ig int& extraFlags (); - -protected: -//igx virtual void virtual_hook (int, void*); - -protected: - -%If ( KDE_3_2_0 - KDE_3_2_2 ) - int extraFlags (); -%MethodCode -//returns (int) - Py_BEGIN_ALLOW_THREADS - sipRes = sipCpp -> sipProtect_extraFlags (); - Py_END_ALLOW_THREADS -%End - -%End - - -}; // class Job - - -class SimpleJob : KIO::Job -{ -%TypeHeaderCode -#include <jobclasses.h> -%End - - -public: - SimpleJob (const KURL&, int, const QByteArray&, bool); - const KURL& url () const; - virtual void kill (bool = 1); - virtual void putOnHold (); - static void removeOnHold (); - virtual void start (KIO::Slave*); - void slaveDone (); - KIO::Slave* slave (); - int command (); - -public slots: - -%If ( KDE_3_1_0 - ) - void slotTotalSize (KIO::filesize_t); -%End - - -protected slots: - virtual void slotFinished (); - void slotWarning (const QString&); - void slotInfoMessage (const QString&); - void slotConnected (); - void slotProcessedSize (KIO::filesize_t); - void slotSpeed (ulong); - virtual void slotMetaData (const KIO::MetaData&); - -public slots: - virtual void slotError (int, const QString&); - -protected slots: - void slotNeedProgressId (); - -protected: - -protected: -//igx virtual void virtual_hook (int, void*); - -%If ( KDE_3_2_0 - ) - void storeSSLSessionFromJob (const KURL&); -%End - - -protected slots: - -%If ( - KDE_3_1_0 ) - void slotTotalSize (KIO::filesize_t); -%End - - -}; // class SimpleJob - - -class StatJob : KIO::SimpleJob -{ -%TypeHeaderCode -#include <jobclasses.h> -%End - - -public: - StatJob (const KURL&, int, const QByteArray&, bool); - void setSide (bool); - void setDetails (short); - const KIO::UDSEntry& statResult () const; - virtual void start (KIO::Slave*); - -signals: - void redirection (KIO::Job*, const KURL&); - -%If ( KDE_3_1_0 - ) - void permanentRedirection (KIO::Job*, const KURL&, const KURL&); -%End - - -protected slots: - void slotStatEntry (const KIO::UDSEntry&); - void slotRedirection (const KURL&); - virtual void slotFinished (); - -%If ( KDE_3_2_0 - ) - virtual void slotMetaData (const KIO::MetaData&); -%End - - -protected: - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class StatJob - - -%If ( KDE_3_3_0 - ) - -class MkdirJob : KIO::SimpleJob -{ -%TypeHeaderCode -#include <jobclasses.h> -%End - - -public: - MkdirJob (const KURL&, int, const QByteArray&, bool); - virtual void start (KIO::Slave*); - -signals: - void redirection (KIO::Job*, const KURL&); - void permanentRedirection (KIO::Job*, const KURL&, const KURL&); - -protected slots: - void slotRedirection (const KURL&); - virtual void slotFinished (); - -protected: - -protected: - virtual void virtual_hook (int, void*); - -}; // class MkdirJob - -%End - - -%If ( KDE_3_3_0 - ) - -class DirectCopyJob : KIO::SimpleJob -{ -%TypeHeaderCode -#include <jobclasses.h> -%End - - -public: - DirectCopyJob (const KURL&, int, const QByteArray&, bool); - virtual void start (KIO::Slave*); - -signals: - void canResume (KIO::Job*, KIO::filesize_t); - -}; // class DirectCopyJob - -%End - - -class TransferJob : KIO::SimpleJob -{ -%TypeHeaderCode -#include <jobclasses.h> -%End - - -public: - TransferJob (const KURL&, int, const QByteArray&, const QByteArray&, bool); - virtual void start (KIO::Slave*); - virtual void slotResult (KIO::Job*); - void suspend (); - void resume (); - bool isSuspended () const; - bool isErrorPage () const; - -%If ( KDE_3_2_0 - ) - void setAsyncDataEnabled (bool); - void sendAsyncData (const QByteArray&); - void setReportDataSent (bool); - bool reportDataSent (); -%End - - -signals: - void data (KIO::Job*, const QByteArray&); - void dataReq (KIO::Job*, QByteArray&); - void redirection (KIO::Job*, const KURL&); - -%If ( KDE_3_1_0 - ) - void permanentRedirection (KIO::Job*, const KURL&, const KURL&); -%End - - void mimetype (KIO::Job*, const QString&); - void canResume (KIO::Job*, KIO::filesize_t); - -protected slots: - virtual void slotRedirection (const KURL&); - virtual void slotFinished (); - virtual void slotData (const QByteArray&); - virtual void slotDataReq (); - virtual void slotMimetype (const QString&); - virtual void slotNeedSubURLData (); - virtual void slotSubURLData (KIO::Job*, const QByteArray&); - -%If ( KDE_3_2_0 - ) - virtual void slotMetaData (const KIO::MetaData&); -%End - - void slotErrorPage (); - void slotCanResume (KIO::filesize_t); - -%If ( KDE_3_2_0 - ) - void slotPostRedirection (); -%End - - -protected: - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class TransferJob - - -%If ( KDE_3_3_0 - ) - -class StoredTransferJob : KIO::TransferJob -{ -%TypeHeaderCode -#include <jobclasses.h> -%End - - -public: - StoredTransferJob (const KURL&, int, const QByteArray&, const QByteArray&, bool); - void setData (const QByteArray&); - QByteArray data () const; - -}; // class StoredTransferJob - -%End - - -class MultiGetJob : KIO::TransferJob -{ -%TypeHeaderCode -#include <jobclasses.h> -%End - - -public: - MultiGetJob (const KURL&, bool); - virtual void start (KIO::Slave*); - void get (long, const KURL&, const KIO::MetaData&); - -signals: - void data (long, const QByteArray&); - void mimetype (long, const QString&); - void result (long); - -protected slots: - virtual void slotRedirection (const KURL&); - virtual void slotFinished (); - virtual void slotData (const QByteArray&); - virtual void slotMimetype (const QString&); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class MultiGetJob - - -class MimetypeJob : KIO::TransferJob -{ -%TypeHeaderCode -#include <jobclasses.h> -%End - - -public: - MimetypeJob (const KURL&, int, const QByteArray&, bool); - QString mimetype () const; - virtual void start (KIO::Slave*); - -protected slots: - virtual void slotFinished (); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class MimetypeJob - - -class FileCopyJob : KIO::Job -{ -%TypeHeaderCode -#include <jobclasses.h> -%End - - -public: - FileCopyJob (const KURL&, const KURL&, int, bool, bool, bool, bool); - -%If ( KDE_3_2_0 - ) - void setSourceSize64 (KIO::filesize_t); - -%If ( KDE_3_5_2 - ) - void setModificationTime (time_t); -%End - -%End - -//ig void setSourceSize (off_t); - KURL srcURL () const; - KURL destURL () const; - -public slots: - void slotStart (); - void slotData (KIO::Job*, const QByteArray&); - void slotDataReq (KIO::Job*, QByteArray&); - -protected slots: - virtual void slotResult (KIO::Job*); - void slotProcessedSize (KIO::Job*, KIO::filesize_t); - void slotTotalSize (KIO::Job*, KIO::filesize_t); - void slotPercent (KIO::Job*, ulong); - void slotCanResume (KIO::Job*, KIO::filesize_t); - -protected: - void startCopyJob (); - void startCopyJob (const KURL&); - -%If ( KDE_3_4_0 - ) - void startRenameJob (const KURL&); -%End - - void startDataPump (); - void connectSubjob (KIO::SimpleJob*); - -protected: - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class FileCopyJob - - -class ListJob : KIO::SimpleJob -{ -%TypeHeaderCode -#include <jobclasses.h> -%End - - -public: - ListJob (const KURL&, bool, bool = 0, QString = QString ::null , bool = 1); - virtual void start (KIO::Slave*); - -%If ( KDE_3_4_3 - ) - const KURL& redirectionURL () const; -%End - - -%If ( KDE_3_2_0 - ) - void setUnrestricted (bool); -%End - - -signals: - void entries (KIO::Job*, const KIO::UDSEntryList&); - void redirection (KIO::Job*, const KURL&); - -%If ( KDE_3_1_0 - ) - void permanentRedirection (KIO::Job*, const KURL&, const KURL&); -%End - - -protected slots: - virtual void slotFinished (); - -%If ( KDE_3_2_0 - ) - virtual void slotMetaData (const KIO::MetaData&); -%End - - virtual void slotResult (KIO::Job*); - void slotListEntries (const KIO::UDSEntryList&); - void slotRedirection (const KURL&); - void gotEntries (KIO::Job*, const KIO::UDSEntryList&); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class ListJob - - -class CopyInfo -{ -%TypeHeaderCode -#include <jobclasses.h> -%End - - -public: - KURL uSource; - KURL uDest; - QString linkDest; - mode_t permissions; - time_t ctime; - time_t mtime; - off_t size; - -}; // class CopyInfo - - -class CopyJob : KIO::Job -{ -%TypeHeaderCode -#include <jobclasses.h> -%End - - -public: - - enum CopyMode - { - Copy, - Move, - Link - }; - - CopyJob (const KURL::List&, const KURL&, KIO::CopyJob::CopyMode, bool, bool); - KURL::List srcURLs () const; - KURL destURL () const; - -%If ( KDE_3_2_3 - ) - void setDefaultPermissions (bool); - -%If ( KDE_3_4_0 - ) - void setInteractive (bool); -%End - -%End - - -signals: - void totalFiles (KIO::Job*, ulong); - void totalDirs (KIO::Job*, ulong); - -%If ( KDE_3_2_0 - ) - void aboutToCreate (KIO::Job*, const QValueList<KIO::CopyInfo>&); -%End - - void processedFiles (KIO::Job*, ulong); - void processedDirs (KIO::Job*, ulong); - void copying (KIO::Job*, const KURL&, const KURL&); - void linking (KIO::Job*, const QString&, const KURL&); - void moving (KIO::Job*, const KURL&, const KURL&); - void creatingDir (KIO::Job*, const KURL&); - void renamed (KIO::Job*, const KURL&, const KURL&); - void copyingDone (KIO::Job*, const KURL&, const KURL&, bool, bool); - void copyingLinkDone (KIO::Job*, const KURL&, const QString&, const KURL&); - -protected: - -%If ( KDE_3_2_3 - ) - void statCurrentSrc (); -%End - - void statNextSrc (); - void slotResultStating (KIO::Job*); - void startListing (const KURL&); - void slotResultCreatingDirs (KIO::Job*); - void slotResultConflictCreatingDirs (KIO::Job*); - void createNextDir (); - void slotResultCopyingFiles (KIO::Job*); - void slotResultConflictCopyingFiles (KIO::Job*); - void copyNextFile (); - void slotResultDeletingDirs (KIO::Job*); - void deleteNextDir (); - void skip (const KURL&); - -%If ( KDE_3_3_2 - ) - void slotResultRenaming (KIO::Job*); - -%If ( KDE_3_5_2 - ) - void setNextDirAttribute (); -%End - -%End - - -protected slots: - void slotStart (); - void slotEntries (KIO::Job*, const KIO::UDSEntryList&); - virtual void slotResult (KIO::Job*); - void slotProcessedSize (KIO::Job*, KIO::filesize_t); - void slotTotalSize (KIO::Job*, KIO::filesize_t); - void slotReport (); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class CopyJob - - -class DeleteJob : KIO::Job -{ -%TypeHeaderCode -#include <jobclasses.h> -%End - - -public: - DeleteJob (const KURL::List&, bool, bool); - KURL::List urls () const; - -signals: - void totalFiles (KIO::Job*, ulong); - void totalDirs (KIO::Job*, ulong); - void processedFiles (KIO::Job*, ulong); - void processedDirs (KIO::Job*, ulong); - void deleting (KIO::Job*, const KURL&); - -protected slots: - void slotStart (); - void slotEntries (KIO::Job*, const KIO::UDSEntryList&); - virtual void slotResult (KIO::Job*); - void slotProcessedSize (KIO::Job*, KIO::filesize_t); - void slotReport (); - -protected: -//igx virtual void virtual_hook (int, void*); - -protected: - -%If ( - KDE_3_1_0 ) - void startNextJob (); - void deleteNextFile (); - void deleteNextDir (); -%End - - -}; // class DeleteJob - -}; // namespace KIO - - - -%MappedType QValueList<KIO::CopyInfo> -//converts a Python list of KIO::CopyInfo -{ -%TypeHeaderCode -#include <qvaluelist.h> -%End - -%ConvertFromTypeCode - if (!sipCpp) - return PyList_New(0); - - // Create the list - PyObject *pylist; - if ((pylist = PyList_New(0)) == NULL) - return NULL; - - QValueList<KIO::CopyInfo> *cpplist = (QValueList<KIO::CopyInfo> *)sipCpp; - PyObject *inst; - - // Get it. - QValueList<KIO::CopyInfo>::Iterator it; - for( it = cpplist->begin(); it != cpplist->end(); ++it ) - { - if (((inst = sipBuildResult (NULL, "N", new KIO::CopyInfo (*it), sipClass_KIO_CopyInfo)) == NULL) - || PyList_Append (pylist, inst) < 0) - { - Py_DECREF (pylist); - return NULL; - } - } - - return pylist; -%End - - -%ConvertToTypeCode - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - QValueList<KIO::CopyInfo> *cpplist = new QValueList<KIO::CopyInfo>; - - PyObject *elem; - KIO::CopyInfo *cpp; - int iserr = 0; - - for (int i = 0; i < PyList_Size (sipPy); i++) - { - elem = PyList_GET_ITEM (sipPy, i); - cpp = (KIO::CopyInfo *)sipForceConvertTo_KIO_CopyInfo (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (*cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kio/kacl.sip b/python/pykde/sip/kio/kacl.sip deleted file mode 100644 index e4cd6328..00000000 --- a/python/pykde/sip/kio/kacl.sip +++ /dev/null @@ -1,166 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_5_0 - ) - -class KACL -{ -%TypeHeaderCode -#include <kacl.h> -%End - - -public: - KACL (const QString&); - KACL (const KACL&); - KACL (mode_t); - KACL (); - bool operator == (const KACL&) const; - bool operator != (const KACL&) const; - bool isValid () const; - ushort ownerPermissions () const; - bool setOwnerPermissions (ushort); - ushort owningGroupPermissions () const; - bool setOwningGroupPermissions (ushort); - ushort othersPermissions () const; - bool setOthersPermissions (ushort); - mode_t basePermissions () const; - bool isExtended () const; - ushort maskPermissions (bool&) const; - bool setMaskPermissions (ushort); - ushort namedUserPermissions (const QString&, bool*) const; - bool setNamedUserPermissions (const QString&, ushort); - ACLUserPermissionsList allUserPermissions () const; - bool setAllUserPermissions (const ACLUserPermissionsList&); - ushort namedGroupPermissions (const QString&, bool*) const; - bool setNamedGroupPermissions (const QString&, ushort); - ACLGroupPermissionsList allGroupPermissions () const; - bool setAllGroupPermissions (const ACLGroupPermissionsList&); - bool setACL (const QString&); - QString asString () const; - -protected: - virtual void virtual_hook (int, void*); - -}; // class KACL - -%End - - -%If ( KDE_3_5_0 - ) -typedef QPair<QString,unsigned short> ACLUserPermissions; -typedef QValueList<ACLUserPermissions> ACLUserPermissionsList; -//igx typedef QValueListIterator<ACLUserPermissions> ACLUserPermissionsIterator; -//igx typedef QValueListConstIterator<ACLUserPermissions> ACLUserPermissionsConstIterator; -//igx typedef QPair<QString,unsigned short> ACLGroupPermissions; -//igx typedef QValueList<ACLGroupPermissions> ACLGroupPermissionsList; -//igx typedef QValueListIterator<ACLGroupPermissions> ACLGroupPermissionsIterator; -//igx typedef QValueListConstIterator<ACLGroupPermissions> ACLGroupPermissionsConstIterator; -//igx QDataStream& operator << (QDataStream&, const KACL&); -//igx QDataStream& operator >> (QDataStream&, KACL&); -//force -typedef ACLUserPermissionsList ACLGroupPermissionsList; -//end -%End - - -%MappedType QValueList<ACLUserPermissions> -//converts a Python list of ACLUserPermissions tuples (QString, int) -{ -%TypeHeaderCode -#include <qvaluelist.h> -#include <qstring.h> -#include <kacl.h> -#include <sipqtQString.h> -#include <sipkioKACL.h> -%End - -%ConvertFromTypeCode - if (!sipCpp) - return PyList_New(0); - - // Create the list - PyObject *pylist; - if ((pylist = PyList_New(0)) == NULL) - return NULL; - - QValueList<ACLUserPermissions> *cpplist = (QValueList<ACLUserPermissions> *)sipCpp; - PyObject *inst; - - // Get it. - QValueList<ACLUserPermissions>::Iterator it; - for( it = cpplist->begin(); it != cpplist->end(); ++it ) - { - QString s = (*it).first; - ushort u = (*it).second; - PyObject *pys = sipBuildResult (NULL, "N", new QString (s), sipClass_QString); - if ((pys == NULL) || ((inst = Py_BuildValue ("Ni", pys, u)) == NULL) - || PyList_Append (pylist, inst) < 0) - { - Py_XDECREF (inst); - Py_XDECREF (pys); - Py_DECREF (pylist); - return NULL; - } - } - - return pylist; -%End - - -%ConvertToTypeCode - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - QValueList<ACLUserPermissions> *cpplist = new QValueList<ACLUserPermissions>; - - QString p1; - int iserr = 0; - - for (int i = 0; i < PyList_Size (sipPy); i++) - { - PyObject *elem = PyList_GET_ITEM (sipPy, i); - PyObject *pyp1 = PyTuple_GET_ITEM (elem, 0); - p1 = *(QString *)sipForceConvertTo_QString (pyp1, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - ushort p2 = (ushort)(PyInt_AS_LONG (PyTuple_GET_ITEM (elem, 1))); - - cpplist->append (ACLUserPermissions (p1, p2)); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kio/kar.sip b/python/pykde/sip/kio/kar.sip deleted file mode 100644 index 08560f21..00000000 --- a/python/pykde/sip/kio/kar.sip +++ /dev/null @@ -1,54 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_1_0 - ) - -class KAr : KArchive -{ -%TypeHeaderCode -#include <kar.h> -%End - - -public: - KAr (const QString&); - KAr (QIODevice*); - QString fileName (); - virtual bool prepareWriting (const QString&, const QString&, const QString&, uint); - virtual bool doneWriting (uint); - virtual bool writeDir (const QString&, const QString&, const QString&); - -protected: - virtual bool openArchive (int); - virtual bool closeArchive (); - -protected: - virtual void virtual_hook (int, void*); - -}; // class KAr - -%End - diff --git a/python/pykde/sip/kio/karchive.sip b/python/pykde/sip/kio/karchive.sip deleted file mode 100644 index 45c634b5..00000000 --- a/python/pykde/sip/kio/karchive.sip +++ /dev/null @@ -1,189 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KArchive -{ -%TypeHeaderCode -#include <karchive.h> -%End - - -protected: - KArchive (QIODevice*); - -public: - virtual bool open (int); - virtual void close (); - -%If ( KDE_3_5_0 - ) - bool closeSucceeded () const; -%End - - bool isOpened () const; - int mode () const; - QIODevice* device () const; - const KArchiveDirectory* directory () const; - -%If ( KDE_3_2_0 - ) - bool addLocalFile (const QString&, const QString&); - bool addLocalDirectory (const QString&, const QString&); -%End - - virtual bool writeDir (const QString&, const QString&, const QString&) = 0; - -%If ( KDE_3_2_0 - ) - bool writeDir (const QString&, const QString&, const QString&, mode_t, time_t, time_t, time_t); - bool writeSymLink (const QString&, const QString&, const QString&, const QString&, mode_t, time_t, time_t, time_t); -%End - - virtual bool writeFile (const QString&, const QString&, const QString&, uint, const char*); - -%If ( KDE_3_2_0 - ) - bool writeFile (const QString&, const QString&, const QString&, uint, mode_t, time_t, time_t, time_t, const char*); -%End - - virtual bool prepareWriting (const QString&, const QString&, const QString&, uint) = 0; - -%If ( KDE_3_2_0 - ) - bool prepareWriting (const QString&, const QString&, const QString&, uint, mode_t, time_t, time_t, time_t); - bool writeData (const char*, uint); -%End - - virtual bool doneWriting (uint) = 0; - -protected: - virtual bool openArchive (int) = 0; - virtual bool closeArchive () = 0; - virtual KArchiveDirectory* rootDir (); - KArchiveDirectory* findOrCreate (const QString&); - void setDevice (QIODevice*); - void setRootDir (KArchiveDirectory*); - -protected: -//igx virtual void virtual_hook (int, void*); - -%If ( KDE_3_2_0 - ) - bool prepareWriting_impl (const QString&, const QString&, const QString&, uint, mode_t, time_t, time_t, time_t); - bool writeFile_impl (const QString&, const QString&, const QString&, uint, mode_t, time_t, time_t, time_t, const char*); - bool writeDir_impl (const QString&, const QString&, const QString&, mode_t, time_t, time_t, time_t); - bool writeSymLink_impl (const QString&, const QString&, const QString&, const QString&, mode_t, time_t, time_t, time_t); - bool writeData_impl (const char*, uint); -%End - - -protected: - -%If ( - KDE_3_1_0 ) - ~KArchive (); -%End - - -}; // class KArchive - - -class KArchiveEntry -{ -%TypeHeaderCode -#include <karchive.h> -%End - - -public: - KArchiveEntry (KArchive*, const QString&, int, int, const QString&, const QString&, const QString&); - QDateTime datetime () const; - int date () const; - QString name () const; - mode_t permissions () const; - QString user () const; - QString group () const; - QString symlink () const; - virtual bool isFile () const; - virtual bool isDirectory () const; - -protected: - KArchive* archive () const; - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KArchiveEntry - - -class KArchiveFile : KArchiveEntry -{ -%TypeHeaderCode -#include <karchive.h> -%End - - -public: - KArchiveFile (KArchive*, const QString&, int, int, const QString&, const QString&, const QString&, int, int); - int position () const; - int size () const; - -%If ( KDE_3_1_0 - ) - void setSize (int); -%End - - virtual QByteArray data () const; - QIODevice* device () const; - virtual bool isFile () const; - -%If ( KDE_3_1_0 - ) - void copyTo (const QString&) const; -%End - - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KArchiveFile - - -class KArchiveDirectory : KArchiveEntry -{ -%TypeHeaderCode -#include <karchive.h> -%End - - -public: - KArchiveDirectory (KArchive*, const QString&, int, int, const QString&, const QString&, const QString&); - QStringList entries () const; - KArchiveEntry* entry (QString); - void addEntry (KArchiveEntry*); - virtual bool isDirectory () const; - -%If ( KDE_3_1_0 - ) - void copyTo (const QString&, bool = 1) const; -%End - - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KArchiveDirectory - diff --git a/python/pykde/sip/kio/kautomount.sip b/python/pykde/sip/kio/kautomount.sip deleted file mode 100644 index 5a417409..00000000 --- a/python/pykde/sip/kio/kautomount.sip +++ /dev/null @@ -1,77 +0,0 @@ -// -// Copyright 2005 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2004 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE_3_3_2 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KAutoMount : QObject -{ -%TypeHeaderCode -#include <kautomount.h> -%End - - -public: - KAutoMount (bool, const QString&, const QString&, const QString&, const QString&, bool = 1); - -signals: - void finished (); - void error (); - -protected slots: - void slotResult (KIO::Job*); - -protected: -//force - -private: - ~KAutoMount (); -//end - -}; // class KAutoMount - - -class KAutoUnmount : QObject -{ -%TypeHeaderCode -#include <kautomount.h> -%End - - -public: - KAutoUnmount (const QString&, const QString&); - -signals: - void finished (); - void error (); - -protected slots: - void slotResult (KIO::Job*); -//force - -private: - ~KAutoUnmount (); -//end - -}; // class KAutoUnmount - diff --git a/python/pykde/sip/kio/kdatatool.sip b/python/pykde/sip/kio/kdatatool.sip deleted file mode 100644 index 62221aef..00000000 --- a/python/pykde/sip/kio/kdatatool.sip +++ /dev/null @@ -1,173 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KDataToolInfo -{ -%TypeHeaderCode -#include <kdatatool.h> -%End - - -public: - KDataToolInfo (); - KDataToolInfo (const KService::Ptr&, KInstance*); - KDataToolInfo (const KDataToolInfo&); - QString dataType () const; - QStringList mimeTypes () const; - bool isReadOnly () const; - QPixmap icon () const; - QPixmap miniIcon () const; - QString iconName () const; - QStringList userCommands () const; - QStringList commands () const; - KDataTool* createTool (QObject* /Transfer/ = 0, const char* = 0) const; - KService::Ptr service () const; - KInstance* instance () const; - bool isValid () const; - static QValueList<KDataToolInfo> query (const QString&, const QString&, KInstance*); - -}; // class KDataToolInfo - - -class KDataToolAction : KAction -{ -%TypeHeaderCode -#include <kdatatool.h> -%End - - -public: - KDataToolAction (const QString&, const KDataToolInfo&, const QString&, QObject* /TransferThis/ = 0, const char* = 0); - static QPtrList<KAction> dataToolActionList (const QValueList<KDataToolInfo>&, const QObject*, const char*); - -signals: - void toolActivated (const KDataToolInfo&, const QString&); - -protected: - virtual void slotActivated (); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KDataToolAction - - -class KDataTool : QObject -{ -%TypeHeaderCode -#include <kdatatool.h> -%End - - -public: - KDataTool (QObject* /TransferThis/ = 0, const char* = 0); - void setInstance (KInstance*); - KInstance* instance () const; - virtual bool run (const QString&, void*, const QString&, const QString&) = 0; - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KDataTool - - - -%MappedType QValueList<KDataToolInfo> -//converts a Python list of KDataToolInfo -{ -%TypeHeaderCode -#include <kdatatool.h> -#include <sipkioKDataToolInfo.h> -%End - -%ConvertFromTypeCode -// Convert to a Python list of KDataToolInfo - - if (!sipCpp) - return PyList_New(0); - - PyObject *dtiList; - - // Create the list - - if ((dtiList = PyList_New(0)) == NULL) - return NULL; - - // Get it. - - QValueList<KDataToolInfo> *dlist = (QValueList<KDataToolInfo> *)sipCpp; - PyObject *inst; - - - QValueList<KDataToolInfo>::Iterator it; - for( it = dlist->begin(); it != dlist->end(); ++it ) - { - if ((inst = sipBuildResult (NULL, "N", new KDataToolInfo (*it), sipClass_KDataToolInfo)) == NULL - || PyList_Append (dtiList, inst) < 0) - { - Py_DECREF (dtiList); - return NULL; - } - } - - return dtiList; -%End - - -%ConvertToTypeCode - // Convert a Python list to a KDataToolInfoVList on the heap. - - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - QValueList<KDataToolInfo> *dList = new QValueList<KDataToolInfo>; - - PyObject *elem; - KDataToolInfo *d; - int iserr = 0; - - for (int i = 0; i < PyList_Size (sipPy); i++) - { - elem = PyList_GET_ITEM (sipPy, i); - d = (KDataToolInfo *)sipForceConvertTo_KDataToolInfo (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete dList; - return 0; - } - - dList->append (*d); - } - - *sipCppPtr = dList; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kio/kdcopservicestarter.sip b/python/pykde/sip/kio/kdcopservicestarter.sip deleted file mode 100644 index fd1684c3..00000000 --- a/python/pykde/sip/kio/kdcopservicestarter.sip +++ /dev/null @@ -1,48 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_2_0 - ) - -class KDCOPServiceStarter -{ -%TypeHeaderCode -#include <kdcopservicestarter.h> -%End - - -public: - static KDCOPServiceStarter* self (); - int findServiceFor (const QString&, const QString& = QString ::null , const QString& = QString ::null , QString* = 0, QCString* = 0, int = 0); - virtual int startServiceFor (const QString&, const QString& = QString ::null , const QString& = QString ::null , QString* = 0, QCString* = 0, int = 0); - -protected: - KDCOPServiceStarter (); - ~KDCOPServiceStarter (); - -}; // class KDCOPServiceStarter - -%End - diff --git a/python/pykde/sip/kio/kdirlister.sip b/python/pykde/sip/kio/kdirlister.sip deleted file mode 100644 index f6f56308..00000000 --- a/python/pykde/sip/kio/kdirlister.sip +++ /dev/null @@ -1,268 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KDirLister : QObject -{ -%TypeHeaderCode -#include <kdirlister.h> -%End - - -public: - KDirLister (bool = 0); - virtual bool openURL (const KURL&, bool = 0, bool = 0); - virtual void stop (); - virtual void stop (const KURL&); - bool autoUpdate () const; - virtual void setAutoUpdate (bool); - bool autoErrorHandlingEnabled () const; - void setAutoErrorHandlingEnabled (bool, QWidget* /Transfer/); - bool showingDotFiles () const; - virtual void setShowingDotFiles (bool); - bool dirOnlyMode () const; - virtual void setDirOnlyMode (bool); - const KURL& url () const; - -%If ( KDE_3_4_0 - ) - const KURL::List& directories () const; -%End - - virtual void emitChanges (); - virtual void updateDirectory (const KURL&); - bool isFinished () const; - KFileItem* rootItem () const; - virtual KFileItem* findByURL (const KURL&) const; - KFileItem* find (const KURL&) const; - virtual KFileItem* findByName (const QString&) const; - virtual void setNameFilter (const QString&); - const QString& nameFilter () const; - virtual void setMimeFilter (const QStringList&); - -%If ( KDE_3_1_0 - ) - void setMimeExcludeFilter (const QStringList&); -%End - - virtual void clearMimeFilter (); - const QStringList& mimeFilters () const; - bool matchesFilter (const QString&) const; - bool matchesMimeFilter (const QString&) const; - -%If ( KDE_3_1_0 - ) - void setMainWindow (QWidget*); - QWidget* mainWindow (); - - enum WhichItems - { - AllItems, - FilteredItems - }; - - KFileItemList items (KDirLister::WhichItems = FilteredItems ) const; - KFileItemList itemsForDir (const KURL&, KDirLister::WhichItems = FilteredItems ) const; -%End - - -signals: - void started (const KURL&); - void completed (); - void completed (const KURL&); - void canceled (); - void canceled (const KURL&); - void redirection (const KURL&); - void redirection (const KURL&, const KURL&); - void clear (); - void clear (const KURL&); - void newItems (const KFileItemList&); - void itemsFilteredByMime (const KFileItemList&); - void deleteItem (KFileItem*); - void refreshItems (const KFileItemList&); - void infoMessage (const QString&); - void percent (int); - void totalSize (KIO::filesize_t); - void processedSize (KIO::filesize_t); - void speed (int); - -protected: - virtual bool matchesFilter (const KFileItem*) const; - virtual bool matchesMimeFilter (const KFileItem*) const; - virtual bool doNameFilter (const QString&, const QPtrList<QRegExp>&) const; - virtual bool doMimeFilter (const QString&, const QStringList&) const; - -%If ( KDE_3_1_0 - ) - bool doMimeExcludeFilter (const QString&, const QStringList&) const; -%End - - virtual bool validURL (const KURL&) const; - virtual void handleError (KIO::Job*); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KDirLister - - - -%MappedType KFileItemList -//converts a Python list of KFileItem -{ -%TypeHeaderCode -#include <sipkioKFileItem.h> -%End - -%ConvertFromTypeCode - if (!sipCpp) - return PyList_New (0); - - PyObject *pylist; - - // Create the list - - if ((pylist = PyList_New(0)) == NULL) - return NULL; - - // Get it. - - QPtrList<KFileItem> *cpplist = (QPtrList<KFileItem> *)sipCpp; - KFileItem *cpp; - PyObject *inst; - - // the loop depends on the type of iterator the tmeplate makes available - for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) - { - if (((inst = sipConvertFromInstance (cpp, sipClass_KFileItem, sipTransferObj)) == NULL) - || PyList_Append (pylist, inst) < 0) - { - Py_DECREF (pylist); - return NULL; - } - } - - return pylist; -%End - -%ConvertToTypeCode - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - QPtrList<KFileItem> *cpplist = new QPtrList<KFileItem>; - - PyObject *elem; - KFileItem *cpp; - int iserr = 0; - - for (int i = 0; i < PyList_Size (sipPy); i++) - { - elem = PyList_GET_ITEM (sipPy, i); - cpp = (KFileItem *)sipForceConvertTo_KFileItem (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - - -%MappedType QPtrList<QRegExp> -//converts a Python list of QRegExp -{ -%TypeHeaderCode -#include <qregexp.h> -#include <sipqtQRegExp.h> -%End - -%ConvertFromTypeCode - if (!sipCpp) - return PyList_New (0); - - PyObject *pylist; - - // Create the list - - if ((pylist = PyList_New(0)) == NULL) - return NULL; - - // Get it. - - QPtrList<QRegExp> *cpplist = (QPtrList<QRegExp> *)sipCpp; - QRegExp *cpp; - PyObject *inst; - - // the loop depends on the type of iterator the tmeplate makes available - for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) - { - if (((inst = sipConvertFromInstance (cpp, sipClass_QRegExp, sipTransferObj)) == NULL) - || PyList_Append (pylist, inst) < 0) - { - Py_DECREF (pylist); - return NULL; - } - } - - return pylist; -%End - -%ConvertToTypeCode - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - QPtrList<QRegExp> *cpplist = new QPtrList<QRegExp>; - - PyObject *elem; - QRegExp *cpp; - int iserr = 0; - - for (int i = 0; i < PyList_Size (sipPy); i++) - { - elem = PyList_GET_ITEM (sipPy, i); - cpp = (QRegExp *)sipForceConvertTo_QRegExp (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kio/kdirnotify.sip b/python/pykde/sip/kio/kdirnotify.sip deleted file mode 100644 index 1f3fbb99..00000000 --- a/python/pykde/sip/kio/kdirnotify.sip +++ /dev/null @@ -1,57 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KDirNotify : DCOPObject -{ -%TypeHeaderCode -#include <kdirnotify.h> -%End - - -public: - -%If ( KDE_3_1_4 - ) - virtual bool process (const QCString&, const QByteArray&, QCString&, QByteArray&); - QCStringList functions (); - QCStringList interfaces (); -%End - - -protected: - KDirNotify (); - ~KDirNotify (); - -public: - virtual void FilesAdded (const KURL&) = 0; - virtual void FilesRemoved (const KURL::List&) = 0; - virtual void FilesChanged (const KURL::List&) = 0; - virtual void FileRenamed (const KURL&, const KURL&); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KDirNotify - diff --git a/python/pykde/sip/kio/kdirwatch.sip b/python/pykde/sip/kio/kdirwatch.sip deleted file mode 100644 index 41867dd3..00000000 --- a/python/pykde/sip/kio/kdirwatch.sip +++ /dev/null @@ -1,96 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KDirWatch : QObject -{ -%TypeHeaderCode -#include <kdirwatch.h> -%End - - -public: - KDirWatch (QObject* /TransferThis/ = 0, const char* = 0); - void addDir (const QString&, bool = 0, bool = 0); - void addFile (const QString&); - QDateTime ctime (const QString&); - void removeDir (const QString&); - void removeFile (const QString&); - bool stopDirScan (const QString&); - bool restartDirScan (const QString&); - void startScan (bool = 0, bool = 0); - void stopScan (); - bool isStopped (); - bool contains (const QString&) const; - static void statistics (); - void setCreated (const QString&); - void setDirty (const QString&); - void setDeleted (const QString&); - -%If ( KDE_3_5_1 - ) - - enum Method - { - FAM, - DNotify, - Stat, - INotify - }; - -%End - - -%If ( KDE_3_2_0 - ) - KDirWatch::Method internalMethod (); -%End - - static KDirWatch* self (); - -%If ( KDE_3_1_0 - ) - static bool exists (); -%End - - -signals: - void dirty (const QString&); - void created (const QString&); - void deleted (const QString&); - -public: - -%If ( KDE_3_2_0 - KDE_3_5_1 ) - - enum Method - { - FAM, - DNotify, - Stat - }; - -%End - - -}; // class KDirWatch - diff --git a/python/pykde/sip/kio/kemailsettings.sip b/python/pykde/sip/kio/kemailsettings.sip deleted file mode 100644 index 8041d0b8..00000000 --- a/python/pykde/sip/kio/kemailsettings.sip +++ /dev/null @@ -1,84 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KEMailSettings -{ -%TypeHeaderCode -#include <kemailsettings.h> -%End - - -public: - - enum Setting - { - ClientProgram, - ClientTerminal, - RealName, - EmailAddress, - ReplyToAddress, - Organization, - OutServer, - OutServerLogin, - OutServerPass, - OutServerType, - OutServerCommand, - OutServerTLS, - InServer, - InServerLogin, - InServerPass, - InServerType, - InServerMBXType, - InServerTLS - }; - - - enum Extension - { - POP3, - SMTP, - OTHER - }; - - KEMailSettings (); - QStringList profiles () const; - QString currentProfileName () const; - void setProfile (const QString&); - QString defaultProfileName () const; - void setDefault (const QString&); - QString getSetting (KEMailSettings::Setting); - void setSetting (KEMailSettings::Setting, const QString&); - -public: - -%If ( - KDE_3_2_0 ) -//ig QString getExtendedSetting (KEMailSettings::Extension, const QString&); -//ig void setExtendedSetting (KEMailSettings::Extension, const QString&, const QString&); -%End - - -}; // class KEMailSettings - diff --git a/python/pykde/sip/kio/kfilefilter.sip b/python/pykde/sip/kio/kfilefilter.sip deleted file mode 100644 index cbe65618..00000000 --- a/python/pykde/sip/kio/kfilefilter.sip +++ /dev/null @@ -1,81 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KFileFilter -{ -%TypeHeaderCode -#include <kfilefilter.h> -%End - - -public: - virtual bool passesFilter (const KFileItem*) const = 0; - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KFileFilter - - -class KSimpleFileFilter : KFileFilter -{ -%TypeHeaderCode -#include <kfilefilter.h> -%End - - -public: - KSimpleFileFilter (); - virtual void setFilterDotFiles (bool); - bool filterDotFiles () const; - virtual void setFilterSpecials (bool); - bool filterSpecials () const; - -%If ( KDE_3_1_0 - ) - void setNameFilters (const QString&, bool, const QChar& = ' '); -%End - - virtual void setNameFilters (const QString&); - virtual void setMimeFilters (const QStringList&); - QStringList mimeFilters () const; - virtual void setModeFilter (mode_t); - mode_t modeFilter () const; - virtual bool passesFilter (const KFileItem*) const; - -protected: - -protected: -//igx virtual void virtual_hook (int, void*); - -public: - -%If ( - KDE_3_2_0 ) -//ig QString nameFilters () const; -%End - - -}; // class KSimpleFileFilter - diff --git a/python/pykde/sip/kio/kfileitem.sip b/python/pykde/sip/kio/kfileitem.sip deleted file mode 100644 index 3bba31c3..00000000 --- a/python/pykde/sip/kio/kfileitem.sip +++ /dev/null @@ -1,171 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KFileItem -{ -%TypeHeaderCode -#include <kfileitem.h> -%End - - -public: - - enum - { - Unknown - }; - - KFileItem (const KIO::UDSEntry&, const KURL&, bool = 0, bool = 0); - KFileItem (mode_t, mode_t, const KURL&, bool = 0); - KFileItem (const KURL&, const QString&, mode_t); - KFileItem (const KFileItem&); - void refresh (); - void refreshMimeType (); - const KURL& url () const; - void setURL (const KURL&); - -%If ( KDE_3_2_0 - ) - void setName (const QString&); -%End - - mode_t permissions () const; - QString permissionsString () const; - -%If ( KDE_3_5_0 - ) - bool hasExtendedACL () const; - KACL ACL () const; - KACL defaultACL () const; -%End - - mode_t mode () const; - QString user () const; - QString group () const; - bool isLink () const; - bool isDir () const; - bool isFile () const; - bool isReadable () const; - -%If ( KDE_3_4_0 - ) - bool isWritable () const; -%End - - -%If ( KDE_3_3_0 - ) - bool isHidden () const; -%End - - QString linkDest () const; - -%If ( KDE_3_4_0 - ) - QString localPath () const; -%End - - KIO::filesize_t size () const; - -%If ( KDE_3_5_0 - ) - KIO::filesize_t size (bool& /Out/) const /PyName=sizeAndExists/; -%End - - time_t time (uint) const; - -%If ( KDE_3_5_0 - ) - time_t time (uint, bool& /Out/) const /PyName=timeAndHasTime/; -%End - - QString timeString (uint = KIO ::UDS_MODIFICATION_TIME ) const; - bool isLocalFile () const; - const QString& text () const; - const QString& name (bool = 0) const; - QString mimetype () const; - KMimeType::Ptr determineMimeType (); - KMimeType::Ptr mimeTypePtr (); - bool isMimeTypeKnown () const; - QString mimeComment (); - QString iconName (); - QPixmap pixmap (int, int = 0) const; - int overlays () const; - QString getStatusBarInfo (); - QString getToolTipText (int = 6); - bool acceptsDrops (); - void run (); - const KIO::UDSEntry& entry () const; - bool isMarked () const; - void mark (); - void unmark (); - bool cmp (const KFileItem&); -//ig virtual void setExtraData (const void*, void*); -//ig virtual const void* extraData (const void*) const; -//ig virtual void removeExtraData (const void*); - void setMetaInfo (const KFileMetaInfo&); - -%If ( KDE_3_5_0 - ) - void setFileMode (mode_t); - void setMimeType (const QString&); -%End - - const KFileMetaInfo& metaInfo (bool = 1, int = KFileMetaInfo ::Fastest ) const; - void assign (const KFileItem&); - -%If ( KDE_3_4_3 - ) - void setUDSEntry (const KIO::UDSEntry&, const KURL&, bool = 0, bool = 0); -%End - - -%If ( KDE_3_4_0 - ) - KURL mostLocalURL (bool&) const; -%End - - -protected: - void init (bool); - -%If ( KDE_3_4_3 - ) - void readUDSEntry (bool); -%End - - QString parsePermissions (mode_t) const; - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KFileItem - -typedef QPtrList<KFileItem> KFileItemList; - -%If ( KDE_3_1_4 - ) -//ig typedef QPtrListIterator<KFileItem> KFileItemListIterator; - -%If ( KDE_3_2_0 - ) -//igx QDataStream& operator << (QDataStream&, const KFileItem&); -//igx QDataStream& operator >> (QDataStream&, KFileItem&); -%End - -%End - - -%If ( - KDE_3_1_4 ) -//ig typedef QListIterator<KFileItem> KFileItemListIterator; -%End diff --git a/python/pykde/sip/kio/kfilemetainfo.sip b/python/pykde/sip/kio/kfilemetainfo.sip deleted file mode 100644 index 77b58718..00000000 --- a/python/pykde/sip/kio/kfilemetainfo.sip +++ /dev/null @@ -1,458 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KFileMimeTypeInfo -{ -%TypeHeaderCode -#include <kfilemetainfo.h> -%End - - -public: - KFileMimeTypeInfo (); - -%If ( KDE_3_3_0 - ) - - enum Attributes - { - Addable, - Removable, - Modifiable, - Cumulative, - Cummulative, - Averaged, - MultiLine, - SqueezeText - }; - -%End - - - enum Hint - { - NoHint, - Name, - Author, - Description, - Width, - Height, - Size, - Bitrate, - Length, - Hidden, - Thumbnail - }; - - -%If ( KDE_3_3_0 - ) - - enum Unit - { - NoUnit, - Seconds, - MilliSeconds, - BitsPerSecond, - Pixels, - Inches, - Centimeters, - Bytes, - FramesPerSecond, - DotsPerInch, - BitsPerPixel, - Hertz, - KiloBytes, - Millimeters - }; - -%End - - - class GroupInfo - { - - public: - QStringList supportedKeys () const; - const QString& name () const; - const QString& translatedName () const; - const KFileMimeTypeInfo::ItemInfo* itemInfo (const QString&) const; - uint attributes () const; - bool supportsVariableKeys () const; - const KFileMimeTypeInfo::ItemInfo* variableItemInfo () const; - - private: - GroupInfo (const QString&, const QString&); - - }; // class GroupInfo - - -public: - - class ItemInfo - { - - public: - ItemInfo (); - const QString& prefix () const; - const QString& suffix () const; - QVariant::Type type () const; - const QString& key () const; - -%If ( KDE_3_1_0 - ) - QString string (const QVariant&, bool = 1) const; -%End - - bool isVariableItem () const; - const QString& translatedKey () const; - uint attributes () const; - uint hint () const; - uint unit () const; - - private: - ItemInfo (const QString&, const QString&, QVariant::Type); - - }; // class ItemInfo - - -public: - QValidator* createValidator (const QString&, const QString&, QObject* /Transfer/ = 0, const char* = 0) const; - QStringList supportedGroups () const; - QStringList translatedGroups () const; - QStringList preferredGroups () const; - QString mimeType () const; - const KFileMimeTypeInfo::GroupInfo* groupInfo (const QString&) const; - QStringList supportedKeys () const; - QStringList preferredKeys () const; - KFileMimeTypeInfo::GroupInfo* addGroupInfo (const QString&, const QString&); - QString m_translatedName; - QStringList m_supportedKeys; - uint m_attr; -//ig QDict<ItemInfo> m_itemDict; - -protected: - KFileMimeTypeInfo (const QString&); - -public: - -%If ( KDE_3_1_0 - KDE_3_3_0 ) - - enum Attributes - { - Addable, - Removable, - Modifiable, - Cummulative, - Averaged, - MultiLine, - SqueezeText - }; - -%End - - -public: - -%If ( - KDE_3_1_0 ) - - enum Attributes - { - Addable, - Removable, - Modifiable, - Cummulative, - Averaged - }; - -%End - - -}; // class KFileMimeTypeInfo - - -class KFileMetaInfoItem -{ -%TypeHeaderCode -#include <kfilemetainfo.h> -%End - - -public: - typedef KFileMimeTypeInfo::Hint Hint; -//ig typedef KFileMimeTypeInfo::Unit Unit; - typedef KFileMimeTypeInfo::Attributes Attributes; - KFileMetaInfoItem (const KFileMimeTypeInfo::ItemInfo*, const QString&, const QVariant&); - KFileMetaInfoItem (const KFileMetaInfoItem&); - KFileMetaInfoItem (); - QString key () const; - QString translatedKey () const; - const QVariant& value () const; - QString string (bool = 1) const; - bool setValue (const QVariant&); - QVariant::Type type () const; - bool isEditable () const; - bool isRemoved () const; - bool isModified () const; - QString prefix () const; - QString suffix () const; - uint hint () const; -//ig uint unit () const; - uint attributes () const; - bool isValid () const; - -protected: - void setAdded (); - -%If ( KDE_3_1_0 - ) - void setRemoved (); -%End - - void ref (); - void deref (); - -}; // class KFileMetaInfoItem - - -class KFileMetaInfoGroup -{ -%TypeHeaderCode -#include <kfilemetainfo.h> -%End - - -public: - KFileMetaInfoGroup (const QString&, const KFileMimeTypeInfo*); - KFileMetaInfoGroup (const KFileMetaInfoGroup&); - KFileMetaInfoGroup (); - bool isValid () const; - bool isEmpty () const; - -%If ( KDE_3_1_0 - ) - bool isModified () const; - -%If ( KDE_3_1_4 - ) - KFileMetaInfoItem operator [] (const QString&) const; -%MethodCode -//returns (KFileMetaInfoItem) -//takes key | (QString) - sipRes = &((*sipCpp) [(const QString&) *a0]); -%End - -%End - -%End - - KFileMetaInfoItem item (const QString&) const; - KFileMetaInfoItem item (uint) const; - const QVariant value (const QString&) const; - QStringList supportedKeys () const; - bool supportsVariableKeys () const; - bool contains (const QString&) const; - QStringList keys () const; - QStringList preferredKeys () const; - KFileMetaInfoItem addItem (const QString&); - bool removeItem (const QString&); - QStringList removedItems (); - QString name () const; - -%If ( KDE_3_2_0 - ) - QString translatedName () const; -%End - - uint attributes () const; - -protected: - void setAdded (); - KFileMetaInfoItem appendItem (const QString&, const QVariant&); - void ref (); - void deref (); - -}; // class KFileMetaInfoGroup - - -class KFileMetaInfo -{ -%TypeHeaderCode -#include <kfilemetainfo.h> -%End - - -public: - typedef KFileMimeTypeInfo::Hint Hint; -//ig typedef KFileMimeTypeInfo::Unit Unit; - typedef KFileMimeTypeInfo::Attributes Attributes; - - enum What - { - Fastest, - DontCare, - TechnicalInfo, - ContentInfo, - ExtenedAttr, - Thumbnail, - Preferred, - Everything - }; - - KFileMetaInfo (const QString&, const QString& = QString ::null , uint = Fastest ); - -%If ( KDE_3_2_0 - ) - KFileMetaInfo (const KURL&, const QString& = QString ::null , uint = Fastest ); -%End - - KFileMetaInfo (); - KFileMetaInfo (const KFileMetaInfo&); - QStringList groups () const; - QStringList supportedGroups () const; - QStringList preferredGroups () const; - QStringList preferredKeys () const; - QStringList supportedKeys () const; - QStringList editableGroups () const; - KFileMetaInfoItem item (const QString&) const; - KFileMetaInfoItem item (const Hint) const; - KFileMetaInfoItem saveItem (const QString&, const QString& = QString ::null , bool = 1); - KFileMetaInfoGroup group (const QString&) const; - -%If ( KDE_3_1_4 - ) - KFileMetaInfoGroup operator [] (const QString&) const; -%MethodCode -//returns (KFileMetaInfoGroup) -//takes key | (QString) - sipRes = &((*sipCpp) [(const QString&)*a0]); -%End - -%End - - bool addGroup (const QString&); - bool removeGroup (const QString&); - QStringList removedGroups (); - bool applyChanges (); - -%If ( KDE_3_5_3 - ) - bool applyChanges (const QString&); -%End - - bool contains (const QString&) const; - bool containsGroup (const QString&) const; - const QVariant value (const QString&) const; - bool isValid () const; - bool isEmpty () const; - QString mimeType () const; - QString path () const; - -%If ( KDE_3_2_0 - ) - KURL url () const; -%End - - -protected: - KFileMetaInfoGroup appendGroup (const QString&); - KFilePlugin* plugin () const; - void ref (); - void deref (); - -}; // class KFileMetaInfo - - -class KFilePlugin : QObject -{ -%TypeHeaderCode -#include <kfilemetainfo.h> -%End - - -public: - KFilePlugin (QObject* /TransferThis/, const char*, const QStringList&); - virtual bool readInfo (KFileMetaInfo&, uint = KFileMetaInfo ::Fastest ) = 0; - virtual bool writeInfo (const KFileMetaInfo&) const; - virtual QValidator* createValidator (const QString&, const QString&, const QString&, QObject*, const char*) const; - -protected: - KFileMimeTypeInfo* addMimeTypeInfo (const QString&); - KFileMimeTypeInfo::GroupInfo* addGroupInfo (KFileMimeTypeInfo*, const QString&, const QString&) const; - void setAttributes (KFileMimeTypeInfo::GroupInfo*, uint) const; - void addVariableInfo (KFileMimeTypeInfo::GroupInfo*, QVariant::Type, uint) const; - KFileMimeTypeInfo::ItemInfo* addItemInfo (KFileMimeTypeInfo::GroupInfo*, const QString&, const QString&, QVariant::Type); - void setAttributes (KFileMimeTypeInfo::ItemInfo*, uint); - void setHint (KFileMimeTypeInfo::ItemInfo*, uint); - void setUnit (KFileMimeTypeInfo::ItemInfo*, uint); - void setPrefix (KFileMimeTypeInfo::ItemInfo*, const QString&); - void setSuffix (KFileMimeTypeInfo::ItemInfo*, const QString&); - KFileMetaInfoGroup appendGroup (KFileMetaInfo&, const QString&); - void appendItem (KFileMetaInfoGroup&, const QString&, QVariant); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KFilePlugin - - -class KFileMetaInfoProvider : QObject -{ -%TypeHeaderCode -#include <kfilemetainfo.h> -%End - - -public: - static KFileMetaInfoProvider* self (); - KFilePlugin* plugin (const QString&); - -%If ( KDE_3_4_0 - ) - KFilePlugin* plugin (const QString&, const QString&); -%End - - const KFileMimeTypeInfo* mimeTypeInfo (const QString&); - -%If ( KDE_3_4_0 - ) - const KFileMimeTypeInfo* mimeTypeInfo (const QString&, const QString&); -%End - - QStringList preferredKeys (const QString&) const; - QStringList preferredGroups (const QString&) const; - -%If ( KDE_3_1_0 - ) - QStringList supportedMimeTypes () const; -%End - - -protected: -//ig KFileMetaInfoProvider (); -//force - -private: - KFileMetaInfoProvider (); -//end - -}; // class KFileMetaInfoProvider - - -%If ( KDE_3_1_4 - ) -//igx QDataStream& operator << (QDataStream&, const KFileMetaInfoItem&); -//igx QDataStream& operator >> (QDataStream&, KFileMetaInfoItem&); -//igx QDataStream& operator << (QDataStream&, const KFileMetaInfoGroup&); -//igx QDataStream& operator >> (QDataStream&, KFileMetaInfoGroup&); -//igx QDataStream& operator << (QDataStream&, const KFileMetaInfo&); -//igx QDataStream& operator >> (QDataStream&, KFileMetaInfo&); -%End diff --git a/python/pykde/sip/kio/kfileshare.sip b/python/pykde/sip/kio/kfileshare.sip deleted file mode 100644 index 69c52361..00000000 --- a/python/pykde/sip/kio/kfileshare.sip +++ /dev/null @@ -1,87 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -//ig class KFileSharePrivate : QObject; - - -%If ( KDE_3_1_0 - ) - -class KFileShare -{ -%TypeHeaderCode -#include <kfileshare.h> -%End - - -public: - static void readConfig (); - -%If ( KDE_3_3_0 - ) - static void readShareList (); -%End - - static bool isDirectoryShared (const QString&); - - enum Authorization - { - NotInitialized, - ErrorNotFound, - Authorized, - UserNotAllowed - }; - - static KFileShare::Authorization authorization (); - static QString findExe (const char*); - static bool setShared (const QString&, bool); - -%If ( KDE_3_3_0 - ) - - enum ShareMode - { - Simple, - Advanced - }; - - static bool sharingEnabled (); - static bool isRestricted (); - static QString fileShareGroup (); - static KFileShare::ShareMode shareMode (); - static bool sambaEnabled (); - static bool nfsEnabled (); -%End - - -public: - -%If ( - KDE_3_1_5 ) -//ig static bool setShared (const QString&, bool, bool); -%End - - -}; // class KFileShare - -%End - diff --git a/python/pykde/sip/kio/kfilterbase.sip b/python/pykde/sip/kio/kfilterbase.sip deleted file mode 100644 index bf931bc8..00000000 --- a/python/pykde/sip/kio/kfilterbase.sip +++ /dev/null @@ -1,74 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KFilterBase : QObject -{ -%TypeHeaderCode -#include <qobject.h> -#include <kfilterbase.h> -%End - - -public: - KFilterBase (); - -%If ( KDE_3_1_2 - ) - void setDevice (QIODevice*, bool = 0); -%End - - QIODevice* device (); - virtual void init (int) = 0; - virtual int mode () const = 0; - virtual void terminate (); - virtual void reset (); - virtual bool readHeader () = 0; - virtual bool writeHeader (const QCString&) = 0; - virtual void setOutBuffer (char*, uint) = 0; - virtual void setInBuffer (const char*, uint) = 0; - virtual bool inBufferEmpty () const; - virtual int inBufferAvailable () const = 0; - virtual bool outBufferFull () const; - virtual int outBufferAvailable () const = 0; - - enum Result - { - OK, - END, - ERROR - }; - - virtual Result uncompress () = 0; - virtual KFilterBase::Result compress (bool) = 0; - static KFilterBase* findFilterByFileName (const QString&); - static KFilterBase* findFilterByMimeType (const QString&); - -protected: - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KFilterBase - diff --git a/python/pykde/sip/kio/kfilterdev.sip b/python/pykde/sip/kio/kfilterdev.sip deleted file mode 100644 index 37bd1dc4..00000000 --- a/python/pykde/sip/kio/kfilterdev.sip +++ /dev/null @@ -1,73 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KFilterDev : QIODevice -{ -%TypeHeaderCode -#include <kfilterdev.h> -%End - - -public: - KFilterDev (KFilterBase*, bool); - virtual bool open (int); - virtual void close (); - virtual void flush (); - void setOrigFileName (const QCString&); - -%If ( KDE_3_1_0 - ) - void setSkipHeaders (); -%End - - virtual QIODevice::Offset size () const; - virtual QIODevice::Offset at () const; - virtual bool at (QIODevice::Offset); - virtual bool atEnd () const; -//ig virtual Q_LONG readBlock (char*, Q_ULONG); -//ig virtual Q_LONG writeBlock (const char*, Q_ULONG); - virtual int getch (); - virtual int putch (int); - virtual int ungetch (int); - static QIODevice* createFilterDevice (KFilterBase*, QFile*); - -public: - static QIODevice* deviceForFile (const QString&, const QString& = QString ::null , bool = 0); - static QIODevice* device (QIODevice*, const QString&); - -%If ( KDE_3_1_0 - ) - static QIODevice* device (QIODevice*, const QString&, bool); -%End - - -public: - -%If ( - KDE_3_2_2 ) - virtual long writeBlock (const char*, ulong); -%End - - -}; // class KFilterDev - diff --git a/python/pykde/sip/kio/kimageio.sip b/python/pykde/sip/kio/kimageio.sip deleted file mode 100644 index 879506f8..00000000 --- a/python/pykde/sip/kio/kimageio.sip +++ /dev/null @@ -1,59 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KImageIO -{ -%TypeHeaderCode -#include <kimageio.h> -%End - - -public: - - enum Mode - { - Reading, - Writing - }; - - static void registerFormats (); - static bool canWrite (const QString&); - static bool canRead (const QString&); - static QStringList types (KImageIO::Mode = Writing ); - static QString pattern (KImageIO::Mode = Reading ); - static QString suffix (const QString&); - -%If ( KDE_3_1_0 - ) - static QString typeForMime (const QString&); -%End - - static QString type (const QString&); - static QStringList mimeTypes (KImageIO::Mode = Writing ); - static bool isSupported (const QString&, KImageIO::Mode = Writing ); - static QString mimeType (const QString&); - -}; // class KImageIO - diff --git a/python/pykde/sip/kio/kio-kde310.diff b/python/pykde/sip/kio/kio-kde310.diff deleted file mode 100644 index 89a40fb8..00000000 --- a/python/pykde/sip/kio/kio-kde310.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include davjob.sip -+ %Include kar.sip -+ %Include kfileshare.sip -+ %Include kzip.sip -+ %Include metainfojob.sip diff --git a/python/pykde/sip/kio/kio-kde311.diff b/python/pykde/sip/kio/kio-kde311.diff deleted file mode 100644 index de04c4f2..00000000 --- a/python/pykde/sip/kio/kio-kde311.diff +++ /dev/null @@ -1,4 +0,0 @@ -+ %Include davjob.sip -+ %Include kar.sip -+ %Include kzip.sip -+ %Include metainfojob.sip diff --git a/python/pykde/sip/kio/kio-kde312.diff b/python/pykde/sip/kio/kio-kde312.diff deleted file mode 100644 index 89a40fb8..00000000 --- a/python/pykde/sip/kio/kio-kde312.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include davjob.sip -+ %Include kar.sip -+ %Include kfileshare.sip -+ %Include kzip.sip -+ %Include metainfojob.sip diff --git a/python/pykde/sip/kio/kio-kde313.diff b/python/pykde/sip/kio/kio-kde313.diff deleted file mode 100644 index 89a40fb8..00000000 --- a/python/pykde/sip/kio/kio-kde313.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include davjob.sip -+ %Include kar.sip -+ %Include kfileshare.sip -+ %Include kzip.sip -+ %Include metainfojob.sip diff --git a/python/pykde/sip/kio/kio-kde314.diff b/python/pykde/sip/kio/kio-kde314.diff deleted file mode 100644 index 89a40fb8..00000000 --- a/python/pykde/sip/kio/kio-kde314.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include davjob.sip -+ %Include kar.sip -+ %Include kfileshare.sip -+ %Include kzip.sip -+ %Include metainfojob.sip diff --git a/python/pykde/sip/kio/kio-kde315.diff b/python/pykde/sip/kio/kio-kde315.diff deleted file mode 100644 index 89a40fb8..00000000 --- a/python/pykde/sip/kio/kio-kde315.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include davjob.sip -+ %Include kar.sip -+ %Include kfileshare.sip -+ %Include kzip.sip -+ %Include metainfojob.sip diff --git a/python/pykde/sip/kio/kio-kde320.diff b/python/pykde/sip/kio/kio-kde320.diff deleted file mode 100644 index 51249444..00000000 --- a/python/pykde/sip/kio/kio-kde320.diff +++ /dev/null @@ -1,6 +0,0 @@ -+ %Include davjob.sip -+ %Include kar.sip -+ %Include kdcopservicestarter.sip -+ %Include kfileshare.sip -+ %Include kzip.sip -+ %Include metainfojob.sip diff --git a/python/pykde/sip/kio/kio-kde321.diff b/python/pykde/sip/kio/kio-kde321.diff deleted file mode 100644 index 51249444..00000000 --- a/python/pykde/sip/kio/kio-kde321.diff +++ /dev/null @@ -1,6 +0,0 @@ -+ %Include davjob.sip -+ %Include kar.sip -+ %Include kdcopservicestarter.sip -+ %Include kfileshare.sip -+ %Include kzip.sip -+ %Include metainfojob.sip diff --git a/python/pykde/sip/kio/kio-kde322.diff b/python/pykde/sip/kio/kio-kde322.diff deleted file mode 100644 index 51249444..00000000 --- a/python/pykde/sip/kio/kio-kde322.diff +++ /dev/null @@ -1,6 +0,0 @@ -+ %Include davjob.sip -+ %Include kar.sip -+ %Include kdcopservicestarter.sip -+ %Include kfileshare.sip -+ %Include kzip.sip -+ %Include metainfojob.sip diff --git a/python/pykde/sip/kio/kio-kde323.diff b/python/pykde/sip/kio/kio-kde323.diff deleted file mode 100644 index 51249444..00000000 --- a/python/pykde/sip/kio/kio-kde323.diff +++ /dev/null @@ -1,6 +0,0 @@ -+ %Include davjob.sip -+ %Include kar.sip -+ %Include kdcopservicestarter.sip -+ %Include kfileshare.sip -+ %Include kzip.sip -+ %Include metainfojob.sip diff --git a/python/pykde/sip/kio/kio-kde330.diff b/python/pykde/sip/kio/kio-kde330.diff deleted file mode 100644 index 901fbebe..00000000 --- a/python/pykde/sip/kio/kio-kde330.diff +++ /dev/null @@ -1,10 +0,0 @@ -+ %Include davjob.sip -+ %Include kar.sip -+ %Include kdcopservicestarter.sip -+ %Include kfileshare.sip -+ %Include kmimetypechooser.sip -+ %Include knfsshare.sip -+ %Include kremoteencoding.sip -+ %Include ksambashare.sip -+ %Include kzip.sip -+ %Include metainfojob.sip diff --git a/python/pykde/sip/kio/kio-kde331.diff b/python/pykde/sip/kio/kio-kde331.diff deleted file mode 100644 index 901fbebe..00000000 --- a/python/pykde/sip/kio/kio-kde331.diff +++ /dev/null @@ -1,10 +0,0 @@ -+ %Include davjob.sip -+ %Include kar.sip -+ %Include kdcopservicestarter.sip -+ %Include kfileshare.sip -+ %Include kmimetypechooser.sip -+ %Include knfsshare.sip -+ %Include kremoteencoding.sip -+ %Include ksambashare.sip -+ %Include kzip.sip -+ %Include metainfojob.sip diff --git a/python/pykde/sip/kio/kio-kde332.diff b/python/pykde/sip/kio/kio-kde332.diff deleted file mode 100644 index 901fbebe..00000000 --- a/python/pykde/sip/kio/kio-kde332.diff +++ /dev/null @@ -1,10 +0,0 @@ -+ %Include davjob.sip -+ %Include kar.sip -+ %Include kdcopservicestarter.sip -+ %Include kfileshare.sip -+ %Include kmimetypechooser.sip -+ %Include knfsshare.sip -+ %Include kremoteencoding.sip -+ %Include ksambashare.sip -+ %Include kzip.sip -+ %Include metainfojob.sip diff --git a/python/pykde/sip/kio/kio-kde340.diff b/python/pykde/sip/kio/kio-kde340.diff deleted file mode 100644 index 324b1d49..00000000 --- a/python/pykde/sip/kio/kio-kde340.diff +++ /dev/null @@ -1,11 +0,0 @@ -+ %Include davjob.sip -+ %Include forwardingslavebase.sip -+ %Include kar.sip -+ %Include kdcopservicestarter.sip -+ %Include kfileshare.sip -+ %Include kmimetypechooser.sip -+ %Include knfsshare.sip -+ %Include kremoteencoding.sip -+ %Include ksambashare.sip -+ %Include kzip.sip -+ %Include metainfojob.sip diff --git a/python/pykde/sip/kio/kio-kde341.diff b/python/pykde/sip/kio/kio-kde341.diff deleted file mode 100644 index 324b1d49..00000000 --- a/python/pykde/sip/kio/kio-kde341.diff +++ /dev/null @@ -1,11 +0,0 @@ -+ %Include davjob.sip -+ %Include forwardingslavebase.sip -+ %Include kar.sip -+ %Include kdcopservicestarter.sip -+ %Include kfileshare.sip -+ %Include kmimetypechooser.sip -+ %Include knfsshare.sip -+ %Include kremoteencoding.sip -+ %Include ksambashare.sip -+ %Include kzip.sip -+ %Include metainfojob.sip diff --git a/python/pykde/sip/kio/kio-kde342.diff b/python/pykde/sip/kio/kio-kde342.diff deleted file mode 100644 index 324b1d49..00000000 --- a/python/pykde/sip/kio/kio-kde342.diff +++ /dev/null @@ -1,11 +0,0 @@ -+ %Include davjob.sip -+ %Include forwardingslavebase.sip -+ %Include kar.sip -+ %Include kdcopservicestarter.sip -+ %Include kfileshare.sip -+ %Include kmimetypechooser.sip -+ %Include knfsshare.sip -+ %Include kremoteencoding.sip -+ %Include ksambashare.sip -+ %Include kzip.sip -+ %Include metainfojob.sip diff --git a/python/pykde/sip/kio/kio-kde343.diff b/python/pykde/sip/kio/kio-kde343.diff deleted file mode 100644 index 324b1d49..00000000 --- a/python/pykde/sip/kio/kio-kde343.diff +++ /dev/null @@ -1,11 +0,0 @@ -+ %Include davjob.sip -+ %Include forwardingslavebase.sip -+ %Include kar.sip -+ %Include kdcopservicestarter.sip -+ %Include kfileshare.sip -+ %Include kmimetypechooser.sip -+ %Include knfsshare.sip -+ %Include kremoteencoding.sip -+ %Include ksambashare.sip -+ %Include kzip.sip -+ %Include metainfojob.sip diff --git a/python/pykde/sip/kio/kio-kde350.diff b/python/pykde/sip/kio/kio-kde350.diff deleted file mode 100644 index 3d0cb015..00000000 --- a/python/pykde/sip/kio/kio-kde350.diff +++ /dev/null @@ -1,12 +0,0 @@ -+ %Include davjob.sip -+ %Include forwardingslavebase.sip -+ %Include kacl.sip -+ %Include kar.sip -+ %Include kdcopservicestarter.sip -+ %Include kfileshare.sip -+ %Include kmimetypechooser.sip -+ %Include knfsshare.sip -+ %Include kremoteencoding.sip -+ %Include ksambashare.sip -+ %Include kzip.sip -+ %Include metainfojob.sip diff --git a/python/pykde/sip/kio/kio-kde351.diff b/python/pykde/sip/kio/kio-kde351.diff deleted file mode 100644 index 3d0cb015..00000000 --- a/python/pykde/sip/kio/kio-kde351.diff +++ /dev/null @@ -1,12 +0,0 @@ -+ %Include davjob.sip -+ %Include forwardingslavebase.sip -+ %Include kacl.sip -+ %Include kar.sip -+ %Include kdcopservicestarter.sip -+ %Include kfileshare.sip -+ %Include kmimetypechooser.sip -+ %Include knfsshare.sip -+ %Include kremoteencoding.sip -+ %Include ksambashare.sip -+ %Include kzip.sip -+ %Include metainfojob.sip diff --git a/python/pykde/sip/kio/kio-kde352.diff b/python/pykde/sip/kio/kio-kde352.diff deleted file mode 100644 index 3d0cb015..00000000 --- a/python/pykde/sip/kio/kio-kde352.diff +++ /dev/null @@ -1,12 +0,0 @@ -+ %Include davjob.sip -+ %Include forwardingslavebase.sip -+ %Include kacl.sip -+ %Include kar.sip -+ %Include kdcopservicestarter.sip -+ %Include kfileshare.sip -+ %Include kmimetypechooser.sip -+ %Include knfsshare.sip -+ %Include kremoteencoding.sip -+ %Include ksambashare.sip -+ %Include kzip.sip -+ %Include metainfojob.sip diff --git a/python/pykde/sip/kio/kio-kde353.diff b/python/pykde/sip/kio/kio-kde353.diff deleted file mode 100644 index 3d0cb015..00000000 --- a/python/pykde/sip/kio/kio-kde353.diff +++ /dev/null @@ -1,12 +0,0 @@ -+ %Include davjob.sip -+ %Include forwardingslavebase.sip -+ %Include kacl.sip -+ %Include kar.sip -+ %Include kdcopservicestarter.sip -+ %Include kfileshare.sip -+ %Include kmimetypechooser.sip -+ %Include knfsshare.sip -+ %Include kremoteencoding.sip -+ %Include ksambashare.sip -+ %Include kzip.sip -+ %Include metainfojob.sip diff --git a/python/pykde/sip/kio/kiomod.sip b/python/pykde/sip/kio/kiomod.sip deleted file mode 100644 index 369a45dd..00000000 --- a/python/pykde/sip/kio/kiomod.sip +++ /dev/null @@ -1,107 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE_3_5_2 - -%Copying - - This software is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License as - published by the Free Software Foundation; either version 2 of - the License, or (at your option) any later version. - - This software is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public - License along with this library; see the file COPYING. - If not, write to the Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -%End - -%Module kio - -%Import qt/qtmod.sip -%Import qtxml/qtxmlmod.sip -%Import dcopmod.sip -%Import kdecoremod.sip -%Import kdefxmod.sip -%Import kdeuimod.sip - -%Include authinfo.sip -%Include chmodjob.sip -%Include connection.sip -%Include defaultprogress.sip -%Include global.sip -%Include job.sip -%Include jobclasses.sip -%Include karchive.sip -%Include kautomount.sip -%Include kdatatool.sip -%Include kdirlister.sip -%Include kdirnotify.sip -%Include kdirwatch.sip -%Include kemailsettings.sip -%Include kfilefilter.sip -%Include kfileitem.sip -%Include kfilemetainfo.sip -%Include kfilterbase.sip -%Include kfilterdev.sip -%Include kimageio.sip -%Include kmimemagic.sip -%Include kmimetype.sip -%Include kprotocolinfo.sip -%Include kprotocolmanager.sip -%Include krun.sip -%Include kscan.sip -%Include kservice.sip -%Include kservicegroup.sip -%Include kservicetype.sip -%Include kshellcompletion.sip -%Include kshred.sip -%Include ksycoca.sip -%Include ksycocaentry.sip -%Include ksycocafactory.sip -%Include ksycocatype.sip -%Include ktar.sip -%Include ktrader.sip -%Include kurifilter.sip -%Include kurlcompletion.sip -%Include kurlpixmapprovider.sip -%Include kuserprofile.sip -%Include netaccess.sip -%Include observer.sip -%Include passdlg.sip -%Include paste.sip -%Include previewjob.sip -%Include progressbase.sip -%Include renamedlg.sip -%Include renamedlgplugin.sip -%Include scheduler.sip -%Include sessiondata.sip -%Include skipdlg.sip -%Include slave.sip -%Include slavebase.sip -%Include slaveconfig.sip -%Include slaveinterface.sip -%Include statusbarprogress.sip -%Include tcpslavebase.sip -%Include thumbcreator.sip -%Include davjob.sip -%Include forwardingslavebase.sip -%Include kar.sip -%Include kdcopservicestarter.sip -%Include kfileshare.sip -%Include kmimetypechooser.sip -%Include knfsshare.sip -%Include kremoteencoding.sip -%Include ksambashare.sip -%Include kzip.sip -%Include metainfojob.sip diff --git a/python/pykde/sip/kio/kiomod.sip.in b/python/pykde/sip/kio/kiomod.sip.in deleted file mode 100644 index 84984ed5..00000000 --- a/python/pykde/sip/kio/kiomod.sip.in +++ /dev/null @@ -1,97 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE_3_5_2 - -%Copying - - This software is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License as - published by the Free Software Foundation; either version 2 of - the License, or (at your option) any later version. - - This software is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public - License along with this library; see the file COPYING. - If not, write to the Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -%End - -%Module kio - -%Import qt/qtmod.sip -%Import qtxml/qtxmlmod.sip -%Import dcopmod.sip -%Import kdecoremod.sip -%Import kdefxmod.sip -%Import kdeuimod.sip - -%Include authinfo.sip -%Include chmodjob.sip -%Include connection.sip -%Include defaultprogress.sip -%Include global.sip -%Include job.sip -%Include jobclasses.sip -%Include karchive.sip -%Include kautomount.sip -%Include kdatatool.sip -%Include kdirlister.sip -%Include kdirnotify.sip -%Include kdirwatch.sip -%Include kemailsettings.sip -%Include kfilefilter.sip -%Include kfileitem.sip -%Include kfilemetainfo.sip -%Include kfilterbase.sip -%Include kfilterdev.sip -%Include kimageio.sip -%Include kmimemagic.sip -%Include kmimetype.sip -%Include kprotocolinfo.sip -%Include kprotocolmanager.sip -%Include krun.sip -%Include kscan.sip -%Include kservice.sip -%Include kservicegroup.sip -%Include kservicetype.sip -%Include kshellcompletion.sip -%Include kshred.sip -%Include ksycoca.sip -%Include ksycocaentry.sip -%Include ksycocafactory.sip -%Include ksycocatype.sip -%Include ktar.sip -%Include ktrader.sip -%Include kurifilter.sip -%Include kurlcompletion.sip -%Include kurlpixmapprovider.sip -%Include kuserprofile.sip -%Include netaccess.sip -%Include observer.sip -%Include passdlg.sip -%Include paste.sip -%Include previewjob.sip -%Include progressbase.sip -%Include renamedlg.sip -%Include renamedlgplugin.sip -%Include scheduler.sip -%Include sessiondata.sip -%Include skipdlg.sip -%Include slave.sip -%Include slavebase.sip -%Include slaveconfig.sip -%Include slaveinterface.sip -%Include statusbarprogress.sip -%Include tcpslavebase.sip -%Include thumbcreator.sip -@mark@ diff --git a/python/pykde/sip/kio/kmimemagic.sip b/python/pykde/sip/kio/kmimemagic.sip deleted file mode 100644 index 0dc31c61..00000000 --- a/python/pykde/sip/kio/kmimemagic.sip +++ /dev/null @@ -1,74 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KMimeMagicResult -{ -%TypeHeaderCode -#include <kmimemagic.h> -%End - - -public: - KMimeMagicResult (); - const QString mimeType (); - int accuracy (); - bool isValid (); - void setMimeType (const QString&); - void setAccuracy (int); - void setInvalid (); - -protected: - -}; // class KMimeMagicResult - - -class KMimeMagic -{ -%TypeHeaderCode -#include <kmimemagic.h> -%End - - -public: - -%If ( KDE_3_1_0 - ) - KMimeMagic (); -%End - - KMimeMagic (const QString&); - bool mergeConfig (const QString&); - bool mergeBufConfig (char*); - void setFollowLinks (bool); - KMimeMagicResult* findFileType (const QString&); - KMimeMagicResult* findBufferType (const QByteArray&); - KMimeMagicResult* findBufferFileType (const QByteArray&, const QString&); - static KMimeMagic* self (); - -protected: - static void initStatic (); - -}; // class KMimeMagic - diff --git a/python/pykde/sip/kio/kmimetype.sip b/python/pykde/sip/kio/kmimetype.sip deleted file mode 100644 index 99b13d2f..00000000 --- a/python/pykde/sip/kio/kmimetype.sip +++ /dev/null @@ -1,432 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KMimeType : KServiceType -{ -%TypeHeaderCode -#include <kmimetype.h> -%End - - -public: - - typedef KSharedPtr<KMimeType> Ptr; - typedef QValueList<KMimeType::Ptr> List; - -public: - KMimeType (const QString&, const QString&, const QString&, const QString&, const QStringList&); - KMimeType (const QString&); - KMimeType (KDesktopFile*); - KMimeType (QDataStream&, int); - virtual QString icon (const QString&, bool) const; - virtual QString icon (const KURL&, bool) const; - virtual QPixmap pixmap (KIcon::Group, int = 0, int = 0, QString* = 0) const; - virtual QPixmap pixmap (const KURL&, KIcon::Group, int = 0, int = 0, QString* = 0) const; - static QPixmap pixmapForURL (const KURL&, mode_t = 0, KIcon::Group = KIcon ::Desktop , int = 0, int = 0, QString* = 0); - static QString iconForURL (const KURL&, mode_t = 0); - static QString favIconForURL (const KURL&); - QString comment () const; - virtual QString comment (const QString&, bool) const; - virtual QString comment (const KURL&, bool) const; - const QStringList& patterns () const; - virtual void load (QDataStream&); - virtual void save (QDataStream&); - virtual QVariant property (const QString&) const; - virtual QStringList propertyNames () const; - static KMimeType::Ptr mimeType (const QString&); - static KMimeType::Ptr findByURL (const KURL&, mode_t = 0, bool = 0, bool = 0); - -%If ( KDE_3_2_0 - ) - static KMimeType::Ptr findByURL (const KURL&, mode_t, bool, bool, bool*); -%End - - static KMimeType::Ptr findByPath (const QString&, mode_t = 0, bool = 0); - static KMimeType::Ptr findByContent (const QByteArray&, int* = 0); - static KMimeType::Ptr findByFileContent (const QString&, int* = 0); - -%If ( KDE_3_2_1 - ) - - class Format - { - - public: - bool text; - - enum - { - NoCompression, - GZipCompression - }; - -//ig int compression; - int dummy; - - }; // class Format - - -public: -%End - - -%If ( KDE_3_2_0 - ) -//ig static KMimeType::Format findFormatByFileContent (const QString&); -%End - - static KMimeType::List allMimeTypes (); - static const QString& defaultMimeType (); - -%If ( KDE_3_2_0 - ) - static KMimeType::Ptr defaultMimeTypePtr (); - QString parentMimeType () const; - bool is (const QString&) const; - static KMimeType::Ptr diagnoseFileName (const QString&, QString&); -%End - - -protected: - void loadInternal (QDataStream&); - void init (KDesktopFile*); - static void errorMissingMimeType (const QString&); - static void buildDefaultType (); - static void checkEssentialMimeTypes (); - -protected: - -%If ( KDE_3_2_0 - ) - int patternsAccuracy () const; -%End - - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KMimeType - - -class KFolderType : KMimeType -{ -%TypeHeaderCode -#include <kmimetype.h> -%End - - -public: - KFolderType (KDesktopFile*); - KFolderType (QDataStream&, int); - virtual QString icon (const QString&, bool) const; - virtual QString icon (const KURL&, bool) const; - virtual QString comment (const QString&, bool) const; - virtual QString comment (const KURL&, bool) const; - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KFolderType - - -class KDEDesktopMimeType : KMimeType -{ -%TypeHeaderCode -#include <kmimetype.h> -%End - - -public: - - enum ServiceType - { - ST_MOUNT, - ST_UNMOUNT, - ST_USER_DEFINED - }; - - - class Service - { - - public: - Service (); - -%If ( KDE_3_2_0 - ) - bool isEmpty () const; -%End - - QString m_strName; - QString m_strIcon; - QString m_strExec; - KDEDesktopMimeType::ServiceType m_type; - bool m_display; - - }; // class Service - - -public: - KDEDesktopMimeType (KDesktopFile*); - KDEDesktopMimeType (QDataStream&, int); - virtual QString icon (const QString&, bool) const; - virtual QString icon (const KURL&, bool) const; - virtual QPixmap pixmap (const KURL&, KIcon::Group, int = 0, int = 0, QString* = 0) const; - virtual QString comment (const QString&, bool) const; - virtual QString comment (const KURL&, bool) const; - static QValueList<KDEDesktopMimeType::Service> builtinServices (const KURL&); - static QValueList<KDEDesktopMimeType::Service> userDefinedServices (const QString&, bool); - -%If ( KDE_3_4_0 - ) - static QValueList<KDEDesktopMimeType::Service> userDefinedServices (const QString&, KConfig&, bool); - -%If ( KDE_3_5_0 - ) - static QValueList<KDEDesktopMimeType::Service> userDefinedServices (const QString&, KConfig&, bool, const KURL::List&); -%End - -%End - - static void executeService (const QString&, KDEDesktopMimeType::Service&); - static void executeService (const KURL::List&, KDEDesktopMimeType::Service&); - static pid_t run (const KURL&, bool); - -protected: - virtual QPixmap pixmap (KIcon::Group, int, int, QString*) const; - static pid_t runFSDevice (const KURL&, const KSimpleConfig&); - static pid_t runApplication (const KURL&, const QString&); - static pid_t runLink (const KURL&, const KSimpleConfig&); - static pid_t runMimeType (const KURL&, const KSimpleConfig&); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KDEDesktopMimeType - - -class KExecMimeType : KMimeType -{ -%TypeHeaderCode -#include <kmimetype.h> -%End - - -public: - KExecMimeType (KDesktopFile*); - KExecMimeType (QDataStream&, int); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KExecMimeType - - - -%MappedType KMimeType::Ptr -//converts KMimeType -{ -%TypeHeaderCode -#include <ksharedptr.h> -#include <kmimetype.h> -#include <sipkioKMimeType.h> -%End - -%ConvertFromTypeCode - // Convert to a Python instance - - if (!sipCpp) - return NULL; - - KSharedPtr<KMimeType> *cPtr = (KSharedPtr<KMimeType> *)sipCpp; - KMimeType *cpp = new KMimeType (*cPtr->data ()); - PyObject *obj = sipConvertFromInstance (cpp, sipClass_KMimeType, sipTransferObj); - - return obj; -%End - -%ConvertToTypeCode - // Convert a Python instance to a Ptr on the heap. - - if (sipIsErr == NULL) - return PyInstance_Check(sipPy); - - int iserr = 0; - KMimeType *cpp = (KMimeType *)sipForceConvertTo_KMimeType (sipPy, &iserr); - - if (iserr) - { - *sipIsErr = 1; - return 0; - } - - *sipCppPtr = new KSharedPtr<KMimeType> (cpp); - - return 1; -%End -}; - - -%MappedType QValueList<KDEDesktopMimeType::Service> -//converts a Python list of KDEDesktopMimeType.Service -{ -%TypeHeaderCode -#include <qvaluelist.h> -#include <sipkioKDEDesktopMimeType.h> -#include <sipkioKDEDesktopMimeTypeService.h> -#include <kmimetype.h> -%End - -%ConvertFromTypeCode - if (!sipCpp) - return PyList_New(0); - - // Create the list - PyObject *pylist; - if ((pylist = PyList_New(0)) == NULL) - return NULL; - - QValueList<KDEDesktopMimeType::Service> *cpplist = (QValueList<KDEDesktopMimeType::Service> *)sipCpp; - PyObject *inst; - - // Get it. - QValueList<KDEDesktopMimeType::Service>::Iterator it; - for( it = cpplist->begin(); it != cpplist->end(); ++it ) - { - if (((inst = sipBuildResult (NULL, "N", new KDEDesktopMimeType::Service (*it), sipClass_KDEDesktopMimeType_Service)) == NULL) - || PyList_Append (pylist, inst) < 0) - { - Py_DECREF (pylist); - return NULL; - } - } - - return pylist; -%End - - -%ConvertToTypeCode - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - QValueList<KDEDesktopMimeType::Service> *cpplist = new QValueList<KDEDesktopMimeType::Service>; - - PyObject *elem; - KDEDesktopMimeType::Service *cpp; - int iserr = 0; - - for (int i = 0; i < PyList_Size (sipPy); i++) - { - elem = PyList_GET_ITEM (sipPy, i); - cpp = (KDEDesktopMimeType::Service *)sipForceConvertTo_KDEDesktopMimeType_Service (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (*cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - - -%MappedType QValueList<KMimeType::Ptr> -//converts a Python list of KMimeType -{ -%TypeHeaderCode -#include <kmimetype.h> -#include <sipkioKMimeType.h> -%End - -%ConvertFromTypeCode - // Convert to a Python list of Ptr (KMimeType). - - if (!sipCpp) - return PyList_New (0); - - PyObject *plist; - - // Create the list - - if ((plist = PyList_New(0)) == NULL) - return NULL; - - // Get it. - - QValueList<KMimeType::Ptr> *cList = (QValueList<KMimeType::Ptr> *)sipCpp; - PyObject *inst; - KMimeType *svc; - - QValueList<KMimeType::Ptr>::Iterator it; - for( it = cList->begin(); it != cList->end(); ++it ) - { - svc = new KMimeType (*(KMimeType *)((KMimeType::Ptr)(*it)).data ()); - inst = sipBuildResult (NULL, "N", svc, sipClass_KMimeType); - if ((inst == NULL) || (PyList_Append (plist, inst) < 0)) - { - Py_XDECREF (inst); - Py_DECREF (plist); - return NULL; - } - } - - return plist; -%End - -%ConvertToTypeCode - // Convert a Python list to List on the heap. - - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - QValueList<KMimeType::Ptr> *cList = new QValueList<KMimeType::Ptr>; - PyObject *elem; - KMimeType *service; - int iserr = 0; - - for (int i = 0; i < PyList_Size (sipPy); i++) - { - elem = PyList_GET_ITEM (sipPy, i); - service = (KMimeType *)sipForceConvertTo_KMimeType (elem, &iserr); - - KMimeType::Ptr *ptr = new KMimeType::Ptr (service); - - if (iserr) - { - *sipIsErr = 1; - delete cList; - return 0; - } - - cList->append (*ptr); - } - - *sipCppPtr = cList; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kio/kmimetypechooser.sip b/python/pykde/sip/kio/kmimetypechooser.sip deleted file mode 100644 index b0a89870..00000000 --- a/python/pykde/sip/kio/kmimetypechooser.sip +++ /dev/null @@ -1,74 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_3_0 - ) - -class KMimeTypeChooser : QVBox -{ -%TypeHeaderCode -#include <kmimetypechooser.h> -%End - - -public: - - enum Visuals - { - Comments, - Patterns, - EditButton - }; - - KMimeTypeChooser (const QString& = QString ::null , const QStringList& = 0, const QString& = QString ::null , const QStringList& = QStringList (), int = Comments |Patterns |EditButton , QWidget* /TransferThis/ = 0, const char* = 0); - QStringList mimeTypes () const; - QStringList patterns () const; - -public slots: - void editMimeType (); - -}; // class KMimeTypeChooser - -%End - - -%If ( KDE_3_3_0 - ) - -class KMimeTypeChooserDialog : KDialogBase -{ -%TypeHeaderCode -#include <kmimetypechooser.h> -%End - - -public: - KMimeTypeChooserDialog (const QString& = QString ::null , const QString& = QString ::null , const QStringList& = QStringList (), const QString& = QString ::null , const QStringList& = QStringList (), int = KMimeTypeChooser ::Comments |KMimeTypeChooser ::Patterns |KMimeTypeChooser ::EditButton , QWidget* /TransferThis/ = 0, const char* = 0); - KMimeTypeChooserDialog (const QString&, const QString&, const QStringList&, const QString&, QWidget* /TransferThis/ = 0, const char* = 0); - KMimeTypeChooser* chooser (); - -}; // class KMimeTypeChooserDialog - -%End - diff --git a/python/pykde/sip/kio/knfsshare.sip b/python/pykde/sip/kio/knfsshare.sip deleted file mode 100644 index 6f36f021..00000000 --- a/python/pykde/sip/kio/knfsshare.sip +++ /dev/null @@ -1,51 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_3_0 - ) - -class KNFSShare : QObject -{ -%TypeHeaderCode -#include <knfsshare.h> -%End - - -public: - static KNFSShare* instance (); - bool isDirectoryShared (const QString&) const; - QStringList sharedDirectories () const; - QString exportsPath () const; - -signals: - void changed (); - -private: - KNFSShare (); - -}; // class KNFSShare - -%End - diff --git a/python/pykde/sip/kio/kpac.sip b/python/pykde/sip/kio/kpac.sip deleted file mode 100644 index 75605146..00000000 --- a/python/pykde/sip/kio/kpac.sip +++ /dev/null @@ -1,44 +0,0 @@ -// -// Copyright 2003 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE_3_1_4 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KPAC -{ -%TypeHeaderCode -#include <kpac.h> -%End - - -public: - virtual QString proxyForURL (const KURL&) = 0; - virtual bool init (const KURL&) = 0; - virtual bool discover () = 0; - virtual void badProxy (const QString&) = 0; - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KPAC - diff --git a/python/pykde/sip/kio/kprotocolinfo.sip b/python/pykde/sip/kio/kprotocolinfo.sip deleted file mode 100644 index 738cb862..00000000 --- a/python/pykde/sip/kio/kprotocolinfo.sip +++ /dev/null @@ -1,288 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KProtocolInfo : KSycocaEntry -{ -%TypeHeaderCode -#include <kprotocolinfo.h> -%End - - -public: - typedef KSharedPtr<KProtocolInfo> Ptr; - -public: - KProtocolInfo (const QString&); - virtual bool isValid () const; - virtual QString name () const; - static QStringList protocols (); - static bool isKnownProtocol (const KURL&); - static bool isKnownProtocol (const QString&); - static QString exec (const QString&) /PyName=exec_/; - - enum Type - { - T_STREAM, - T_FILESYSTEM, - T_NONE, - T_ERROR - }; - - static KProtocolInfo::Type inputType (const KURL&); - static KProtocolInfo::Type outputType (const KURL&); - static QStringList listing (const KURL&); - -%If ( KDE_3_2_0 - ) - - class ExtraField - { - - public: - ExtraField (); - ExtraField (const QString&, const QString&); - QString name; - QString type; - - }; // class ExtraField - - -public: -%End - - -%If ( KDE_3_2_0 - ) - typedef QValueList<KProtocolInfo::ExtraField> ExtraFieldList; - static KProtocolInfo::ExtraFieldList extraFields (const KURL&); -%End - - static bool isSourceProtocol (const KURL&); - static bool isHelperProtocol (const KURL&); - static bool isHelperProtocol (const QString&); - static bool isFilterProtocol (const KURL&); - static bool isFilterProtocol (const QString&); - static bool supportsListing (const KURL&); - static bool supportsReading (const KURL&); - static bool supportsWriting (const KURL&); - static bool supportsMakeDir (const KURL&); - static bool supportsDeleting (const KURL&); - static bool supportsLinking (const KURL&); - static bool supportsMoving (const KURL&); - static bool canCopyFromFile (const KURL&); - static bool canCopyToFile (const KURL&); - -%If ( KDE_3_4_0 - ) - static bool canRenameFromFile (const KURL&); - static bool canRenameToFile (const KURL&); - static bool canDeleteRecursive (const KURL&); - - enum FileNameUsedForCopying - { - Name, - FromURL - }; - - static KProtocolInfo::FileNameUsedForCopying fileNameUsedForCopying (const KURL&); -%End - - static QString defaultMimetype (const KURL&); - static QString icon (const QString&); - static QString config (const QString&); - static int maxSlaves (const QString&); - static bool determineMimetypeFromExtension (const QString&); - -%If ( KDE_3_2_0 - ) - static QString docPath (const QString&); - static QString protocolClass (const QString&); - static bool showFilePreview (const QString&); - static KURL::URIMode uriParseMode (const QString&); - -%If ( KDE_3_3_0 - ) - static QStringList capabilities (const QString&); - static QString proxiedBy (const QString&); -%End - -%End - - -public: - KProtocolInfo (QDataStream&, int); - virtual void load (QDataStream&); - virtual void save (QDataStream&); - static Type inputType (const QString&); - static Type outputType (const QString&); - static QStringList listing (const QString&); - static bool isSourceProtocol (const QString&); - static bool supportsListing (const QString&); - static bool supportsReading (const QString&); - static bool supportsWriting (const QString&); - static bool supportsMakeDir (const QString&); - static bool supportsDeleting (const QString&); - static bool supportsLinking (const QString&); - static bool supportsMoving (const QString&); - static bool canCopyFromFile (const QString&); - static bool canCopyToFile (const QString&); - static QString defaultMimetype (const QString&); - -protected: - -%If ( KDE_3_5_1 - ) - bool canRenameFromFile () const; - bool canRenameToFile () const; - bool canDeleteRecursive () const; - KProtocolInfo::FileNameUsedForCopying fileNameUsedForCopying () const; -%End - - -%If ( KDE_3_4_0 - ) - static KProtocolInfo* findProtocol (const KURL&); -%End - - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KProtocolInfo - - -%If ( KDE_3_2_0 - ) -//igx QDataStream& operator >> (QDataStream&, KProtocolInfo::ExtraField&); -//igx QDataStream& operator << (QDataStream&, const KProtocolInfo::ExtraField&); -%End - - -%MappedType KProtocolInfo::Ptr -//converts KProtocolInfo -{ -%TypeHeaderCode -#include <ksharedptr.h> -#include <kprotocolinfo.h> -#include <sipkioKProtocolInfo.h> -%End - -%ConvertFromTypeCode - // Convert to a Python instance - - if (!sipCpp) - return NULL; - - KSharedPtr<KProtocolInfo> *cPtr = new KSharedPtr<KProtocolInfo>(*(KSharedPtr<KProtocolInfo> *)sipCpp); - KProtocolInfo *cpp = cPtr->data (); - PyObject *obj = sipConvertFromInstance (cpp, sipClass_KProtocolInfo, sipTransferObj); - - return obj; -%End - -%ConvertToTypeCode - // Convert a Python instance to a Ptr on the heap. - - if (sipIsErr == NULL) - return PyInstance_Check(sipPy); - - int iserr = 0; - KProtocolInfo *cpp = (KProtocolInfo *)sipForceConvertTo_KProtocolInfo (sipPy, &iserr); - - if (iserr) - { - *sipIsErr = 1; - return 0; - } - - *sipCppPtr = new KSharedPtr<KProtocolInfo> (cpp); - - return 1; -%End -}; - - -%If (KDE_3_2_0 - ) -%MappedType QValueList<KProtocolInfo::ExtraField> -//converts a Python list of KProtocolInfo::ExtraField -{ -%TypeHeaderCode -#include <qvaluelist.h> -%End - -%ConvertFromTypeCode - if (!sipCpp) - return PyList_New(0); - - // Create the list - PyObject *pylist; - if ((pylist = PyList_New(0)) == NULL) - return NULL; - - QValueList<KProtocolInfo::ExtraField> *cpplist = (QValueList<KProtocolInfo::ExtraField> *)sipCpp; - PyObject *inst; - - // Get it. - QValueList<KProtocolInfo::ExtraField>::Iterator it; - for( it = cpplist->begin(); it != cpplist->end(); ++it ) - { - if (((inst = sipBuildResult (NULL, "N", new KProtocolInfo::ExtraField (*it), sipClass_KProtocolInfo_ExtraField)) == NULL) - || PyList_Append (pylist, inst) < 0) - { - Py_DECREF (pylist); - return NULL; - } - } - - return pylist; -%End - - -%ConvertToTypeCode - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - QValueList<KProtocolInfo::ExtraField> *cpplist = new QValueList<KProtocolInfo::ExtraField>; - - PyObject *elem; - KProtocolInfo::ExtraField *cpp; - int iserr = 0; - - for (int i = 0; i < PyList_Size (sipPy); i++) - { - elem = PyList_GET_ITEM (sipPy, i); - cpp = (KProtocolInfo::ExtraField *)sipForceConvertTo_KProtocolInfo_ExtraField (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (*cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; -%End - - diff --git a/python/pykde/sip/kio/kprotocolmanager.sip b/python/pykde/sip/kio/kprotocolmanager.sip deleted file mode 100644 index ba1da677..00000000 --- a/python/pykde/sip/kio/kprotocolmanager.sip +++ /dev/null @@ -1,99 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KProtocolManager -{ -%TypeHeaderCode -#include <kprotocolmanager.h> -%End - - -public: - static QString defaultUserAgent (); - static QString defaultUserAgent (const QString&); - static QString userAgentForHost (const QString&); - static int readTimeout (); - static int connectTimeout (); - static int proxyConnectTimeout (); - static int responseTimeout (); - static bool useProxy (); - static bool useReverseProxy (); - - enum ProxyType - { - NoProxy, - ManualProxy, - PACProxy, - WPADProxy, - EnvVarProxy - }; - - static KProtocolManager::ProxyType proxyType (); - - enum ProxyAuthMode - { - Prompt, - Automatic - }; - - static KProtocolManager::ProxyAuthMode proxyAuthMode (); - static QString noProxyFor (); - -%If ( KDE_3_5_1 - ) - static QString noProxyForRaw (); -%End - - static QString proxyFor (const QString&); - static QString proxyForURL (const KURL&); - static void badProxy (const QString&); - static QString proxyConfigScript (); - static bool useCache (); - static int maxCacheAge (); - static int maxCacheSize (); - static QString cacheDir (); - static KIO::CacheControl cacheControl (); - static bool autoResume (); - static bool markPartial (); - static int minimumKeepSize (); - -%If ( KDE_3_1_0 - ) - static bool persistentProxyConnection (); -%End - - static bool persistentConnections (); - static void reparseConfiguration (); - static QString slaveProtocol (const KURL&, QString&); - static KConfig* config (); - -public: - -%If ( - KDE_3_2_0 ) -//ig static int defaultConnectTimeout (); -%End - - -}; // class KProtocolManager - diff --git a/python/pykde/sip/kio/kremoteencoding.sip b/python/pykde/sip/kio/kremoteencoding.sip deleted file mode 100644 index 92a7f9c3..00000000 --- a/python/pykde/sip/kio/kremoteencoding.sip +++ /dev/null @@ -1,60 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_3_0 - ) - -class KRemoteEncoding -{ -%TypeHeaderCode -#include <kremoteencoding.h> -%End - - -public: - KRemoteEncoding (const char* = 0); - QString decode (const QCString&) const; - QCString encode (const QString&) const; - QCString encode (const KURL&) const; - QCString directory (const KURL&, bool = 1) const; - QCString fileName (const KURL&) const; - const char* encoding () const; - -%If ( KDE_3_5_0 - ) - int encodingMib () const; -%End - - void setEncoding (const char*); - -protected: - virtual void virtual_hook (int, void*); - -private: - KRemoteEncoding (const KRemoteEncoding&); - -}; // class KRemoteEncoding - -%End - diff --git a/python/pykde/sip/kio/krun.sip b/python/pykde/sip/kio/krun.sip deleted file mode 100644 index ba4791ab..00000000 --- a/python/pykde/sip/kio/krun.sip +++ /dev/null @@ -1,206 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KRun : QObject -{ -%TypeHeaderCode -#include <krun.h> -%End - - -public: - KRun (const KURL&, mode_t = 0, bool = 0, bool = 1); - -%If ( KDE_3_2_0 - ) - KRun (const KURL&, QWidget*, mode_t = 0, bool = 0, bool = 1); -%End - - void abort (); - bool hasError () const; - bool hasFinished () const; - bool autoDelete () const; - void setAutoDelete (bool); - void setPreferredService (const QString&); - -%If ( KDE_3_2_0 - ) - void setRunExecutables (bool); - -%If ( KDE_3_4_0 - ) - void setEnableExternalBrowser (bool); - -%If ( KDE_3_5_3 - ) - void setSuggestedFileName (const QString&); -%End - - -%If ( KDE_3_5_2 - ) - static pid_t run (const KService&, const KURL::List&, QWidget*, bool = 0); -%End - -%End - -%End - - -%If ( KDE_3_1_0 - ) - static pid_t run (const KService&, const KURL::List&, bool); -%End - - static pid_t run (const KService&, const KURL::List&); - -%If ( KDE_3_5_3 - ) - static pid_t run (const KService&, const KURL::List&, QWidget*, bool, const QString&); -%End - - static pid_t run (const QString&, const KURL::List&, const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null ); - -%If ( KDE_3_2_0 - ) - static pid_t runURL (const KURL&, const QString&, bool, bool); -%End - - -%If ( KDE_3_1_0 - ) - static pid_t runURL (const KURL&, const QString&, bool); -%End - - static pid_t runURL (const KURL&, const QString&); - -%If ( KDE_3_5_3 - ) - static pid_t runURL (const KURL&, const QString&, bool, bool, const QString&); -%End - - static pid_t runCommand (QString); - static pid_t runCommand (const QString&, const QString&, const QString&); - -%If ( KDE_3_1_0 - ) - static bool displayOpenWithDialog (const KURL::List&, bool); -%End - - static bool displayOpenWithDialog (const KURL::List&); - -%If ( KDE_3_5_3 - ) - static bool displayOpenWithDialog (const KURL::List&, bool, const QString&); -%End - - static void shellQuote (QString&); - -%If ( KDE_3_1_0 - ) - static QStringList processDesktopExec (const KService&, const KURL::List&, bool, bool); -%End - - static QStringList processDesktopExec (const KService&, const KURL::List&, bool); - -%If ( KDE_3_5_3 - ) - static QStringList processDesktopExec (const KService&, const KURL::List&, bool, bool, const QString&); -%End - - -%If ( KDE_3_1_0 - ) - static QString binaryName (const QString&, bool); - -%If ( KDE_3_2_0 - ) - static bool isExecutable (const QString&); - -%If ( KDE_3_3_0 - ) - static bool isExecutableFile (const KURL&, const QString&); - -%If ( KDE_3_4_0 - ) - static bool checkStartupNotify (const QString&, const KService*, bool*, QCString*); -%End - -%End - -%End - -%End - - -signals: - void finished (); - void error (); - -protected slots: - void slotTimeout (); - void slotScanFinished (KIO::Job*); - void slotScanMimeType (KIO::Job*, const QString&); - virtual void slotStatResult (KIO::Job*); - -protected: - virtual void init (); - virtual void scanFile (); - virtual void foundMimeType (const QString&); - virtual void killJob (); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KRun - - -class KOpenWithHandler -{ -%TypeHeaderCode -#include <krun.h> -%End - - -public: - KOpenWithHandler (); - static bool exists (); - -}; // class KOpenWithHandler - - -class KProcessRunner : QObject -{ -%TypeHeaderCode -#include <krun.h> -%End - - -public: - static pid_t run (KProcess*, const QString&); - -%If ( KDE_3_1_4 - ) - static pid_t run (KProcess*, const QString&, const KStartupInfoId&); -%End - - pid_t pid () const; - -protected slots: - void slotProcessExited (KProcess*); - -private: - KProcessRunner (KProcess*, const QString&); - -%If ( KDE_3_1_4 - ) - KProcessRunner (KProcess*, const QString&, const KStartupInfoId&); -%End - - KProcessRunner (); - -}; // class KProcessRunner - diff --git a/python/pykde/sip/kio/ksambashare.sip b/python/pykde/sip/kio/ksambashare.sip deleted file mode 100644 index 3e57eea4..00000000 --- a/python/pykde/sip/kio/ksambashare.sip +++ /dev/null @@ -1,51 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_3_0 - ) - -class KSambaShare : QObject -{ -%TypeHeaderCode -#include <ksambashare.h> -%End - - -public: - static KSambaShare* instance (); - bool isDirectoryShared (const QString&) const; - QStringList sharedDirectories () const; - QString smbConfPath () const; - -signals: - void changed (); - -private: - KSambaShare (); - -}; // class KSambaShare - -%End - diff --git a/python/pykde/sip/kio/kscan.sip b/python/pykde/sip/kio/kscan.sip deleted file mode 100644 index e6159e23..00000000 --- a/python/pykde/sip/kio/kscan.sip +++ /dev/null @@ -1,120 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KScanDialog : KDialogBase -{ -%TypeHeaderCode -#include <kscan.h> -%End - - -public: - static KScanDialog* getScanDialog (QWidget* /Transfer/ = 0, const char* = 0, bool = 0); - virtual bool setup (); - -protected: - KScanDialog (int = Tabbed , int = Close |Help , QWidget* /TransferThis/ = 0, const char* = 0, bool = 0); - int id () const; - int nextId (); - -signals: - void preview (const QImage&, int); - void finalImage (const QImage&, int); - void textRecognized (const QString&, int); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KScanDialog - - -class KScanDialogFactory : KLibFactory -{ -%TypeHeaderCode -#include <kscan.h> -%End - - -public: - virtual KScanDialog* createDialog (QWidget* /Transfer/ = 0, const char* = 0, bool = 0) = 0; - -protected: - KScanDialogFactory (QObject* /TransferThis/ = 0, const char* = 0); - virtual QObject* createObject (QObject* /Transfer/ = 0, const char* = 0, const char* = "QObject", const QStringList& = QStringList ()); - void setName (const QCString&); - KInstance* instance () const; - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KScanDialogFactory - - -class KOCRDialog : KDialogBase -{ -%TypeHeaderCode -#include <kscan.h> -%End - - -public: - static KOCRDialog* getOCRDialog (QWidget* /Transfer/ = 0, const char* = 0, bool = 0); - -protected: - KOCRDialog (int = Tabbed , int = Close |Help , QWidget* /TransferThis/ = 0, const char* = 0, bool = 0); - int id () const; - int nextId (); - -signals: - void textRecognized (const QString&, int); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KOCRDialog - - -class KOCRDialogFactory : KLibFactory -{ -%TypeHeaderCode -#include <kscan.h> -%End - - -public: - virtual KOCRDialog* createDialog (QWidget* /Transfer/ = 0, const char* = 0, bool = 0) = 0; - -protected: - KOCRDialogFactory (QObject* /TransferThis/ = 0, const char* = 0); - virtual QObject* createObject (QObject* /Transfer/ = 0, const char* = 0, const char* = "QObject", const QStringList& = QStringList ()); - void setName (const QCString&); - KInstance* instance () const; - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KOCRDialogFactory - diff --git a/python/pykde/sip/kio/kservice.sip b/python/pykde/sip/kio/kservice.sip deleted file mode 100644 index ddbc60ca..00000000 --- a/python/pykde/sip/kio/kservice.sip +++ /dev/null @@ -1,289 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KService : KSycocaEntry -{ -%TypeHeaderCode -#include <kservice.h> -%End - - -public: -//ig typedef KSharedPtr<KService> Ptr; -//ig typedef QValueList<KService::Ptr> List; - -public: - KService (const QString&, const QString&, const QString&); - KService (const QString&); - KService (KDesktopFile*); - KService (QDataStream&, int); - virtual QString type () /PyName=type_/; - virtual QString name () const; - QString exec () /PyName=exec_/; - QString library () const; - QString init () const; - QString icon () const; - QPixmap pixmap (KIcon::Group, int = 0, int = 0, QString* = 0) const; - bool terminal () const; - QString terminalOptions () const; - bool substituteUid () const; - QString username () const; - QString desktopEntryPath () const; - QString desktopEntryName () const; - -%If ( KDE_3_2_0 - ) - QString menuId () const; - QString storageId () const; -%End - - - enum DCOPServiceType_t - { - DCOP_None, - DCOP_Unique, - DCOP_Multi, - DCOP_Wait - }; - - DCOPServiceType_t DCOPServiceType () const; - QString path () const; - QString comment () const; - QString genericName () const; - -%If ( KDE_3_2_0 - ) - QString untranslatedGenericName () const; -%End - - QStringList keywords () const; - -%If ( KDE_3_1_0 - ) - QStringList categories () const; -%End - - QStringList serviceTypes () const; - bool hasServiceType (const QString&) const; - bool allowAsDefault () const; - bool allowMultipleFiles () const; - int initialPreference () const; - -%If ( KDE_3_2_0 - ) - int initialPreferenceForMimeType (const QString&) const; -%End - - void setInitialPreference (int); - bool noDisplay () const; - -%If ( KDE_3_1_0 - ) - QString parentApp () const; -%End - - virtual QVariant property (const QString&) const; - -%If ( KDE_3_2_0 - ) - QVariant property (const QString&, QVariant::Type) const; -%End - - virtual QStringList propertyNames () const; - bool isValid () const; - -%If ( KDE_3_2_0 - ) - QString locateLocal (); -%End - - virtual void load (QDataStream&); - virtual void save (QDataStream&); - -%If ( KDE_3_2_0 - ) - void setMenuId (const QString&); - void setTerminal (bool); - void setTerminalOptions (const QString&); -%End - - static KService::Ptr serviceByName (const QString&); - static KService::Ptr serviceByDesktopPath (const QString&); - static KService::Ptr serviceByDesktopName (const QString&); - -%If ( KDE_3_2_0 - ) - static KService::Ptr serviceByMenuId (const QString&); - static KService::Ptr serviceByStorageId (const QString&); -%End - - static KService::List allServices (); - static KService::List allInitServices (); - -%If ( KDE_3_2_0 - ) - static QString newServicePath (bool, const QString&, QString* = 0, const QStringList* = 0); - static void rebuildKSycoca (QWidget* /Transfer/); -%End - - -protected: - void init (KDesktopFile*); - QStringList& accessServiceTypes (); - -%If ( KDE_3_1_1 - ) - -private: - KService (const KService&); -%End - - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KService - - - -%MappedType KService::Ptr -//converts KService -{ -%TypeHeaderCode -#include <ksharedptr.h> -#include <kservice.h> -#include <sipkioKService.h> -//typedef KSharedPtr<KService> SvcPtr; -//typedef KService::Ptr SvcPtr; -%End - -%ConvertFromTypeCode - // Convert to a Python instance - - if (!sipCpp) - return NULL; - - KSharedPtr<KService> *cPtr = new KSharedPtr<KService> (*(KSharedPtr<KService> *)sipCpp); - KService *cpp = cPtr->data (); - PyObject *obj = sipConvertFromInstance (cpp, sipClass_KService, sipTransferObj); - - return obj; -%End - -%ConvertToTypeCode - // Convert a Python instance to a Ptr on the heap. - - if (sipIsErr == NULL) - return PyInstance_Check(sipPy); - - int iserr = 0; - KService *cpp = (KService *)sipForceConvertTo_KService (sipPy, &iserr); - - if (iserr) - { - *sipIsErr = 1; - return 0; - } - - *sipCppPtr = new KSharedPtr<KService> (cpp); - - return 1; -%End -}; - - -%MappedType KService::List -//converts a Python list of KService -{ -%TypeHeaderCode -#include <qvaluelist.h> -#include <kservice.h> -#include <sipkioKService.h> -#include <sipkioKServicePtr.h> -//typedef KSharedPtr<KService> Ptr; -//typedef QValueList<Ptr> SvcList; -//typedef KService::List SvcList; -typedef QValueList<KService::Ptr> List; -%End - -%ConvertFromTypeCode - // Convert to a Python list of Ptr (KService). -#define QUOTE "" - if (!sipCpp) - return PyList_New (0); - - PyObject *plist; - - // Create the list - if ((plist = PyList_New(0)) == NULL) - return NULL; - - // Get it. - KService::List *cList = (KService::List *)sipCpp; - PyObject *inst; - KSharedPtr<KService> *svc; - - KService::List::Iterator it; - for( it = cList->begin(); it != cList->end(); ++it ) - { - svc = &(KService::Ptr)(*it); - inst = sipConvertFrom_KService_Ptr (svc, sipTransferObj); - - if ((inst == NULL) || (PyList_Append (plist, inst) < 0)) - { - Py_XDECREF (inst); - Py_DECREF (plist); - return NULL; - } - } - - return plist; -%End - -%ConvertToTypeCode - // Convert a Python list to List on the heap. - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - KService::List *cList = new KService::List; - - PyObject *elem; - KService *service; - int iserr = 0; - - for (int i = 0; i < PyList_Size (sipPy); i++) - { - elem = PyList_GET_ITEM (sipPy, i); - service = (KService *)sipForceConvertTo_KService (elem, &iserr); - - KService::Ptr *ptr = new KService::Ptr (service); - - if (iserr) - { - *sipIsErr = 1; - delete cList; - return 0; - } - - cList->append (*ptr); - } - - *sipCppPtr = cList; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kio/kservicegroup.sip b/python/pykde/sip/kio/kservicegroup.sip deleted file mode 100644 index 0206580a..00000000 --- a/python/pykde/sip/kio/kservicegroup.sip +++ /dev/null @@ -1,291 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KServiceGroup : KSycocaEntry -{ -%TypeHeaderCode -#include <kservicegroup.h> -%End - - -public: -//ig typedef KSharedPtr<KServiceGroup> Ptr; -//ig typedef KSharedPtr<KSycocaEntry> SPtr; - -%If ( KDE_3_1_2 - ) -//ig typedef QValueList<KServiceGroup::SPtr> List; -%End - - -public: - -%If ( KDE_3_1_0 - ) - KServiceGroup (const QString&); -%End - - KServiceGroup (const QString&, const QString&); - KServiceGroup (QDataStream&, int, bool); - bool isValid () const; - virtual QString name () const; - virtual QString relPath () const; - QString caption () const; - QString icon () const; - QString comment () const; - int childCount (); - -%If ( KDE_3_1_0 - ) - bool noDisplay () const; - -%If ( KDE_3_5_0 - ) - bool showEmptyMenu () const; - void setShowEmptyMenu (bool); - bool showInlineHeader () const; - void setShowInlineHeader (bool); - bool inlineAlias () const; - void setInlineAlias (bool); - bool allowInline () const; - void setAllowInline (bool); - int inlineValue () const; - void setInlineValue (int); -%End - - -%If ( KDE_3_2_0 - ) - QStringList suppressGenericNames () const; - void setLayoutInfo (const QStringList&); - -%If ( KDE_3_3_0 - ) - QStringList layoutInfo () const; -%End - -%End - -%End - - virtual void load (QDataStream&); - virtual void save (QDataStream&); - -%If ( KDE_3_2_0 - ) - KServiceGroup::List entries (bool, bool, bool, bool = 0); -%End - - virtual KSycocaEntry::List entries (bool, bool); - -%If ( KDE_3_1_2 - ) - virtual KServiceGroup::List entries (bool = 0); -%End - - QString baseGroupName () const; - -%If ( KDE_3_2_0 - ) - QString directoryEntryPath () const; -%End - - static KServiceGroup::Ptr baseGroup (const QString&); - static KServiceGroup::Ptr root (); - static KServiceGroup::Ptr group (const QString&); - -%If ( KDE_3_1_0 - ) - static KServiceGroup::Ptr childGroup (const QString& /Transfer/); - -%If ( KDE_3_5_0 - ) - void parseAttribute (const QString&, bool&, bool&, bool&, bool&, int&); -%End - -%End - - -protected: - void addEntry (KSycocaEntry*); - -protected: -//igx virtual void virtual_hook (int, void*); - -public: - -%If ( - KDE_3_1_2 ) -//ig typedef QValueList<Ptr> List; -%End - - -}; // class KServiceGroup - - -%If ( KDE_3_2_0 - ) - -class KServiceSeparator : KSycocaEntry -{ -%TypeHeaderCode -#include <kservicegroup.h> -%End - - -public: -//ig typedef KSharedPtr<KServiceSeparator> Ptr; - -public: - KServiceSeparator (); - bool isValid () const; - virtual QString name () const; - virtual void load (QDataStream&); - virtual void save (QDataStream&); - -}; // class KServiceSeparator - -%End - - - -%MappedType KServiceGroup::Ptr -//converts KServiceGroup -{ -%TypeHeaderCode -#include <ksharedptr.h> -#include <kservicegroup.h> -#include <sipkioKServiceGroup.h> -%End - -%ConvertFromTypeCode - // Convert to a Python instance - - if (!sipCpp) - return NULL; - - KSharedPtr<KServiceGroup> *cPtr = new KSharedPtr<KServiceGroup> (*(KSharedPtr<KServiceGroup> *)sipCpp); - KServiceGroup *cpp = cPtr->data (); - PyObject *obj = sipConvertFromInstance (cpp, sipClass_KServiceGroup, sipTransferObj); - - return obj; -%End - -%ConvertToTypeCode - // Convert a Python instance to a Ptr on the heap. - - if (sipIsErr == NULL) - return PyInstance_Check(sipPy); - - int iserr = 0; - KServiceGroup *cpp = (KServiceGroup *)sipForceConvertTo_KServiceGroup (sipPy, &iserr); - - if (iserr) - { - *sipIsErr = 1; - return 0; - } - - *sipCppPtr = new KSharedPtr<KServiceGroup> (cpp); - - return 1; -%End -}; - - -%If (KDE_3_1_2 - ) -%MappedType KServiceGroup::List -//converts a Python list of KServiceGroup -{ -%TypeHeaderCode -#include <ksharedptr.h> -#include <kservice.h> -#include <kservicegroup.h> -#include <sipkioKService.h> -#include <sipkioKServiceGroup.h> -#include <sipkioKSycocaEntryPtr.h> -#include <qvaluelist.h> -%End - -%ConvertFromTypeCode - // Convert to a Python list of Ptr (KService). - - if (!sipCpp) - return PyList_New (0); - - PyObject *plist; - - // Create the list - - if ((plist = PyList_New(0)) == NULL) - return NULL; - - // Get it. - - KServiceGroup::List *cList = (KServiceGroup::List *)sipCpp; - PyObject *inst; - KSharedPtr <KSycocaEntry> *svcGroupType; - - KServiceGroup::List::Iterator it; - for( it = cList->begin(); it != cList->end(); ++it ) - { - svcGroupType = &(KServiceGroup::SPtr)(*it); - inst = sipConvertFrom_KSycocaEntry_Ptr (svcGroupType, sipTransferObj); - - if ((inst == NULL) || (PyList_Append (plist, inst) < 0)) - { - Py_XDECREF (inst); - Py_DECREF (plist); - return NULL; - } - } - - return plist; -%End - -%ConvertToTypeCode - // Convert a Python list to List on the heap. - - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - KServiceGroup::List *cList = new KServiceGroup::List; - - PyObject *elem; - KSycocaEntry *service; - int iserr = 0; - - for (int i = 0; i < PyList_Size (sipPy); i++) - { - elem = PyList_GET_ITEM (sipPy, i); - service = (KSycocaEntry *)sipForceConvertTo_KSycocaEntry (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cList; - return 0; - } - - KServiceGroup::SPtr *ptr = new KServiceGroup::SPtr (service); - cList->append (*ptr); - } - - *sipCppPtr = cList; - - return 1; -%End -}; -%End - - diff --git a/python/pykde/sip/kio/kservicetype.sip b/python/pykde/sip/kio/kservicetype.sip deleted file mode 100644 index d3b4b32f..00000000 --- a/python/pykde/sip/kio/kservicetype.sip +++ /dev/null @@ -1,292 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KServiceType : KSycocaEntry -{ -%TypeHeaderCode -#include <kservicetype.h> -%End - - -public: - typedef KSharedPtr<KServiceType> Ptr; - typedef QValueList<KServiceType::Ptr> List; - -public: - KServiceType (const QString&, const QString&, const QString&, const QString&); - KServiceType (const QString&); - KServiceType (KDesktopFile*); - KServiceType (QDataStream&, int); - QString icon () const; - QString comment () const; - QString name () const; - QString desktopEntryPath () const; - bool isDerived () const; - QString parentServiceType () const; - -%If ( KDE_3_1_0 - ) - bool inherits (const QString&) const; -%End - - virtual QVariant property (const QString&) const; - virtual QStringList propertyNames () const; - bool isValid () const; - virtual QVariant::Type propertyDef (const QString&) const; - virtual QStringList propertyDefNames () const; - virtual const QMap<QString,QVariant::Type>& propertyDefs () const; - virtual void save (QDataStream&); - virtual void load (QDataStream&); - -%If ( KDE_3_2_0 - ) - KServiceType::Ptr parentType (); - void addService (KService::Ptr); - KService::List services (); -%End - - static KServiceType::Ptr serviceType (const QString&); - static KService::List offers (const QString&); - static KServiceType::List allServiceTypes (); - -protected: - void init (KDesktopFile*); - -protected: - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KServiceType - - - -%MappedType KServiceType::Ptr -//converts KServiceType -{ -%TypeHeaderCode -#include <ksharedptr.h> -#include <kservicetype.h> -#include <sipkioKServiceType.h> -%End - -%ConvertFromTypeCode - // Convert to a Python instance - - if (!sipCpp) - return NULL; - - KServiceType::Ptr *cPtr = new KServiceType::Ptr (*(KServiceType::Ptr *)sipCpp); - KServiceType *cpp = cPtr->data (); - PyObject *obj = sipConvertFromInstance (cpp, sipClass_KServiceType, sipTransferObj); - - return obj; -%End - -%ConvertToTypeCode - // Convert a Python instance to a Ptr on the heap. - - if (sipIsErr == NULL) - return PyInstance_Check(sipPy); - - int iserr = 0; - KServiceType *cpp = (KServiceType *)sipForceConvertTo_KServiceType (sipPy, &iserr); - - if (iserr) - { - *sipIsErr = 1; - return 0; - } - - *sipCppPtr = new KServiceType::Ptr (cpp); - - return 1; -%End -}; - - -%MappedType QMap<QString,QVariant::Type> -//converts a Python dict of QString:QVariant -{ -%TypeHeaderCode -#include <qmap.h> -#include <qvariant.h> -#include <sipqtQString.h> -%End - -%ConvertFromTypeCode - // Convert to a Python dict - - if (!sipCpp) - return PyDict_New(); - - PyObject *dict; - - // Create the dictionary. - - if ((dict = PyDict_New()) == NULL) - return NULL; - - // Get it. - - const QMap<QString,QVariant::Type> cppmap = *sipCpp; - QMap<QString,QVariant::Type>::ConstIterator it; - - for (it = cppmap.begin (); it != cppmap.end (); ++it) - { - QString acpp = it.key (); - int bcpp = (int) it.data (); - PyObject *ainst; - PyObject *binst = PyInt_FromLong (bcpp); - if (((ainst = sipBuildResult (NULL, "N", new QString (acpp), sipClass_QString)) == NULL) - || (PyDict_SetItem (dict, ainst, binst) < 0)) - { - Py_XDECREF (ainst); - Py_XDECREF (binst); - Py_DECREF (dict); - return NULL; - } - } - - return dict; -%End - - -%ConvertToTypeCode - // Convert a Python dictionary to a QMap on the heap. - - if (sipIsErr == NULL) - return PyDict_Check(sipPy); - - - QMap<QString,QVariant::Type> *cppmap = new QMap<QString,QVariant::Type>; - - PyObject *aelem, *belem; - int pos = 0; - QString *acpp; - QVariant::Type bcpp; - - while (PyDict_Next(sipPy, &pos, &aelem, &belem)) - { - int iserr = 0; - - if (!PyInt_Check (belem) || iserr) - { - *sipIsErr = 1; - delete cppmap; - return 0; - } - - acpp = (QString *)sipForceConvertTo_QString (aelem, &iserr); - bcpp = (QVariant::Type) PyInt_AS_LONG(belem); - - cppmap->insert (*acpp, bcpp); - } - - *sipCppPtr = cppmap; - - return 1; -%End -}; - - -%MappedType QValueList<KServiceType::Ptr> -//converts a Python list of KServiceType -{ -%TypeHeaderCode -#include <kservicetype.h> -#include <sipkioKServiceType.h> -#include <sipkioKServiceTypePtr.h> -%End - -%ConvertFromTypeCode - // Convert to a Python list of Ptr (KServiceType). - - if (!sipCpp) - return PyList_New (0); - - PyObject *plist; - - // Create the list - if ((plist = PyList_New(0)) == NULL) - return NULL; - - // Get it. - QValueList<KServiceType::Ptr> *cList = (QValueList<KServiceType::Ptr> *)sipCpp; - PyObject *inst; - KSharedPtr <KServiceType> *svc; - - QValueList<KServiceType::Ptr>::Iterator it; - for( it = cList->begin(); it != cList->end(); ++it ) - { - svc = &(KServiceType::Ptr)(*it); - inst = sipConvertFrom_KServiceType_Ptr (svc, sipTransferObj); - - if ((inst == NULL) || (PyList_Append (plist, inst) < 0)) - { - Py_XDECREF (inst); - Py_DECREF (plist); - return NULL; - } - } - - return plist; -%End - -%ConvertToTypeCode - // Convert a Python list to List on the heap. - - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - QValueList<KServiceType::Ptr> *cList = new QValueList<KServiceType::Ptr>; - - PyObject *elem; - KServiceType *service; - int iserr = 0; - - for (int i = 0; i < PyList_Size (sipPy); i++) - { - elem = PyList_GET_ITEM (sipPy, i); - service = (KServiceType *)sipForceConvertTo_KServiceType (elem, &iserr); - - KServiceType::Ptr *ptr = new KServiceType::Ptr (service); - - if (iserr) - { - *sipIsErr = 1; - delete cList; - return 0; - } - - cList->append (*ptr); - } - - *sipCppPtr = cList; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kio/kshellcompletion.sip b/python/pykde/sip/kio/kshellcompletion.sip deleted file mode 100644 index 2ada63c1..00000000 --- a/python/pykde/sip/kio/kshellcompletion.sip +++ /dev/null @@ -1,47 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KShellCompletion : KURLCompletion -{ -%TypeHeaderCode -#include <kshellcompletion.h> -%End - - -public: - KShellCompletion (); - QString makeCompletion (const QString&); - -protected: - void postProcessMatch (QString*); - void postProcessMatches (QStringList*); -//ig void postProcessMatches (KCompletionMatches*) const; - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KShellCompletion - diff --git a/python/pykde/sip/kio/kshred.sip b/python/pykde/sip/kio/kshred.sip deleted file mode 100644 index e5277de8..00000000 --- a/python/pykde/sip/kio/kshred.sip +++ /dev/null @@ -1,49 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KShred : QObject -{ -%TypeHeaderCode -#include <kshred.h> -%End - - -public: - KShred (QString); - bool fill1s (); - bool fill0s (); - bool fillbyte (uint); - bool fillrandom (); - bool fillpattern (uchar*, uint); - bool shred (); - static bool shred (QString); - -signals: - void processedSize (KIO::filesize_t); - void infoMessage (const QString&); - -}; // class KShred - diff --git a/python/pykde/sip/kio/ksycoca.sip b/python/pykde/sip/kio/ksycoca.sip deleted file mode 100644 index 32c960dd..00000000 --- a/python/pykde/sip/kio/ksycoca.sip +++ /dev/null @@ -1,171 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KSycoca : QObject, DCOPObject -{ -%TypeHeaderCode -#include <ksycoca.h> -%End - - -public: - -%If ( KDE_3_1_4 - ) - virtual bool process (const QCString&, const QByteArray&, QCString&, QByteArray&); - QCStringList functions (); - QCStringList interfaces (); -%End - - -protected: - KSycoca (bool); - -public: - KSycoca (); - static KSycoca* self (); - -%If ( KDE_3_2_0 - ) - static int version (); -%End - - QDataStream* findEntry (int, KSycocaType& /Out/); - QDataStream* findFactory (KSycocaFactoryId); - QString kfsstnd_prefixes (); - QString language (); - ulong timeStamp (); - -%If ( KDE_3_1_0 - ) - ulong updateSignature (); - -%If ( KDE_3_2_0 - ) - QStringList allResourceDirs (); -%End - -%End - - void addFactory (KSycocaFactory*); - virtual bool isBuilding (); - -%If ( KDE_3_1_2 - ) - void disableAutoRebuild (); -%End - - static QString determineRelativePath (const QString&, const char*); - static bool isChanged (const char*); - -%If ( KDE_3_1_0 - ) - static void flagError (); - static bool readError (); -%End - - -public: - void notifyDatabaseChanged (const QStringList&); - -signals: - void databaseChanged (); - -protected: - bool checkVersion (bool = 1); - bool openDatabase (bool = 1); - void closeDatabase (); - -public: - -%If ( KDE_3_1_0 - ) -//ig KSycoca* _self; -%End - - -protected: -//igx virtual void virtual_hook (int, void*); - -//force -%ConvertToSubClassCode - // The table of Python class objects indexed by their names. The table - // must be sorted by name. - - static sipStringTypeClassMap map[] = { - {sipName_ChmodJob, &sipClass_KIO_ChmodJob}, - {sipName_Connection, &sipClass_KIO_Connection}, - {sipName_CopyJob, &sipClass_KIO_CopyJob}, -#if KDE_VERSION >= 0x030100 - {sipName_DavJob, &sipClass_KIO_DavJob}, -#endif - {sipName_DefaultProgress, &sipClass_KIO_DefaultProgress}, - {sipName_DeleteJob, &sipClass_KIO_DeleteJob}, - {sipName_FileCopyJob, &sipClass_KIO_FileCopyJob}, - {sipName_Job, &sipClass_KIO_Job}, - {sipName_KAutoMount, &sipClass_KAutoMount}, - {sipName_KAutoUnmount, &sipClass_KAutoUnmount}, - {sipName_KDataTool, &sipClass_KDataTool}, - {sipName_KDataToolAction, &sipClass_KDataToolAction}, - {sipName_KDirLister, &sipClass_KDirLister}, - {sipName_KDirWatch, &sipClass_KDirWatch}, - {sipName_KFileMetaInfoProvider, &sipClass_KFileMetaInfoProvider}, - {sipName_KFilePlugin, &sipClass_KFilePlugin}, - {sipName_KFilterBase, &sipClass_KFilterBase}, - {sipName_KOCRDialog, &sipClass_KOCRDialog}, - {sipName_KOCRDialogFactory, &sipClass_KOCRDialogFactory}, - {sipName_KProcessRunner, &sipClass_KProcessRunner}, - {sipName_KRun, &sipClass_KRun}, - {sipName_KScanDialog, &sipClass_KScanDialog}, - {sipName_KScanDialogFactory, &sipClass_KScanDialogFactory}, - {sipName_KShellCompletion, &sipClass_KShellCompletion}, - {sipName_KShred, &sipClass_KShred}, - {sipName_KSycoca, &sipClass_KSycoca}, - {sipName_KTrader, &sipClass_KTrader}, - {sipName_KURIFilterPlugin, &sipClass_KURIFilterPlugin}, - {sipName_KURLCompletion, &sipClass_KURLCompletion}, - {sipName_ListJob, &sipClass_KIO_ListJob}, -#if KDE_VERSION >= 0x030100 - {sipName_MetaInfoJob, &sipClass_KIO_MetaInfoJob}, -#endif - {sipName_MimetypeJob, &sipClass_KIO_MimetypeJob}, - {sipName_MultiGetJob, &sipClass_KIO_MultiGetJob}, - {sipName_NetAccess, &sipClass_KIO_NetAccess}, - {sipName_Observer, &sipClass_Observer}, - {sipName_PasswordDialog, &sipClass_KIO_PasswordDialog}, - {sipName_PreviewJob, &sipClass_KIO_PreviewJob}, - {sipName_ProgressBase, &sipClass_KIO_ProgressBase}, - {sipName_RenameDlgPlugin, &sipClass_RenameDlgPlugin}, - {sipName_Scheduler, &sipClass_KIO_Scheduler}, - {sipName_SessionData, &sipClass_KIO_SessionData}, - {sipName_SimpleJob, &sipClass_KIO_SimpleJob}, - {sipName_Slave, &sipClass_KIO_Slave}, - {sipName_SlaveConfig, &sipClass_KIO_SlaveConfig}, - {sipName_SlaveInterface, &sipClass_KIO_SlaveInterface}, - {sipName_StatJob, &sipClass_KIO_StatJob}, - {sipName_StatusbarProgress, &sipClass_KIO_StatusbarProgress}, - {sipName_TransferJob, &sipClass_KIO_TransferJob}, - }; - - sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0])); -%End -//end - -}; // class KSycoca - diff --git a/python/pykde/sip/kio/ksycocadict.sip b/python/pykde/sip/kio/ksycocadict.sip deleted file mode 100644 index 83497d2b..00000000 --- a/python/pykde/sip/kio/ksycocadict.sip +++ /dev/null @@ -1,51 +0,0 @@ -// -// Copyright 2004 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE_3_3_0 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_3_0 - ) - -class KSycocaDict -{ -%TypeHeaderCode -#include <ksycocadict.h> -%End - -public: - KSycocaDict (); - KSycocaDict (QDataStream*, int); - void add (const QString&, KSycocaEntry*); - void remove (const QString&); - int find_string (const QString&); - uint count (); - void clear (); - void save (QDataStream&); - -protected: - Q_UINT32 hashKey (const QString&); - -}; // class KSycocaDict - -%End - diff --git a/python/pykde/sip/kio/ksycocaentry.sip b/python/pykde/sip/kio/ksycocaentry.sip deleted file mode 100644 index 40d5bd38..00000000 --- a/python/pykde/sip/kio/ksycocaentry.sip +++ /dev/null @@ -1,213 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KSycocaEntry : KShared -{ -%TypeHeaderCode -#include <ksycocaentry.h> -%End - - -public: - virtual bool isType (KSycocaType) const; - virtual KSycocaType sycocaType () const; - -public: -//ig typedef KSharedPtr<KSycocaEntry> Ptr; -//ig typedef QValueList<KSycocaEntry::Ptr> List; - -public: - KSycocaEntry (const QString&); - -%If ( KDE_3_1_0 - ) - static void read (QDataStream&, QString&); - static void read (QDataStream&, QStringList&); -%End - - KSycocaEntry (QDataStream&, int); - virtual QString name () const = 0; - QString entryPath () const; - virtual bool isValid () const = 0; - virtual bool isDeleted () const; - int offset (); - virtual void save (QDataStream&); - virtual void load (QDataStream&) = 0; - -protected: - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KSycocaEntry - - - -%MappedType KSycocaEntry::Ptr -//converts KSycocaEntry -{ -%TypeHeaderCode -#include <ksharedptr.h> -#include <ksycocaentry.h> -#include <sipkioKSycocaEntry.h> -%End - -%ConvertFromTypeCode - // Convert to a Python instance - - if (!sipCpp) - return NULL; - - KSharedPtr<KSycocaEntry> *cPtr = new KSharedPtr<KSycocaEntry> (*(KSharedPtr<KSycocaEntry> *)sipCpp); - KSycocaEntry *cpp = cPtr->data (); - PyObject *obj = sipConvertFromInstance (cpp, sipClass_KSycocaEntry, sipTransferObj); - - return obj; -%End - -%ConvertToTypeCode - // Convert a Python instance to a Ptr on the heap. - - if (sipIsErr == NULL) - return PyInstance_Check(sipPy); - - int iserr = 0; - KSycocaEntry *cpp = (KSycocaEntry *)sipForceConvertTo_KSycocaEntry (sipPy, &iserr); - - if (iserr) - { - *sipIsErr = 1; - return 0; - } - - *sipCppPtr = new KSharedPtr<KSycocaEntry> (cpp); - - return 1; -%End -}; - - -%MappedType KSycocaEntry::List -//converts a Python list of KSycocaEntry -{ -%TypeHeaderCode -#include <ksharedptr.h> -#include <kservice.h> -#include <kservicegroup.h> -#include <ksycocaentry.h> -#include <sipkioKSycocaEntry.h> -#include <ksycocatype.h> -#include <sipkioKService.h> -#include <sipkioKServicePtr.h> -#include <sipkioKServiceGroup.h> -#include <sipkioKServiceGroupPtr.h> -#include <qvaluelist.h> -%End - -%ConvertFromTypeCode - // Convert to a Python list of Ptr (KService). - - if (!sipCpp) - return PyList_New (0); - - PyObject *plist; - - // Create the list - - if ((plist = PyList_New(0)) == NULL) - return NULL; - - // Get it. - - KSycocaEntry::List *cList = (KSycocaEntry::List *)sipCpp; - PyObject *inst; - KSharedPtr<KSycocaEntry> *svc; - KSharedPtr <KService> *svcType; - KSharedPtr <KServiceGroup> *svcGroupType; - - KSycocaEntry::List::Iterator it; - for( it = cList->begin(); it != cList->end(); ++it ) - { - svc = &(KSycocaEntry::Ptr)(*it); - if (svc->data ()->sycocaType () == KST_KService) - { - svcType = (KSharedPtr<KService> *)svc; - inst = sipConvertFrom_KService_Ptr (svcType, sipTransferObj); - } - else if (svc->data ()->sycocaType () == KST_KServiceGroup) - { - svcGroupType = (KSharedPtr <KServiceGroup> *) svc; - inst = sipConvertFrom_KServiceGroup_Ptr (svcGroupType, sipTransferObj); - } - else - inst = NULL; - - if ((inst == NULL) || (PyList_Append (plist, inst) < 0)) - { - Py_XDECREF (inst); - Py_DECREF (plist); - return NULL; - } - } - - return plist; -%End - -%ConvertToTypeCode - // Convert a Python list to List on the heap. - - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - KSycocaEntry::List *cList = new KSycocaEntry::List; - - PyObject *elem; - KSycocaEntry *service; - int iserr = 0; - - for (int i = 0; i < PyList_Size (sipPy); i++) - { - elem = PyList_GET_ITEM (sipPy, i); - service = (KSycocaEntry *)sipForceConvertTo_KSycocaEntry (elem, &iserr); - - KSycocaEntry::Ptr *ptr = new KSycocaEntry::Ptr (service); - - if (iserr) - { - *sipIsErr = 1; - delete cList; - return 0; - } - - cList->append (*ptr); - } - - *sipCppPtr = cList; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kio/ksycocafactory.sip b/python/pykde/sip/kio/ksycocafactory.sip deleted file mode 100644 index 1e8d1628..00000000 --- a/python/pykde/sip/kio/ksycocafactory.sip +++ /dev/null @@ -1,63 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KSycocaFactory -{ -%TypeHeaderCode -#include <ksycocafactory.h> -%End - - -public: - virtual KSycocaFactoryId factoryId () const = 0; - -protected: - KSycocaFactory (KSycocaFactoryId); - -public: - int offset (); -//ig KSycocaEntryDict* entryDict (); - virtual KSycocaEntry* createEntry (const QString&, const char*) = 0; - virtual void addEntry (KSycocaEntry*, const char*); - -%If ( KDE_3_2_0 - ) - void removeEntry (KSycocaEntry*); -%End - - virtual KSycocaEntry* createEntry (int) = 0; - KSycocaEntry::List allEntries (); - virtual void save (QDataStream&); - virtual void saveHeader (QDataStream&); -//ig virtual const KSycocaResourceList* resourceList () const; - -protected: - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KSycocaFactory - -//ig typedef QDict<KSycocaEntry::Ptr> KSycocaEntryDict; diff --git a/python/pykde/sip/kio/ksycocatype.sip b/python/pykde/sip/kio/ksycocatype.sip deleted file mode 100644 index 4babc21d..00000000 --- a/python/pykde/sip/kio/ksycocatype.sip +++ /dev/null @@ -1,76 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_2_1 - ) - -enum KSycocaType -{ - KST_KSycocaEntry, - KST_KService, - KST_KServiceType, - KST_KMimeType, - KST_KFolderType, - KST_KDEDesktopMimeType, - KST_KExecMimeType, - KST_KServiceGroup, - KST_KImageIOFormat, - KST_KProtocolInfo, - KST_KServiceSeparator, - KST_KCustom -}; - -%End - - -enum KSycocaFactoryId -{ - KST_KServiceFactory, - KST_KServiceTypeFactory, - KST_KServiceGroupFactory, - KST_KImageIO, - KST_KProtocolInfoFactory, - KST_CTimeInfo -}; - - -%If ( - KDE_3_2_1 ) - -enum KSycocaType -{ - KST_KSycocaEntry, - KST_KService, - KST_KServiceType, - KST_KMimeType, - KST_KFolderType, - KST_KDEDesktopMimeType, - KST_KExecMimeType, - KST_KServiceGroup, - KST_KImageIOFormat, - KST_KProtocolInfo, - KST_KCustom -}; - -%End diff --git a/python/pykde/sip/kio/ktar.sip b/python/pykde/sip/kio/ktar.sip deleted file mode 100644 index f67b4d1b..00000000 --- a/python/pykde/sip/kio/ktar.sip +++ /dev/null @@ -1,73 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KTar : KArchive -{ -%TypeHeaderCode -#include <ktar.h> -%End - - -public: - KTar (const QString&, const QString& = QString ::null ); - KTar (QIODevice*); - QString fileName (); - void setOrigFileName (const QCString&); - -%If ( KDE_3_2_0 - ) - bool writeSymLink (const QString&, const QString&, const QString&, const QString&, mode_t, time_t, time_t, time_t); -%End - - virtual bool writeDir (const QString&, const QString&, const QString&); - -%If ( KDE_3_2_0 - ) - bool writeDir (const QString&, const QString&, const QString&, mode_t, time_t, time_t, time_t); -%End - - virtual bool prepareWriting (const QString&, const QString&, const QString&, uint); - -%If ( KDE_3_2_0 - ) - bool prepareWriting (const QString&, const QString&, const QString&, uint, mode_t, time_t, time_t, time_t); -%End - - virtual bool doneWriting (uint); - -protected: - virtual bool openArchive (int); - virtual bool closeArchive (); - -protected: -//igx virtual void virtual_hook (int, void*); - -%If ( KDE_3_2_0 - ) - bool prepareWriting_impl (const QString&, const QString&, const QString&, uint, mode_t, time_t, time_t, time_t); - bool writeDir_impl (const QString&, const QString&, const QString&, mode_t, time_t, time_t, time_t); - bool writeSymLink_impl (const QString&, const QString&, const QString&, const QString&, mode_t, time_t, time_t, time_t); -%End - - -}; // class KTar - diff --git a/python/pykde/sip/kio/ktrader.sip b/python/pykde/sip/kio/ktrader.sip deleted file mode 100644 index 9159dc55..00000000 --- a/python/pykde/sip/kio/ktrader.sip +++ /dev/null @@ -1,125 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KTrader : QObject -{ -%TypeHeaderCode -#include <ktrader.h> -%End - - -public: -//ig typedef QValueList<KService::Ptr> OfferList; - -%If ( KDE_3_1_0 - ) -//ig typedef QValueListIterator<KService::Ptr> OfferListIterator; -%End - - virtual KTrader::OfferList query (const QString&, const QString& = QString ::null , const QString& = QString ::null ) const; - KTrader::OfferList query (const QString&, const QString&, const QString&, const QString&) const; - static KTrader* self (); - -protected: - KTrader (); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KTrader - - - -%MappedType KTrader::OfferList -//converts a Python list of KService -{ -%TypeHeaderCode -#include <qvaluelist.h> -#include <sipkioKServicePtr.h> -#include <ktrader.h> -%End - -%ConvertFromTypeCode - if (!sipCpp) - return PyList_New(0); - - // Create the list - PyObject *pylist; - if ((pylist = PyList_New(0)) == NULL) - return NULL; - - QValueList<KService::Ptr> *cpplist = (QValueList<KService::Ptr> *)sipCpp; - PyObject *inst; - - // Get it. - QValueList<KService::Ptr>::Iterator it; - for( it = cpplist->begin(); it != cpplist->end(); ++it ) - { - KService::Ptr cpp = *it; - inst = sipConvertFrom_KService_Ptr (&cpp, NULL); - - if (PyList_Append (pylist, inst) < 0) - { - Py_DECREF (pylist); - return NULL; - } - } - - return pylist; -%End - - -%ConvertToTypeCode - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - QValueList<KService::Ptr> *cpplist = new QValueList<KService::Ptr>; - - PyObject *elem; - KService::Ptr *cpp; - int iserr = 0; - - for (int i = 0; i < PyList_Size (sipPy); i++) - { - elem = PyList_GET_ITEM (sipPy, i); - cpp = (KService::Ptr *)sipForceConvertTo_KService_Ptr (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (*cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kio/kurifilter.sip b/python/pykde/sip/kio/kurifilter.sip deleted file mode 100644 index e9f8f21e..00000000 --- a/python/pykde/sip/kio/kurifilter.sip +++ /dev/null @@ -1,147 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KURIFilterData -{ -%TypeHeaderCode -#include <qstringlist.h> -#include <kurifilter.h> -%End - - -public: - - enum URITypes - { - NET_PROTOCOL, - LOCAL_FILE, - LOCAL_DIR, - EXECUTABLE, - HELP, - SHELL, - BLOCKED, - ERROR, - UNKNOWN - }; - - KURIFilterData (); - KURIFilterData (const KURL&); - KURIFilterData (const QString&); - KURIFilterData (const KURIFilterData&); - bool hasBeenFiltered () const; - KURL uri () const; - QString errorMsg () const; - URITypes uriType () const; - void setData (const QString&); - void setData (const KURL&); - bool setAbsolutePath (const QString&); - QString absolutePath () const; - bool hasAbsolutePath () const; - QString argsAndOptions () const; - bool hasArgsAndOptions () const; - QString iconName (); - -%If ( KDE_3_2_0 - ) - void setCheckForExecutables (bool); - bool checkForExecutables () const; - QString typedString () const; -%End - - -protected: - void init (const KURL&); - void init (const KURL& = KURL (QString ::null )) [void (QString&)]; -%MethodCode -//takes url | (KURL = KURL(QString.null)) - - Py_BEGIN_ALLOW_THREADS - if (a0 == 0) - sipCpp -> sipProtect_init(QString::null); - else - sipCpp -> sipProtect_init(*a0); - Py_END_ALLOW_THREADS -%End - - -}; // class KURIFilterData - - -class KURIFilterPlugin : QObject -{ -%TypeHeaderCode -#include <qstringlist.h> -#include <kurifilter.h> -%End - - -public: - KURIFilterPlugin (QObject* = 0, const char* = 0, double = 1.0); - virtual QString name () const; - virtual double priority () const; - virtual bool filterURI (KURIFilterData&) const = 0; - virtual KCModule* configModule (QWidget*, const char*) const; - virtual QString configName () const; - -protected: - void setFilteredURI (KURIFilterData&, const KURL&) const; - void setErrorMsg (KURIFilterData&, const QString&) const; - void setURIType (KURIFilterData&, KURIFilterData::URITypes) const; - void setArguments (KURIFilterData&, const QString&) const; - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KURIFilterPlugin - - -class KURIFilter -{ -%TypeHeaderCode -#include <qstringlist.h> -#include <kurifilter.h> -%End - - -public: - static KURIFilter* self (); - bool filterURI (KURIFilterData&, const QStringList& = QStringList ()); - bool filterURI (KURL&, const QStringList& = QStringList ()); - bool filterURI (QString&, const QStringList& = QStringList ()); - KURL filteredURI (const KURL&, const QStringList& = QStringList ()); - QString filteredURI (const QString&, const QStringList& = QStringList ()); -//ig QPtrListIterator<KURIFilterPlugin> pluginsIterator () const; - -%If ( KDE_3_1_0 - ) - QStringList pluginNames () const; -%End - - -protected: - KURIFilter (); - void loadPlugins (); - -}; // class KURIFilter - diff --git a/python/pykde/sip/kio/kurlcompletion.sip b/python/pykde/sip/kio/kurlcompletion.sip deleted file mode 100644 index dc927df1..00000000 --- a/python/pykde/sip/kio/kurlcompletion.sip +++ /dev/null @@ -1,81 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KURLCompletion : KCompletion -{ -%TypeHeaderCode -#include <kurlcompletion.h> -%End - - -public: - - enum Mode - { - ExeCompletion, - FileCompletion, - DirCompletion - }; - - KURLCompletion (); - KURLCompletion (KURLCompletion::Mode); - virtual QString makeCompletion (const QString&); - virtual void setDir (const QString&); - virtual QString dir (); - virtual bool isRunning (); - virtual void stop (); - virtual Mode mode (); - virtual void setMode (KURLCompletion::Mode); - virtual bool replaceEnv (); - virtual void setReplaceEnv (bool); - virtual bool replaceHome (); - virtual void setReplaceHome (bool); - QString replacedPath (const QString&); - -%If ( KDE_3_2_0 - ) - static QString replacedPath (const QString&, bool, bool = 1); -%End - - -protected: - void postProcessMatch (QString*); - void postProcessMatches (QStringList*); -//ig void postProcessMatches (KCompletionMatches*) const; - -%If ( KDE_3_3_0 - ) - virtual void customEvent (QCustomEvent*); -%End - - -protected slots: - void slotEntries (KIO::Job*, const KIO::UDSEntryList&); - void slotIOFinished (KIO::Job*); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KURLCompletion - diff --git a/python/pykde/sip/kio/kurlpixmapprovider.sip b/python/pykde/sip/kio/kurlpixmapprovider.sip deleted file mode 100644 index 3f2f336f..00000000 --- a/python/pykde/sip/kio/kurlpixmapprovider.sip +++ /dev/null @@ -1,41 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KURLPixmapProvider : KPixmapProvider -{ -%TypeHeaderCode -#include <kurlpixmapprovider.h> -%End - - -public: - virtual QPixmap pixmapFor (const QString&, int = 0); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KURLPixmapProvider - diff --git a/python/pykde/sip/kio/kuserprofile.sip b/python/pykde/sip/kio/kuserprofile.sip deleted file mode 100644 index 02586541..00000000 --- a/python/pykde/sip/kio/kuserprofile.sip +++ /dev/null @@ -1,224 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class KServiceOffer -{ -%TypeHeaderCode -#include <kuserprofile.h> -%End - - -public: - KServiceOffer (); - KServiceOffer (const KServiceOffer&); - KServiceOffer (KService::Ptr, int, bool); - -%If ( KDE_3_1_4 - ) - bool operator < (const KServiceOffer&) const; -%End - - bool allowAsDefault () const; - int preference () const; - KService::Ptr service () const; - bool isValid () const; - -}; // class KServiceOffer - - -class KServiceTypeProfile -{ -%TypeHeaderCode -#include <kuserprofile.h> -%End - - -public: - typedef QValueList<KServiceOffer> OfferList; - int preference (const QString&) const; - bool allowAsDefault (const QString&) const; - KServiceTypeProfile::OfferList offers () const; - static KService::Ptr preferredService (const QString&, const QString&); - static KServiceTypeProfile* serviceTypeProfile (const QString&, const QString&); - static KServiceTypeProfile::OfferList offers (const QString&, const QString&); - static const QPtrList<KServiceTypeProfile>& serviceTypeProfiles (); - static void clear (); - static void setConfigurationMode (); - static bool configurationMode (); - -protected: - KServiceTypeProfile (const QString&, const QString& = QString ::null ); - void addService (const QString&, int = 1, bool = 1); - -}; // class KServiceTypeProfile - - - -%MappedType KServiceTypeProfile::OfferList -//converts a Python list of KServiceOffer -{ -%TypeHeaderCode -#include <qvaluelist.h> -#include <kservicetype.h> -#include <kuserprofile.h> -#include <sipkioKServiceOffer.h> -%End - -%ConvertFromTypeCode - if (!sipCpp) - return PyList_New(0); - - // Create the list - PyObject *pylist; - if ((pylist = PyList_New(0)) == NULL) - return NULL; - - QValueList<KServiceOffer> *cpplist = (QValueList<KServiceOffer> *)sipCpp; - PyObject *inst; - - // Get it. - QValueList<KServiceOffer>::Iterator it; - for( it = cpplist->begin(); it != cpplist->end(); ++it ) - { - if (((inst = sipBuildResult (NULL, "N", new KServiceOffer (*it), sipClass_KServiceOffer)) == NULL) - || PyList_Append (pylist, inst) < 0) - { - Py_DECREF (pylist); - return NULL; - } - } - - return pylist; -%End - -%ConvertToTypeCode - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - QValueList<KServiceOffer> *cpplist = new QValueList<KServiceOffer>; - - PyObject *elem; - KServiceOffer *cpp; - int iserr = 0; - - for (int i = 0; i < PyList_Size (sipPy); i++) - { - elem = PyList_GET_ITEM (sipPy, i); - cpp = (KServiceOffer *)sipForceConvertTo_KServiceOffer (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cpplist; - return 0; - } - - cpplist->append (*cpp); - } - - *sipCppPtr = cpplist; - - return 1; -%End -}; - - -%MappedType QPtrList<KServiceTypeProfile> -//converts a Python list of KServiceTypeProfile -{ -%TypeHeaderCode -#include <qptrlist.h> -#include <kservicetype.h> -#include <sipkioKServiceTypeProfile.h> -//typedef QPtrList<KServiceTypeProfile> SvcTypeProfileList; -%End - -%ConvertFromTypeCode - // Convert to a Python list of KServiceTypeProfile - - if (!sipCpp) - return PyList_New (0); - - PyObject *plist; - - // Create the list - - if ((plist = PyList_New(0)) == NULL) - return NULL; - - // Get it. - - QPtrList<KServiceTypeProfile> *cList = (QPtrList<KServiceTypeProfile> *)sipCpp; - PyObject *inst; - KServiceTypeProfile *svc; - - for( svc = cList->first (); svc; svc = cList->next ()) - { - inst = sipConvertFromInstance (svc, sipClass_KServiceTypeProfile, sipTransferObj); - if ((inst == NULL) || (PyList_Append (plist, inst) < 0)) - { - Py_XDECREF (inst); - Py_DECREF (plist); - return NULL; - } - } - - return plist; -%End - -%ConvertToTypeCode - // Convert a Python list to SvcTypeProfileList on the heap. - - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - QPtrList<KServiceTypeProfile> *cList = new QPtrList<KServiceTypeProfile>; - - PyObject *elem; - KServiceTypeProfile *service; - int iserr = 0; - - for (int i = 0; i < PyList_Size (sipPy); i++) - { - elem = PyList_GET_ITEM (sipPy, i); - service = (KServiceTypeProfile *)sipForceConvertTo_KServiceTypeProfile (elem, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cList; - return 0; - } - - cList->append (service); - } - - *sipCppPtr = cList; - - return 1; -%End -}; - - diff --git a/python/pykde/sip/kio/kzip.sip b/python/pykde/sip/kio/kzip.sip deleted file mode 100644 index 184e64c9..00000000 --- a/python/pykde/sip/kio/kzip.sip +++ /dev/null @@ -1,120 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_1_0 - ) - -class KZip : KArchive -{ -%TypeHeaderCode -#include <kzip.h> -%End - - -public: - KZip (const QString&); - KZip (QIODevice*); - QString fileName (); - -%If ( KDE_3_2_0 - ) - - enum ExtraField - { - NoExtraField, - ModificationTime, - DefaultExtraField - }; - - void setExtraField (KZip::ExtraField); - KZip::ExtraField extraField () const; -%End - - - enum Compression - { - NoCompression, - DeflateCompression - }; - - void setCompression (KZip::Compression); - KZip::Compression compression () const; - virtual bool writeFile (const QString&, const QString&, const QString&, uint, const char*); - virtual bool prepareWriting (const QString&, const QString&, const QString&, uint); - -%If ( KDE_3_2_0 - ) - bool writeSymLink (const QString&, const QString&, const QString&, const QString&, mode_t, time_t, time_t, time_t); - bool prepareWriting (const QString&, const QString&, const QString&, uint, mode_t, time_t, time_t, time_t); - bool writeFile (const QString&, const QString&, const QString&, uint, mode_t, time_t, time_t, time_t, const char*); -%End - - bool writeData (const char*, uint); - virtual bool doneWriting (uint); - -protected: - virtual bool openArchive (int); - virtual bool closeArchive (); - virtual bool writeDir (const QString&, const QString&, const QString&); - -protected: - virtual void virtual_hook (int, void*); - -%If ( KDE_3_2_0 - ) - bool writeData_impl (const char*, uint); - bool prepareWriting_impl (const QString&, const QString&, const QString&, uint, mode_t, time_t, time_t, time_t); - bool writeSymLink_impl (const QString&, const QString&, const QString&, const QString&, mode_t, time_t, time_t, time_t); -%End - - -}; // class KZip - -%End - - -%If ( KDE_3_1_0 - ) - -class KZipFileEntry : KArchiveFile -{ -%TypeHeaderCode -#include <kzip.h> -%End - - -public: - KZipFileEntry (KZip*, const QString&, int, int, const QString&, const QString&, const QString&, const QString&, Q_LONG, Q_LONG, int, Q_LONG); - int encoding () const; - Q_LONG compressedSize () const; - void setCompressedSize (Q_LONG); - void setHeaderStart (Q_LONG); - Q_LONG headerStart () const; - ulong crc32 () const; - void setCRC32 (ulong); - QString path () const; - virtual QByteArray data () const; - QIODevice* device () const; - -}; // class KZipFileEntry - -%End - diff --git a/python/pykde/sip/kio/metainfojob.sip b/python/pykde/sip/kio/metainfojob.sip deleted file mode 100644 index 691cb186..00000000 --- a/python/pykde/sip/kio/metainfojob.sip +++ /dev/null @@ -1,63 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%If ( KDE_3_1_0 - ) -namespace KIO -{ - -class MetaInfoJob : KIO::Job -{ -%TypeHeaderCode -#include <kfileitem.h> -#include <jobclasses.h> -#include <metainfojob.h> -%End - - -public: - MetaInfoJob (const KFileItemList&, bool = 0); - void removeItem (const KFileItem*); - static QStringList availablePlugins (); - static QStringList supportedMimeTypes (); - -signals: - void gotMetaInfo (const KFileItem*); - void failed (const KFileItem*); - -protected: - void getMetaInfo (); - -protected slots: - virtual void slotResult (KIO::Job*); - -}; // class MetaInfoJob - -KIO::MetaInfoJob* fileMetaInfo (const KFileItemList&); -KIO::MetaInfoJob* fileMetaInfo (const KURL::List&); -}; // namespace KIO - -%End - diff --git a/python/pykde/sip/kio/netaccess.sip b/python/pykde/sip/kio/netaccess.sip deleted file mode 100644 index c4acb6eb..00000000 --- a/python/pykde/sip/kio/netaccess.sip +++ /dev/null @@ -1,128 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -namespace KIO -{ - -class NetAccess : QObject -{ -%TypeHeaderCode -#include <netaccess.h> -%End - - -public: - -%If ( KDE_3_2_0 - ) - static bool download (const KURL&, QString&, QWidget*); -%End - - static bool download (const KURL&, QString&); - static void removeTempFile (const QString&); - -%If ( KDE_3_2_0 - ) - static bool upload (const QString&, const KURL&, QWidget*); -%End - - static bool upload (const QString&, const KURL&); - -%If ( KDE_3_2_0 - ) - static bool copy (const KURL&, const KURL&, QWidget*); -%End - - static bool copy (const KURL&, const KURL&); - -%If ( KDE_3_2_0 - ) - static bool file_copy (const KURL&, const KURL&, int = -1, bool = 0, bool = 0, QWidget* = 0); - static bool file_move (const KURL&, const KURL&, int = -1, bool = 0, bool = 0, QWidget* = 0); - static bool dircopy (const KURL&, const KURL&, QWidget*); -%End - - static bool dircopy (const KURL&, const KURL&); - -%If ( KDE_3_2_0 - ) - static bool dircopy (const KURL::List&, const KURL&, QWidget* = 0); - static bool move (const KURL&, const KURL&, QWidget* = 0); - static bool move (const KURL::List&, const KURL&, QWidget* = 0); - static bool exists (const KURL&, bool, QWidget*); - static bool exists (const KURL&, QWidget*); -%End - - static bool exists (const KURL&); - -%If ( KDE_3_1_0 - ) - static bool exists (const KURL&, bool); - -%If ( KDE_3_2_0 - ) - static bool stat (const KURL&, KIO::UDSEntry&, QWidget*); -%End - -%End - - static bool stat (const KURL&, KIO::UDSEntry&); - -%If ( KDE_3_5_0 - ) - static KURL mostLocalURL (const KURL&, QWidget*); -%End - - -%If ( KDE_3_2_0 - ) - static bool del (const KURL&, QWidget*); -%End - - static bool del (const KURL&) /PyName=del_/; - -%If ( KDE_3_2_0 - ) - static bool mkdir (const KURL&, QWidget*, int = -1); -%End - - static bool mkdir (const KURL&, int = -1); - -%If ( KDE_3_2_0 - ) - static QString fish_execute (const KURL&, const QString, QWidget*); - -%If ( KDE_3_3_1 - ) - static bool synchronousRun (KIO::Job*, QWidget*, QByteArray* = 0, KURL* = 0, QMap<QString,QString>* = 0); -%End - - static QString mimetype (const KURL&, QWidget*); -%End - -//ig static QString mimetype (const KURL&); - static QString lastErrorString (); - -%If ( KDE_3_3_0 - ) - static int lastError (); -%End - - -private: - NetAccess (); - ~NetAccess (); - -}; // class NetAccess - -}; // namespace KIO - diff --git a/python/pykde/sip/kio/observer.sip b/python/pykde/sip/kio/observer.sip deleted file mode 100644 index 0b6fb603..00000000 --- a/python/pykde/sip/kio/observer.sip +++ /dev/null @@ -1,96 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class Observer : QObject, DCOPObject -{ -%TypeHeaderCode -#include <observer.h> -%End - - -public: - -%If ( KDE_3_1_4 - ) - virtual bool process (const QCString&, const QByteArray&, QCString&, QByteArray&); - QCStringList functions (); - QCStringList interfaces (); -%End - - -public: - static Observer* self (); - int newJob (KIO::Job*, bool); - void jobFinished (int); - bool openPassDlg (const QString&, QString&, QString&, bool); - bool openPassDlg (KIO::AuthInfo&); - int messageBox (int, int, const QString&, const QString&, const QString&, const QString&); - -%If ( KDE_3_3_0 - ) - static int messageBox (int, int, const QString&, const QString&, const QString&, const QString&, const QString&); -%End - - KIO::RenameDlg_Result open_RenameDlg (KIO::Job*, const QString&, const QString&, const QString&, KIO::RenameDlg_Mode, QString&, KIO::filesize_t = -1, KIO::filesize_t = -1, time_t = -1, time_t = -1, time_t = -1, time_t = -1); - KIO::SkipDlg_Result open_SkipDlg (KIO::Job*, bool, const QString&); - -public: - void killJob (int); - KIO::MetaData metadata (int); - -protected: - Observer (); - ~Observer (); - -public slots: - void slotTotalSize (KIO::Job*, KIO::filesize_t); - void slotTotalFiles (KIO::Job*, ulong); - void slotTotalDirs (KIO::Job*, ulong); - void slotProcessedSize (KIO::Job*, KIO::filesize_t); - void slotProcessedFiles (KIO::Job*, ulong); - void slotProcessedDirs (KIO::Job*, ulong); - void slotSpeed (KIO::Job*, ulong); - void slotPercent (KIO::Job*, ulong); - void slotInfoMessage (KIO::Job*, const QString&); - void slotCopying (KIO::Job*, const KURL&, const KURL&); - void slotMoving (KIO::Job*, const KURL&, const KURL&); - void slotDeleting (KIO::Job*, const KURL&); - -%If ( KDE_3_1_0 - ) - void slotTransferring (KIO::Job*, const KURL&); -%End - - void slotCreatingDir (KIO::Job*, const KURL&); - void slotCanResume (KIO::Job*, KIO::filesize_t); - -public: - void stating (KIO::Job*, const KURL&); - void mounting (KIO::Job*, const QString&, const QString&); - void unmounting (KIO::Job*, const QString&); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class Observer - diff --git a/python/pykde/sip/kio/passdlg.sip b/python/pykde/sip/kio/passdlg.sip deleted file mode 100644 index 434f40b6..00000000 --- a/python/pykde/sip/kio/passdlg.sip +++ /dev/null @@ -1,68 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -namespace KIO -{ - -class PasswordDialog : KDialogBase -{ -%TypeHeaderCode -#include <passdlg.h> -%End - - -public: - PasswordDialog (const QString&, const QString&, bool = 0, bool = 1, QWidget* /TransferThis/ = 0, const char* = 0); - void setPrompt (const QString&); - void addCommentLine (const QString&, const QString); - QString password () const; - QString username () const; - bool keepPassword () const; - -%If ( KDE_3_2_0 - ) - void setKeepPassword (bool); -%End - - void setUserReadOnly (bool); - void setEnableUserField (bool, bool = 0); - -%If ( KDE_3_1_0 - ) - void setPassword (const QString&); - -%If ( KDE_3_4_0 - ) - void setKnownLogins (const QMap<QString,QString>&); -%End - -%End - - static int getNameAndPassword (QString& /Out/, QString& /Out/, bool* /In, Out/, const QString& = QString ::null , bool = 0, const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null ); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class PasswordDialog - -}; // namespace KIO - diff --git a/python/pykde/sip/kio/paste.sip b/python/pykde/sip/kio/paste.sip deleted file mode 100644 index 2757894e..00000000 --- a/python/pykde/sip/kio/paste.sip +++ /dev/null @@ -1,56 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -%ModuleHeaderCode -#include <paste.h> -%End - -namespace KIO -{ -KIO::Job* pasteClipboard (const KURL&, bool = 0); -void pasteData (const KURL&, const QByteArray&); - -%If ( KDE_3_2_0 - ) -KIO::CopyJob* pasteDataAsync (const KURL&, const QByteArray&); - -%If ( KDE_3_3_0 - ) -KIO::CopyJob* pasteDataAsync (const KURL&, const QByteArray&, const QString&); - -%If ( KDE_3_5_0 - ) -KIO::CopyJob* pasteMimeSource (QMimeSource*, const KURL&, const QString&, QWidget*, bool = 0); -%End - -%End - -%End - -bool isClipboardEmpty (); - -%If ( KDE_3_5_0 - ) -QString pasteActionText (); -%End - -}; // namespace KIO - diff --git a/python/pykde/sip/kio/previewjob.sip b/python/pykde/sip/kio/previewjob.sip deleted file mode 100644 index 8096b6f6..00000000 --- a/python/pykde/sip/kio/previewjob.sip +++ /dev/null @@ -1,72 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -namespace KIO -{ - -class PreviewJob : KIO::Job -{ -%TypeHeaderCode -#include <previewjob.h> -%End - - -public: - PreviewJob (const KFileItemList&, int, int, int, int, bool, bool, const QStringList*, bool = 0); - void removeItem (const KFileItem*); - -%If ( KDE_3_4_0 - ) - void setIgnoreMaximumSize (bool = 1); -%End - - static QStringList availablePlugins (); - static QStringList supportedMimeTypes (); - -%If ( KDE_3_5_1 - ) - virtual void kill (bool = 1); -%End - - -signals: - void gotPreview (const KFileItem*, const QPixmap&); - void failed (const KFileItem*); - -protected: - void getOrCreateThumbnail (); - bool statResultThumbnail (); - void createThumbnail (QString); - -protected slots: - virtual void slotResult (KIO::Job*); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class PreviewJob - -KIO::PreviewJob* filePreview (const KFileItemList&, int, int = 0, int = 0, int = 70, bool = 1, bool = 1, const QStringList* = 0); -KIO::PreviewJob* filePreview (const KURL::List&, int, int = 0, int = 0, int = 70, bool = 1, bool = 1, const QStringList* = 0); -}; // namespace KIO - diff --git a/python/pykde/sip/kio/progressbase.sip b/python/pykde/sip/kio/progressbase.sip deleted file mode 100644 index 0c6330ee..00000000 --- a/python/pykde/sip/kio/progressbase.sip +++ /dev/null @@ -1,95 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -%ModuleHeaderCode -#include <progressbase.h> -%End - -namespace KIO -{ - -enum Progress -{ - DEFAULT, - STATUSBAR, - LIST -}; - - -class ProgressBase : QWidget -{ -%TypeHeaderCode -#include <progressbase.h> -%End - - -public: - ProgressBase (QWidget* /TransferThis/); - void setJob (KIO::Job*); - void setJob (KIO::CopyJob*); - void setJob (KIO::DeleteJob*); - void setStopOnClose (bool); - bool stopOnClose () const; - void setOnlyClean (bool); - bool onlyClean () const; - -%If ( KDE_3_1_0 - ) - void finished (); -%End - - -public slots: - void slotStop (); - virtual void slotClean (); - virtual void slotTotalSize (KIO::Job*, KIO::filesize_t); - virtual void slotTotalFiles (KIO::Job*, ulong); - virtual void slotTotalDirs (KIO::Job*, ulong); - virtual void slotProcessedSize (KIO::Job*, KIO::filesize_t); - virtual void slotProcessedFiles (KIO::Job*, ulong); - virtual void slotProcessedDirs (KIO::Job*, ulong); - virtual void slotSpeed (KIO::Job*, ulong); - virtual void slotPercent (KIO::Job*, ulong); - virtual void slotCopying (KIO::Job*, const KURL&, const KURL&); - virtual void slotMoving (KIO::Job*, const KURL&, const KURL&); - virtual void slotDeleting (KIO::Job*, const KURL&); - virtual void slotCreatingDir (KIO::Job*, const KURL&); - virtual void slotCanResume (KIO::Job*, KIO::filesize_t); - -signals: - void stopped (); - -protected slots: - void slotFinished (KIO::Job*); - -protected: - virtual void closeEvent (QCloseEvent*); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class ProgressBase - -}; // namespace KIO - diff --git a/python/pykde/sip/kio/renamedlg.sip b/python/pykde/sip/kio/renamedlg.sip deleted file mode 100644 index 79c9bc1c..00000000 --- a/python/pykde/sip/kio/renamedlg.sip +++ /dev/null @@ -1,67 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -%ModuleHeaderCode -#include <renamedlg.h> -%End - -namespace KIO -{ - -enum RenameDlg_Mode -{ - M_OVERWRITE, - M_OVERWRITE_ITSELF, - M_SKIP, - M_SINGLE, - M_MULTI, - M_RESUME, - M_NORENAME -}; - - -enum RenameDlg_Result -{ - R_RESUME, - R_RESUME_ALL, - R_OVERWRITE, - R_OVERWRITE_ALL, - R_SKIP, - R_AUTO_SKIP, - R_RENAME, - R_CANCEL -}; - - -//ig class RenameDlg : QDialog; - -//ig KIO::RenameDlg_Result open_RenameDlg (const QString&, const QString&, const QString&, KIO::RenameDlg_Mode, QString&, KIO::filesize_t = (KIO ::filesize_t )-1 , KIO::filesize_t = (KIO ::filesize_t )-1 , time_t = -1 , time_t = -1 , time_t = -1 , time_t = -1 ); - -%If ( - KDE_3_1_5 ) -//ig KIO::RenameDlg_Result open_RenameDlg (const QString&, const QString&, const QString&, KIO::RenameDlg_Mode, QString&, ulong = -1, ulong = -1, time_t = -1, time_t = -1, time_t = -1, time_t = -1); -%End - -}; // namespace KIO - diff --git a/python/pykde/sip/kio/renamedlgplugin.sip b/python/pykde/sip/kio/renamedlgplugin.sip deleted file mode 100644 index 784dabf2..00000000 --- a/python/pykde/sip/kio/renamedlgplugin.sip +++ /dev/null @@ -1,39 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class RenameDlgPlugin : QWidget -{ -%TypeHeaderCode -#include <renamedlgplugin.h> -%End - - -public: - RenameDlgPlugin (QDialog*, const char*, const QStringList& = QStringList ()); - virtual bool initialize (KIO::RenameDlg_Mode, const QString&, const QString&, const QString&, const QString&, KIO::filesize_t, KIO::filesize_t, time_t, time_t, time_t, time_t); - -}; // class RenameDlgPlugin - diff --git a/python/pykde/sip/kio/scheduler.sip b/python/pykde/sip/kio/scheduler.sip deleted file mode 100644 index 31d3913b..00000000 --- a/python/pykde/sip/kio/scheduler.sip +++ /dev/null @@ -1,106 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -namespace KIO -{ - -class Scheduler : QObject, DCOPObject -{ -%TypeHeaderCode -#include <scheduler.h> -%End - - -public: -//ig typedef QPtrList<KIO::SimpleJob> JobList; - static void doJob (KIO::SimpleJob*); - static void scheduleJob (KIO::SimpleJob*); - static void cancelJob (KIO::SimpleJob*); - static void jobFinished (KIO::SimpleJob*, KIO::Slave*); - static void putSlaveOnHold (KIO::SimpleJob*, const KURL&); - static void removeSlaveOnHold (); - static void publishSlaveOnHold (); -//doc -// There is no default value for config (KIO.MetaData) - pass an -// empty Python dict if you need the default value -//end - static KIO::Slave* getConnectedSlave (const KURL&, const KIO::MetaData&); - static bool assignJobToSlave (KIO::Slave*, KIO::SimpleJob*); - static bool disconnectSlave (KIO::Slave*); - -%If ( KDE_3_1_0 - ) - static void registerWindow (QWidget*); - -%If ( KDE_3_2_0 - ) - static void unregisterWindow (QObject*); -%End - -%End - - static bool connect (const char*, const QObject*, const char*); - static bool connect (const QObject*, const char*, const QObject*, const char*); - static bool disconnect (const QObject*, const char*, const QObject*, const char*); - bool connect (const QObject*, const char*, const char*); - static void checkSlaveOnHold (bool); - void debug_info (); - virtual bool process (const QCString&, const QByteArray&, QCString&, QByteArray&); - virtual QCStringList functions (); - -public slots: - void slotSlaveDied (KIO::Slave*); - void slotSlaveStatus (pid_t, const QCString&, const QString&, bool); - -signals: - void slaveConnected (KIO::Slave*); - void slaveError (KIO::Slave*, int, const QString&); - -protected: - void setupSlave (KIO::Slave*, const KURL&, const QString&, const QString&, bool, const KIO::MetaData* = 0); -//ig bool startJobScheduled (KIO::Scheduler::ProtocolInfo*); - bool startJobDirect (); - Scheduler (); - -protected slots: - void startStep (); - void slotCleanIdleSlaves (); - void slotSlaveConnected (); - void slotSlaveError (int, const QString&); - void slotScheduleCoSlave (); - -%If ( KDE_3_1_0 - ) - void slotUnregisterWindow (QObject*); -%End - - -private: - Scheduler (const KIO::Scheduler&); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class Scheduler - -}; // namespace KIO - diff --git a/python/pykde/sip/kio/sessiondata.sip b/python/pykde/sip/kio/sessiondata.sip deleted file mode 100644 index 2ba25829..00000000 --- a/python/pykde/sip/kio/sessiondata.sip +++ /dev/null @@ -1,51 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -namespace KIO -{ - -class SessionData : QObject -{ -%TypeHeaderCode -#include <sessiondata.h> -%End - - -public: - SessionData (); - virtual void configDataFor (KIO::MetaData&, const QString&, const QString&); - virtual void reset (); - -public slots: - void slotAuthData (const QCString&, const QCString&, bool); - void slotDelAuthData (const QCString&); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class SessionData - -}; // namespace KIO - diff --git a/python/pykde/sip/kio/skipdlg.sip b/python/pykde/sip/kio/skipdlg.sip deleted file mode 100644 index 29bb91fe..00000000 --- a/python/pykde/sip/kio/skipdlg.sip +++ /dev/null @@ -1,45 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -%ModuleHeaderCode -#include <skipdlg.h> -%End - -namespace KIO -{ - -enum SkipDlg_Result -{ - S_SKIP, - S_AUTO_SKIP, - S_CANCEL -}; - -//ig KIO::SkipDlg_Result open_SkipDlg (bool, const QString& = QString ::null ); - -//ig class SkipDlg : KDialog; - -}; // namespace KIO - diff --git a/python/pykde/sip/kio/slave.sip b/python/pykde/sip/kio/slave.sip deleted file mode 100644 index 5db1ad17..00000000 --- a/python/pykde/sip/kio/slave.sip +++ /dev/null @@ -1,95 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -namespace KIO -{ - -class Slave : KIO::SlaveInterface -{ -%TypeHeaderCode -#include <slave.h> -%End - - -protected: - -%If ( KDE_3_2_0 - ) - Slave (bool, KServerSocket*, const QString&, const QString&); -%End - - -public: - Slave (KServerSocket*, const QString&, const QString&); - void setPID (pid_t); - int slave_pid (); - void kill (); - bool isAlive (); - void setHost (const QString&, int, const QString&, const QString&); - void resetHost (); - void setConfig (const KIO::MetaData&); - QString protocol (); - void setProtocol (const QString&); - QString slaveProtocol (); - QString host (); - int port (); - QString user (); - QString passwd (); - static KIO::Slave* createSlave (const QString&, const KURL&, int& /Out/, QString& /Out/); - static KIO::Slave* holdSlave (const QString&, const KURL&); - void suspend (); - void resume (); - bool suspended (); - -%If ( KDE_3_2_0 - ) - void send (int, const QByteArray& = QByteArray ()); -%End - - void hold (const KURL&); - time_t idleTime (); - void setIdle (); - bool isConnected (); - void setConnected (bool); - KIO::Connection* connection (); - void ref (); - void deref (); - -public slots: - void accept (KSocket*); - void gotInput (); - void timeout (); - -signals: - void slaveDied (KIO::Slave*); - -protected: - void unlinkSocket (); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class Slave - -}; // namespace KIO - diff --git a/python/pykde/sip/kio/slavebase.sip b/python/pykde/sip/kio/slavebase.sip deleted file mode 100644 index e5caa6c0..00000000 --- a/python/pykde/sip/kio/slavebase.sip +++ /dev/null @@ -1,187 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -namespace KIO -{ - -class SlaveBase -{ -%TypeHeaderCode -#include <slavebase.h> -%End - - -public: - SlaveBase (const QCString&, const QCString&, const QCString&); - -%If ( KDE_3_1_0 - ) - void exit (); -%End - - void dispatchLoop (); - void setConnection (KIO::Connection*); - KIO::Connection* connection () const; - void data (const QByteArray&); - void dataReq (); - void error (int, const QString&); - void connected (); - void finished (); - void needSubURLData (); - void slaveStatus (const QString&, bool); - void statEntry (const KIO::UDSEntry&); - void listEntries (const KIO::UDSEntryList&); - bool canResume (KIO::filesize_t); - void canResume (); - void totalSize (KIO::filesize_t); - void processedSize (KIO::filesize_t); - void processedPercent (float); - void speed (ulong); - void redirection (const KURL&); - void errorPage (); - void mimeType (const QString&); - void warning (const QString&); - void infoMessage (const QString&); - - enum MessageBoxType - { - QuestionYesNo, - WarningYesNo, - WarningContinueCancel, - WarningYesNoCancel, - Information, - SSLMessageBox - }; - - int messageBox (KIO::SlaveBase::MessageBoxType, const QString&, const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null ); - -%If ( KDE_3_3_0 - ) - int messageBox (const QString&, KIO::SlaveBase::MessageBoxType, const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null ); -%End - - void setMetaData (const QString&, const QString&); - bool hasMetaData (const QString&); - QString metaData (const QString&); - -%If ( KDE_3_5_2 - ) - KIO::MetaData allMetaData () const; -%End - - KConfigBase* config (); - -%If ( KDE_3_3_0 - ) - KRemoteEncoding* remoteEncoding (); -%End - - virtual void setHost (const QString&, int, const QString&, const QString&); - virtual void setSubURL (const KURL&); - virtual void openConnection (); - virtual void closeConnection (); - virtual void get (const KURL&); - virtual void put (const KURL&, int, bool, bool); - virtual void stat (const KURL&); - virtual void mimetype (const KURL&); - virtual void listDir (const KURL&); - virtual void mkdir (const KURL&, int); - virtual void rename (const KURL&, const KURL&, bool); - virtual void symlink (const QString&, const KURL&, bool); - virtual void chmod (const KURL&, int); - virtual void copy (const KURL&, const KURL&, int, bool); - virtual void del (const KURL&, bool) /PyName=del_/; - virtual void special (const QByteArray&); - virtual void multiGet (const QByteArray&); - virtual void slave_status (); - virtual void reparseConfiguration (); - int connectTimeout (); - int proxyConnectTimeout (); - int responseTimeout (); - int readTimeout (); - -%If ( KDE_3_1_0 - ) - void setTimeoutSpecialCommand (int, const QByteArray& = QByteArray ()); -%End - - static void sigsegv_handler (int); - static void sigpipe_handler (int); - virtual bool dispatch (); - virtual void dispatch (int, const QByteArray&); - int readData (QByteArray&); - -%If ( KDE_3_1_0 - ) - void listEntry (const KIO::UDSEntry&, bool); - void connectSlave (const QString&); - void disconnectSlave (); - bool openPassDlg (KIO::AuthInfo&, const QString&); - bool openPassDlg (KIO::AuthInfo&); - bool checkCachedAuthentication (KIO::AuthInfo&); - bool cacheAuthentication (const KIO::AuthInfo&); - bool pingCacheDaemon () const; - QString createAuthCacheKey (const KURL&); - void sendAuthenticationKey (const QCString&, const QCString&, bool); - void delCachedAuthentication (const QString&); - void setMultipleAuthCaching (bool); - bool multipleAuthCaching () const; - bool requestNetwork (const QString& = QString ::null ); - void dropNetwork (const QString& = QString ::null ); - DCOPClient* dcopClient (); - int waitForAnswer (int, int, QByteArray&, int* = 0); - void sendMetaData (); - QCString mProtocol; - KIO::Connection* m_pConnection; - KIO::MetaData mOutgoingMetaData; - KIO::MetaData mIncomingMetaData; - bool wasKilled () const; - void setKillFlag (); -%End - - -protected: -//igx virtual void virtual_hook (int, void*); - -protected: - -%If ( - KDE_3_1_0 ) - void listEntry (const KIO::UDSEntry&, bool); - void connectSlave (const QString&); - void disconnectSlave (); - bool pingCacheDaemon () const; - bool openPassDlg (KIO::AuthInfo&); - bool checkCachedAuthentication (KIO::AuthInfo&); - bool cacheAuthentication (const KIO::AuthInfo&); - QString createAuthCacheKey (const KURL&); - void sendAuthenticationKey (const QCString&, const QCString&, bool); - void delCachedAuthentication (const QString&); - void setMultipleAuthCaching (bool); - bool multipleAuthCaching () const; - bool requestNetwork (const QString& = QString ::null ); - void dropNetwork (const QString& = QString ::null ); - int waitForAnswer (int, int, QByteArray&, int* = 0); - void sendMetaData (); -%End - - -}; // class SlaveBase - -}; // namespace KIO - diff --git a/python/pykde/sip/kio/slaveconfig.sip b/python/pykde/sip/kio/slaveconfig.sip deleted file mode 100644 index 7ed17c9d..00000000 --- a/python/pykde/sip/kio/slaveconfig.sip +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -namespace KIO -{ - -class SlaveConfig : QObject -{ -%TypeHeaderCode -#include <slaveconfig.h> -%End - - -public: - static KIO::SlaveConfig* self (); - void setConfigData (const QString&, const QString&, const QString&, const QString&); - void setConfigData (const QString&, const QString&, const KIO::MetaData&); - KIO::MetaData configData (const QString&, const QString&); - QString configData (const QString&, const QString&, const QString&); - void reset (); - -signals: - void configNeeded (const QString&, const QString&); - -protected: - SlaveConfig (); - -}; // class SlaveConfig - -}; // namespace KIO - diff --git a/python/pykde/sip/kio/slaveinterface.sip b/python/pykde/sip/kio/slaveinterface.sip deleted file mode 100644 index 764b78f4..00000000 --- a/python/pykde/sip/kio/slaveinterface.sip +++ /dev/null @@ -1,188 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -%ModuleHeaderCode -#include <slaveinterface.h> -%End - -namespace KIO -{ - -enum Info -{ - INF_TOTAL_SIZE, - INF_PROCESSED_SIZE, - INF_SPEED, - INF_REDIRECTION, - INF_MIME_TYPE, - INF_ERROR_PAGE, - INF_WARNING, - INF_GETTING_FILE, - INF_NEED_PASSWD, - INF_INFOMESSAGE, - INF_META_DATA, - INF_NETWORK_STATUS, - INF_MESSAGEBOX -}; - - -%If ( KDE_3_1_2 - ) - -enum Message -{ - MSG_DATA, - MSG_DATA_REQ, - MSG_ERROR, - MSG_CONNECTED, - MSG_FINISHED, - MSG_STAT_ENTRY, - MSG_LIST_ENTRIES, - MSG_RENAMED, - MSG_RESUME, - MSG_SLAVE_STATUS, - MSG_SLAVE_ACK, - MSG_NET_REQUEST, - MSG_NET_DROP, - MSG_NEED_SUBURL_DATA, - MSG_CANRESUME, - MSG_AUTH_KEY, - MSG_DEL_AUTH_KEY -}; - -%End - - -class SlaveInterface : QObject -{ -%TypeHeaderCode -#include <slaveinterface.h> -%End - - -public: - SlaveInterface (KIO::Connection*); - void setConnection (KIO::Connection*); - KIO::Connection* connection () const; - void setProgressId (int); - int progressId () const; - void sendResumeAnswer (bool); - void setOffset (KIO::filesize_t); - KIO::filesize_t offset () const; - -signals: - void data (const QByteArray&); - void dataReq (); - void error (int, const QString&); - void connected (); - void finished (); - void slaveStatus (pid_t, const QCString&, const QString&, bool); - void listEntries (const KIO::UDSEntryList&); - void statEntry (const KIO::UDSEntry&); - void needSubURLData (); - void needProgressId (); - void canResume (KIO::filesize_t); - void metaData (const KIO::MetaData&); - void totalSize (KIO::filesize_t); - void processedSize (KIO::filesize_t); - void redirection (const KURL&); - void speed (ulong); - void errorPage (); - void mimeType (const QString&); - void warning (const QString&); - void infoMessage (const QString&); - void connectFinished (); - void authorizationKey (const QCString&, const QCString&, bool); - void delAuthorization (const QCString&); - -protected: - virtual bool dispatch (); - virtual bool dispatch (int, const QByteArray&); - void openPassDlg (KIO::AuthInfo&); - void openPassDlg (const QString&, const QString&, const QString&, const QString&, const QString&, bool); - void openPassDlg (const QString&, const QString&, bool); - void messageBox (int, const QString&, const QString&, const QString&, const QString&); - -%If ( KDE_3_3_0 - ) - void messageBox (int, const QString&, const QString&, const QString&, const QString&, const QString&); -%End - - void requestNetwork (const QString&, const QString&); - void dropNetwork (const QString&, const QString&); - static void sigpipe_handler (int); - -protected slots: - void calcSpeed (); - -protected: - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class SlaveInterface - - -%If ( - KDE_3_2_0 ) - -enum Command -{ - CMD_HOST, - CMD_CONNECT, - CMD_DISCONNECT, - CMD_SLAVE_STATUS, - CMD_SLAVE_CONNECT, - CMD_SLAVE_HOLD, - CMD_NONE, - CMD_TESTDIR, - CMD_GET, - CMD_PUT, - CMD_STAT, - CMD_MIMETYPE, - CMD_LISTDIR, - CMD_MKDIR, - CMD_RENAME, - CMD_COPY, - CMD_DEL, - CMD_CHMOD, - CMD_SPECIAL, - CMD_USERPASS, - CMD_REPARSECONFIGURATION, - CMD_META_DATA, - CMD_SYMLINK, - CMD_SUBURL, - CMD_MESSAGEBOXANSWER, - CMD_RESUMEANSWER, - CMD_CONFIG, - CMD_MULTI_GET -}; - -%End - -}; // namespace KIO - - -%If ( KDE_3_1_4 - ) -//igx QDataStream& operator << (QDataStream&, const KIO::UDSEntry&); -//igx QDataStream& operator >> (QDataStream&, KIO::UDSEntry&); -%End diff --git a/python/pykde/sip/kio/statusbarprogress.sip b/python/pykde/sip/kio/statusbarprogress.sip deleted file mode 100644 index 5c165bd5..00000000 --- a/python/pykde/sip/kio/statusbarprogress.sip +++ /dev/null @@ -1,56 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -namespace KIO -{ - -class StatusbarProgress : KIO::ProgressBase -{ -%TypeHeaderCode -#include <statusbarprogress.h> -%End - - -public: - StatusbarProgress (QWidget* /TransferThis/, bool = 1); - void setJob (KIO::Job*); - -public slots: - virtual void slotClean (); - virtual void slotTotalSize (KIO::Job*, KIO::filesize_t); - virtual void slotPercent (KIO::Job*, ulong); - virtual void slotSpeed (KIO::Job*, ulong); - -protected: - void setMode (); - virtual bool eventFilter (QObject*, QEvent*); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class StatusbarProgress - -}; // namespace KIO - diff --git a/python/pykde/sip/kio/tcpslavebase.sip b/python/pykde/sip/kio/tcpslavebase.sip deleted file mode 100644 index 407b0fce..00000000 --- a/python/pykde/sip/kio/tcpslavebase.sip +++ /dev/null @@ -1,91 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -namespace KIO -{ - -class TCPSlaveBase : KIO::SlaveBase -{ -%TypeHeaderCode -#include <tcpslavebase.h> -%End - - -public: - TCPSlaveBase (ushort, const QCString&, const QCString&, const QCString&); - TCPSlaveBase (ushort, const QCString&, const QCString&, const QCString&, bool); - -protected: - ssize_t Write (const void*, ssize_t); - ssize_t Read (void*, ssize_t); - ssize_t ReadLine (char*, ssize_t); - ushort GetPort (ushort); - bool ConnectToHost (const QString&, uint, bool); - void CloseDescriptor (); - bool AtEOF (); - bool InitializeSSL (); - void CleanSSL (); - ssize_t write (const void*, ssize_t); - ssize_t read (void*, ssize_t); - ssize_t readLine (char*, ssize_t); - void setBlockSize (int); - ushort port (ushort); - bool connectToHost (const QString&, uint, bool = 1); - -%If ( KDE_3_2_0 - ) - bool usingSSL () const; -%End - - bool usingTLS (); - bool canUseTLS (); - int startTLS (); - void stopTLS (); - void closeDescriptor (); - bool atEnd (); - void setSSLMetaData (); - bool initializeSSL (); - void cleanSSL (); - bool isConnectionValid (); - int connectResult (); - bool waitForResponse (int); - void setBlockConnection (bool); - void setConnectTimeout (int); - bool isSSLTunnelEnabled (); - void setEnableSSLTunnel (bool); - void setRealHost (const QString&); - void doConstructorStuff (); - int verifyCertificate (); - void certificatePrompt (); - bool userAborted () const; - -protected: - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class TCPSlaveBase - -}; // namespace KIO - diff --git a/python/pykde/sip/kio/thumbcreator.sip b/python/pykde/sip/kio/thumbcreator.sip deleted file mode 100644 index e8aff184..00000000 --- a/python/pykde/sip/kio/thumbcreator.sip +++ /dev/null @@ -1,47 +0,0 @@ -// -// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio version KDE 3.5.3 - - -// This software is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of -// the License, or (at your option) any later version. -// -// This software is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public -// License along with this library; see the file COPYING. -// If not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -class ThumbCreator -{ -%TypeHeaderCode -#include <thumbcreator.h> -%End - - -public: - - enum Flags - { - None, - DrawFrame, - BlendIcon - }; - - virtual bool create (const QString&, int, int, QImage&) = 0; - virtual ThumbCreator::Flags flags () const; - -}; // class ThumbCreator - |