From cd050c7976d8e89ebe33dffb28b35f168ebb16cf Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 13 Jul 2025 20:07:11 +0900 Subject: Use TDEDesktopFile Signed-off-by: Michele Calgaro --- doc/classref/allclasses.html | 2 +- doc/classref/tdecore/KDesktopFile.html | 155 ----------------------------- doc/classref/tdecore/TDEDesktopFile.html | 155 +++++++++++++++++++++++++++++ doc/classref/tdecore/index.html | 2 +- doc/classref/tdeio/KDEDesktopMimeType.html | 2 +- doc/classref/tdeio/KExecMimeType.html | 2 +- doc/classref/tdeio/KFolderType.html | 2 +- doc/classref/tdeio/KMimeType.html | 4 +- doc/classref/tdeio/KService.html | 4 +- doc/classref/tdeio/KServiceType.html | 4 +- examples/pytde-sampler/qt_widgets/CONTRIB | 2 +- sip/tdecore/kdesktopfile.sip | 85 ---------------- sip/tdecore/tdeaccel.sip | 2 +- sip/tdecore/tdecoremod.sip.in | 2 +- sip/tdecore/tdedesktopfile.sip | 85 ++++++++++++++++ sip/tdeio/kmimetype.sip | 10 +- sip/tdeio/kservice.sip | 4 +- sip/tdeio/kservicetype.sip | 4 +- 18 files changed, 263 insertions(+), 263 deletions(-) delete mode 100644 doc/classref/tdecore/KDesktopFile.html create mode 100644 doc/classref/tdecore/TDEDesktopFile.html delete mode 100644 sip/tdecore/kdesktopfile.sip create mode 100644 sip/tdecore/tdedesktopfile.sip diff --git a/doc/classref/allclasses.html b/doc/classref/allclasses.html index caa6ef5..49c11e0 100644 --- a/doc/classref/allclasses.html +++ b/doc/classref/allclasses.html @@ -334,7 +334,7 @@ KDateTimeWidget KDateValidator KDateWidget -KDesktopFile +TDEDesktopFile KDesktopPropsPlugin KDevicePropsPlugin KDialog diff --git a/doc/classref/tdecore/KDesktopFile.html b/doc/classref/tdecore/KDesktopFile.html deleted file mode 100644 index dc7a024..0000000 --- a/doc/classref/tdecore/KDesktopFile.html +++ /dev/null @@ -1,155 +0,0 @@ - - - - - class KDesktopFile - - - - -

PyKDE - Python Bindings for KDE

-
- - - -
-

class KDesktopFile


-
- - - - - -
Table of contents
Modules
tdecore Classes
All Classes
-
- - - - - - - - - - -
Moduletdecore
ClassKDesktopFile
InheritsTDEConfig
-

methods

- - - diff --git a/doc/classref/tdecore/TDEDesktopFile.html b/doc/classref/tdecore/TDEDesktopFile.html new file mode 100644 index 0000000..5b0c511 --- /dev/null +++ b/doc/classref/tdecore/TDEDesktopFile.html @@ -0,0 +1,155 @@ + + + + + class TDEDesktopFile + + + + +

PyKDE - Python Bindings for KDE

+
+ + + +
+

class TDEDesktopFile


+
+ + + + + +
Table of contents
Modules
tdecore Classes
All Classes
+
+ + + + + + + + + + +
Moduletdecore
ClassTDEDesktopFile
InheritsTDEConfig
+

methods

+ + + diff --git a/doc/classref/tdecore/index.html b/doc/classref/tdecore/index.html index 7e73bc1..eeb2aad 100644 --- a/doc/classref/tdecore/index.html +++ b/doc/classref/tdecore/index.html @@ -86,7 +86,7 @@ TDECrash KDCOPPropertyProxy KDE -KDesktopFile +TDEDesktopFile KEntry KEntryKey TDEGlobal diff --git a/doc/classref/tdeio/KDEDesktopMimeType.html b/doc/classref/tdeio/KDEDesktopMimeType.html index 9f9fc35..9d111ad 100644 --- a/doc/classref/tdeio/KDEDesktopMimeType.html +++ b/doc/classref/tdeio/KDEDesktopMimeType.html @@ -41,7 +41,7 @@
  • KDEDesktopMimeType (config)
    returns a KDEDesktopMimeType instance
    - +
    ArgumentTypeDefault
    configKDesktopFile
    configTDEDesktopFile

  • KDEDesktopMimeType (_str, offset) diff --git a/doc/classref/tdeio/KExecMimeType.html b/doc/classref/tdeio/KExecMimeType.html index aa9c5e1..08f7a48 100644 --- a/doc/classref/tdeio/KExecMimeType.html +++ b/doc/classref/tdeio/KExecMimeType.html @@ -38,7 +38,7 @@
  • KExecMimeType (config)
    returns a KExecMimeType instance
    - +
    ArgumentTypeDefault
    configKDesktopFile
    configTDEDesktopFile

  • KExecMimeType (_str, offset) diff --git a/doc/classref/tdeio/KFolderType.html b/doc/classref/tdeio/KFolderType.html index ef57bba..ed2f80c 100644 --- a/doc/classref/tdeio/KFolderType.html +++ b/doc/classref/tdeio/KFolderType.html @@ -38,7 +38,7 @@
  • KFolderType (config)
    returns a KFolderType instance
    - +
    ArgumentTypeDefault
    configKDesktopFile
    configTDEDesktopFile

  • KFolderType (_str, offset) diff --git a/doc/classref/tdeio/KMimeType.html b/doc/classref/tdeio/KMimeType.html index fb85344..6adcc06 100644 --- a/doc/classref/tdeio/KMimeType.html +++ b/doc/classref/tdeio/KMimeType.html @@ -54,7 +54,7 @@
  • KMimeType (config)
    returns a KMimeType instance
    - +
    ArgumentTypeDefault
    configKDesktopFile
    configTDEDesktopFile

  • KMimeType (_str, offset) @@ -197,7 +197,7 @@
  • init (a0)
    returns nothing
    - +
    ArgumentTypeDefault
    a0KDesktopFile
    a0TDEDesktopFile

  • is_ (mimeTypeName) diff --git a/doc/classref/tdeio/KService.html b/doc/classref/tdeio/KService.html index 2788ccd..ebe46d6 100644 --- a/doc/classref/tdeio/KService.html +++ b/doc/classref/tdeio/KService.html @@ -58,7 +58,7 @@
  • KService (config)
    returns a KService instance
    - +
    ArgumentTypeDefault
    configKDesktopFile
    configTDEDesktopFile

  • KService (_str, offset) @@ -128,7 +128,7 @@
  • init (config)
    returns nothing
    - +
    ArgumentTypeDefault
    configKDesktopFile
    configTDEDesktopFile

  • initialPreference () diff --git a/doc/classref/tdeio/KServiceType.html b/doc/classref/tdeio/KServiceType.html index 0abecde..f2c4688 100644 --- a/doc/classref/tdeio/KServiceType.html +++ b/doc/classref/tdeio/KServiceType.html @@ -53,7 +53,7 @@
  • KServiceType (config)
    returns a KServiceType instance
    - +
    ArgumentTypeDefault
    configKDesktopFile
    configTDEDesktopFile

  • KServiceType (_str, offset) @@ -93,7 +93,7 @@
  • init (config)
    returns nothing
    - +
    ArgumentTypeDefault
    configKDesktopFile
    configTDEDesktopFile

  • isDerived () diff --git a/examples/pytde-sampler/qt_widgets/CONTRIB b/examples/pytde-sampler/qt_widgets/CONTRIB index e99256b..392a86c 100644 --- a/examples/pytde-sampler/qt_widgets/CONTRIB +++ b/examples/pytde-sampler/qt_widgets/CONTRIB @@ -45,7 +45,7 @@ tdecore,TDEConfigSkeletonItem,,, tdecore,TDECrash,,, tdecore,KDCOPPropertyProxy,,, tdecore,TDE,,, -tdecore,KDesktopFile,,, +tdecore,TDEDesktopFile,,, tdecore,KEntry,,, tdecore,KEntryKey,,, tdecore,TDEGlobal,,, diff --git a/sip/tdecore/kdesktopfile.sip b/sip/tdecore/kdesktopfile.sip deleted file mode 100644 index f3b50ef..0000000 --- a/sip/tdecore/kdesktopfile.sip +++ /dev/null @@ -1,85 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore 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 KDesktopFile : TDEConfig -{ -%TypeHeaderCode -#include -%End - - -public: - KDesktopFile (const TQString&, bool = 0, const char* = "apps"); - static bool isDesktopFile (const TQString&); - -%If ( KDE_3_1_0 - ) - static bool isAuthorizedDesktopFile (const TQString&); - -%If ( KDE_3_2_0 - ) - static TQString locateLocal (const TQString&); -%End - -%End - - TQString readType () const; - TQString readIcon () const; - TQString readName () const; - TQString readComment () const; - TQString readGenericName () const; - TQString readPath () const; - TQString readDevice () const; - TQString readURL () const; - TQStringList readActions () const; - void setActionGroup (const TQString&); - bool hasActionGroup (const TQString&) const; - bool hasLinkType () const; - bool hasApplicationType () const; - bool hasMimeTypeType () const; - bool hasDeviceType () const; - bool tryExec () const; - TQString fileName () const; - TQString resource () const; - -%If ( KDE_3_1_0 - ) - TQString readDocPath () const; -%End - - TQStringList sortOrder () const; - -%If ( KDE_3_2_0 - ) - KDesktopFile* copyTo (const TQString&) const; -%End - - TQString filename () const; - -private: - KDesktopFile (const KDesktopFile&); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KDesktopFile - diff --git a/sip/tdecore/tdeaccel.sip b/sip/tdecore/tdeaccel.sip index 08d60f9..d6e0601 100644 --- a/sip/tdecore/tdeaccel.sip +++ b/sip/tdecore/tdeaccel.sip @@ -129,7 +129,7 @@ public: {sipName_TDEConfig, &sipClass_TDEConfig}, {sipName_TDEConfigBase, &sipClass_TDEConfigBase}, {sipName_TDEConfigGroup, &sipClass_TDEConfigGroup}, - {sipName_KDesktopFile, &sipClass_KDesktopFile}, + {sipName_TDEDesktopFile, &sipClass_TDEDesktopFile}, {sipName_TDEGlobalAccel, &sipClass_TDEGlobalAccel}, {sipName_KLibFactory, &sipClass_KLibFactory}, {sipName_KLibLoader, &sipClass_KLibLoader}, diff --git a/sip/tdecore/tdecoremod.sip.in b/sip/tdecore/tdecoremod.sip.in index 17ef050..139d454 100644 --- a/sip/tdecore/tdecoremod.sip.in +++ b/sip/tdecore/tdecoremod.sip.in @@ -51,7 +51,7 @@ %Include tdeconfigdata.sip %Include tdecrash.sip %Include kdcoppropertyproxy.sip -%Include kdesktopfile.sip +%Include tdedesktopfile.sip %Include tdeglobal.sip %Include tdeglobalaccel.sip %Include tdeglobalsettings.sip diff --git a/sip/tdecore/tdedesktopfile.sip b/sip/tdecore/tdedesktopfile.sip new file mode 100644 index 0000000..bd37f5b --- /dev/null +++ b/sip/tdecore/tdedesktopfile.sip @@ -0,0 +1,85 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore 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 TDEDesktopFile : TDEConfig +{ +%TypeHeaderCode +#include +%End + + +public: + TDEDesktopFile (const TQString&, bool = 0, const char* = "apps"); + static bool isDesktopFile (const TQString&); + +%If ( KDE_3_1_0 - ) + static bool isAuthorizedDesktopFile (const TQString&); + +%If ( KDE_3_2_0 - ) + static TQString locateLocal (const TQString&); +%End + +%End + + TQString readType () const; + TQString readIcon () const; + TQString readName () const; + TQString readComment () const; + TQString readGenericName () const; + TQString readPath () const; + TQString readDevice () const; + TQString readURL () const; + TQStringList readActions () const; + void setActionGroup (const TQString&); + bool hasActionGroup (const TQString&) const; + bool hasLinkType () const; + bool hasApplicationType () const; + bool hasMimeTypeType () const; + bool hasDeviceType () const; + bool tryExec () const; + TQString fileName () const; + TQString resource () const; + +%If ( KDE_3_1_0 - ) + TQString readDocPath () const; +%End + + TQStringList sortOrder () const; + +%If ( KDE_3_2_0 - ) + TDEDesktopFile* copyTo (const TQString&) const; +%End + + TQString filename () const; + +private: + TDEDesktopFile (const TDEDesktopFile&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class TDEDesktopFile + diff --git a/sip/tdeio/kmimetype.sip b/sip/tdeio/kmimetype.sip index bda64cb..467a1d8 100644 --- a/sip/tdeio/kmimetype.sip +++ b/sip/tdeio/kmimetype.sip @@ -39,7 +39,7 @@ public: public: KMimeType (const TQString&, const TQString&, const TQString&, const TQString&, const TQStringList&); KMimeType (const TQString&); - KMimeType (KDesktopFile*); + KMimeType (TDEDesktopFile*); KMimeType (TQDataStream&, int); virtual TQString icon (const TQString&, bool) const; virtual TQString icon (const KURL&, bool) const; @@ -108,7 +108,7 @@ public: protected: void loadInternal (TQDataStream&); - void init (KDesktopFile*); + void init (TDEDesktopFile*); static void errorMissingMimeType (const TQString&); static void buildDefaultType (); static void checkEssentialMimeTypes (); @@ -134,7 +134,7 @@ class KFolderType : KMimeType public: - KFolderType (KDesktopFile*); + KFolderType (TDEDesktopFile*); KFolderType (TQDataStream&, int); virtual TQString icon (const TQString&, bool) const; virtual TQString icon (const KURL&, bool) const; @@ -184,7 +184,7 @@ public: public: - KDEDesktopMimeType (KDesktopFile*); + KDEDesktopMimeType (TDEDesktopFile*); KDEDesktopMimeType (TQDataStream&, int); virtual TQString icon (const TQString&, bool) const; virtual TQString icon (const KURL&, bool) const; @@ -228,7 +228,7 @@ class KExecMimeType : KMimeType public: - KExecMimeType (KDesktopFile*); + KExecMimeType (TDEDesktopFile*); KExecMimeType (TQDataStream&, int); protected: diff --git a/sip/tdeio/kservice.sip b/sip/tdeio/kservice.sip index 9d01435..f0b8c8d 100644 --- a/sip/tdeio/kservice.sip +++ b/sip/tdeio/kservice.sip @@ -38,7 +38,7 @@ public: public: KService (const TQString&, const TQString&, const TQString&); KService (const TQString&); - KService (KDesktopFile*); + KService (TDEDesktopFile*); KService (TQDataStream&, int); virtual TQString type () /PyName=type_/; virtual TQString name () const; @@ -141,7 +141,7 @@ public: protected: - void init (KDesktopFile*); + void init (TDEDesktopFile*); TQStringList& accessServiceTypes (); %If ( KDE_3_1_1 - ) diff --git a/sip/tdeio/kservicetype.sip b/sip/tdeio/kservicetype.sip index 5d093e7..df72c8d 100644 --- a/sip/tdeio/kservicetype.sip +++ b/sip/tdeio/kservicetype.sip @@ -37,7 +37,7 @@ public: public: KServiceType (const TQString&, const TQString&, const TQString&, const TQString&); KServiceType (const TQString&); - KServiceType (KDesktopFile*); + KServiceType (TDEDesktopFile*); KServiceType (TQDataStream&, int); TQString icon () const; TQString comment () const; @@ -70,7 +70,7 @@ public: static KServiceType::List allServiceTypes (); protected: - void init (KDesktopFile*); + void init (TDEDesktopFile*); protected: -- cgit v1.2.3