summaryrefslogtreecommitdiffstats
path: root/sip/tdecore/ktimezones.sip
diff options
context:
space:
mode:
Diffstat (limited to 'sip/tdecore/ktimezones.sip')
-rw-r--r--sip/tdecore/ktimezones.sip44
1 files changed, 22 insertions, 22 deletions
diff --git a/sip/tdecore/ktimezones.sip b/sip/tdecore/ktimezones.sip
index dc31c4f..fb92fdb 100644
--- a/sip/tdecore/ktimezones.sip
+++ b/sip/tdecore/ktimezones.sip
@@ -34,9 +34,9 @@ class KTimezoneSource : KShared
public:
- KTimezoneSource (const QString&);
- virtual QString db ();
- virtual bool parse (const QString&, KTimezoneDetails&) const;
+ KTimezoneSource (const TQString&);
+ virtual TQString db ();
+ virtual bool parse (const TQString&, KTimezoneDetails&) const;
}; // class KTimezoneSource
@@ -56,15 +56,15 @@ public:
static const float UNKNOWN;
static bool isValidLatitude (float);
static bool isValidLongitude (float);
- KTimezone (KSharedPtr<KTimezoneSource>, const QString&, const QString& = QString (), float = KTimezone ::UNKNOWN , float = KTimezone ::UNKNOWN , const QString& = QString ());
- QString name () const;
- QString countryCode () const;
+ KTimezone (KSharedPtr<KTimezoneSource>, const TQString&, const TQString& = TQString (), float = KTimezone ::UNKNOWN , float = KTimezone ::UNKNOWN , const TQString& = TQString ());
+ TQString name () const;
+ TQString countryCode () const;
float latitude () const;
float longitude () const;
- int offset (Qt::TimeSpec = Qt ::UTC ) const;
- int offset (const QDateTime&) const;
- QDateTime convert (const KTimezone*, const QDateTime&) const;
- QString comment () const;
+ int offset (TQt::TimeSpec = TQt ::UTC ) const;
+ int offset (const TQDateTime&) const;
+ TQDateTime convert (const KTimezone*, const TQDateTime&) const;
+ TQString comment () const;
bool parse (KTimezoneDetails&) const;
private:
@@ -97,7 +97,7 @@ public:
virtual void gotTransitionTime (int, uint);
virtual void gotLocalTimeIndex (int, uint);
virtual void gotLocalTime (int, int, bool, uint);
- virtual void gotAbbreviation (int, const QString&);
+ virtual void gotAbbreviation (int, const TQString&);
virtual void gotLeapAdjustment (int, uint, uint);
virtual void gotIsStandard (int, bool);
virtual void gotIsUTC (int, bool);
@@ -119,8 +119,8 @@ class KTimezones
public:
KTimezones ();
const KTimezone* local ();
- const KTimezone* zone (const QString&);
- typedef QMap<QString,KTimezone*> ZoneMap;
+ const KTimezone* zone (const TQString&);
+ typedef TQMap<TQString,KTimezone*> ZoneMap;
const KTimezones::ZoneMap allZones ();
void add (KTimezone*);
@@ -180,7 +180,7 @@ private:
%If (KDE_3_5_0 - )
%MappedType KTimezones::ZoneMap
-//converts a Python dict of QString:KTimezone
+//converts a Python dict of TQString:KTimezone
{
%TypeHeaderCode
#include <qmap.h>
@@ -203,16 +203,16 @@ private:
// Get it.
- const QMap<QString, KTimezone*> cppmap = *sipCpp;
- QMap<QString, KTimezone*>::ConstIterator it;
+ const TQMap<TQString, KTimezone*> cppmap = *sipCpp;
+ TQMap<TQString, KTimezone*>::ConstIterator it;
for (it = cppmap.begin (); it != cppmap.end (); ++it)
{
- QString acpp = it.key ();
+ TQString acpp = it.key ();
KTimezone *bcpp = it.data ();
PyObject *ainst;
PyObject *binst = NULL;
- if (((ainst = sipConvertFromNewType(new QString(acpp), sipType_QString, sipTransferObj)) == NULL)
+ if (((ainst = sipConvertFromNewType(new TQString(acpp), sipType_QString, sipTransferObj)) == NULL)
|| ((binst = sipConvertFromType(bcpp, sipType_KTimezone, sipTransferObj)) == NULL)
|| (PyDict_SetItem (dict, ainst, binst) < 0))
{
@@ -228,23 +228,23 @@ private:
%ConvertToTypeCode
- // Convert a Python dictionary to a QMap on the heap.
+ // Convert a Python dictionary to a TQMap on the heap.
if (sipIsErr == NULL)
return PyDict_Check(sipPy);
- QMap<QString, KTimezone*> *cppmap = new QMap<QString, KTimezone*>;
+ TQMap<TQString, KTimezone*> *cppmap = new TQMap<TQString, KTimezone*>;
PyObject *aelem, *belem;
SIP_SSIZE_T pos = 0;
- QString *acpp;
+ TQString *acpp;
KTimezone *bcpp;
while (PyDict_Next(sipPy, &pos, &aelem, &belem))
{
int iserr = 0, acpp_state;
- acpp = (QString *)sipForceConvertToType(aelem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr);
+ acpp = (TQString *)sipForceConvertToType(aelem, sipType_QString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr);
bcpp = (KTimezone *)sipForceConvertToType(belem, sipType_KTimezone, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr);
if (iserr)