summaryrefslogtreecommitdiffstats
path: root/sip/qtnetwork/qdns.sip
diff options
context:
space:
mode:
Diffstat (limited to 'sip/qtnetwork/qdns.sip')
-rw-r--r--sip/qtnetwork/qdns.sip84
1 files changed, 42 insertions, 42 deletions
diff --git a/sip/qtnetwork/qdns.sip b/sip/qtnetwork/qdns.sip
index b91bb9f..ed83928 100644
--- a/sip/qtnetwork/qdns.sip
+++ b/sip/qtnetwork/qdns.sip
@@ -1,38 +1,38 @@
-// This is the SIP interface definition for QDns.
+// This is the SIP interface definition for TQDns.
//
// Copyright (c) 2007
// Riverbank Computing Limited <info@riverbankcomputing.co.uk>
//
-// This file is part of PyQt.
+// This file is part of PyTQt.
//
-// This copy of PyQt is free software; you can redistribute it and/or modify it
+// This copy of PyTQt 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, or (at your option) any later
// version.
//
-// PyQt is supplied in the hope that it will be useful, but WITHOUT ANY
+// PyTQt is supplied 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
-// PyQt; see the file LICENSE. If not, write to the Free Software Foundation,
+// PyTQt; see the file LICENSE. If not, write to the Free Software Foundation,
// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
%ExportedDoc
-<Sect2><Title>QDns (Qt v2.2+)</Title>
+<Sect2><Title>TQDns (TQt v2.2+)</Title>
<Para>
-<Literal>QDns</Literal> is fully implemented.
+<Literal>TQDns</Literal> is fully implemented.
</Para>
</Sect2>
%End
-%If (Qt_DNS)
-%If (Qt_2_2_0 -)
+%If (TQt_DNS)
+%If (TQt_2_2_0 -)
-class QDns : QObject
+class TQDns : TQObject
{
%TypeHeaderCode
#include <qdns.h>
@@ -50,67 +50,67 @@ public:
Txt
};
- QDns();
- QDns(const QString &,RecordType = A);
- QDns(const QHostAddress &,RecordType = A);
+ TQDns();
+ TQDns(const TQString &,RecordType = A);
+ TQDns(const TQHostAddress &,RecordType = A);
- virtual void setLabel(const QString &);
- virtual void setLabel(const QHostAddress &);
- QString label() const;
+ virtual void setLabel(const TQString &);
+ virtual void setLabel(const TQHostAddress &);
+ TQString label() const;
virtual void setRecordType(RecordType = A);
RecordType recordType() const;
bool isWorking() const;
- QValueList<QHostAddress> addresses() const;
+ TQValueList<TQHostAddress> addresses() const;
class MailServer
{
public:
- MailServer(const QString & = QString::null,Q_UINT16 = 0);
+ MailServer(const TQString & = TQString::null,Q_UINT16 = 0);
- QString name;
+ TQString name;
Q_UINT16 priority;
};
- QValueList<QDns::MailServer> mailServers() const;
+ TQValueList<TQDns::MailServer> mailServers() const;
class Server
{
public:
- Server(const QString & = QString::null,Q_UINT16 = 0,
+ Server(const TQString & = TQString::null,Q_UINT16 = 0,
Q_UINT16 = 0,Q_UINT16 = 0);
- QString name;
+ TQString name;
Q_UINT16 priority;
Q_UINT16 weight;
Q_UINT16 port;
};
- QValueList<QDns::Server> servers() const;
+ TQValueList<TQDns::Server> servers() const;
- QStringList hostNames() const;
+ TQStringList hostNames() const;
- QStringList texts() const;
+ TQStringList texts() const;
- QString canonicalName() const;
+ TQString canonicalName() const;
- QStringList qualifiedNames() const;
+ TQStringList qualifiedNames() const;
signals:
void resultsReady();
};
-%MappedType QValueList<QHostAddress>
+%MappedType TQValueList<TQHostAddress>
{
%TypeHeaderCode
#include <qvaluelist.h>
%End
%ConvertFromTypeCode
- // Convert to a Python list of QHostAddress instances.
+ // Convert to a Python list of TQHostAddress instances.
int i;
PyObject *l;
@@ -123,13 +123,13 @@ signals:
// Get it.
i = 0;
- QValueListConstIterator<QHostAddress> it;
+ TQValueListConstIterator<TQHostAddress> it;
for (it = sipCpp -> begin(); it != sipCpp -> end(); ++it)
{
PyObject *tmobj;
- if ((tmobj = sipConvertFromNewInstance(new QHostAddress(*it),sipClass_QHostAddress,sipTransferObj)) == NULL || PyList_SetItem(l,i,tmobj) < 0)
+ if ((tmobj = sipConvertFromNewInstance(new TQHostAddress(*it),sipClass_QHostAddress,sipTransferObj)) == NULL || PyList_SetItem(l,i,tmobj) < 0)
{
Py_XDECREF(tmobj);
Py_DECREF(l);
@@ -150,7 +150,7 @@ signals:
if (sipIsErr == NULL)
return PyList_Check(sipPy);
- PyErr_Format(PyExc_TypeError,"Converting to QValueList<QHostAddress> not yet implemented");
+ PyErr_Format(PyExc_TypeError,"Converting to TQValueList<TQHostAddress> not yet implemented");
*sipIsErr = 1;
@@ -159,14 +159,14 @@ signals:
};
-%MappedType QValueList<QDns::MailServer>
+%MappedType TQValueList<TQDns::MailServer>
{
%TypeHeaderCode
#include <qvaluelist.h>
%End
%ConvertFromTypeCode
- // Convert to a Python list of QDns::MailServer instances.
+ // Convert to a Python list of TQDns::MailServer instances.
int i;
PyObject *l;
@@ -179,13 +179,13 @@ signals:
// Get it.
i = 0;
- QValueListConstIterator<QDns::MailServer> it;
+ TQValueListConstIterator<TQDns::MailServer> it;
for (it = sipCpp -> begin(); it != sipCpp -> end(); ++it)
{
PyObject *tmobj;
- if ((tmobj = sipConvertFromNewInstance(new QDns::MailServer(*it),sipClass_QDns_MailServer,sipTransferObj)) == NULL || PyList_SetItem(l,i,tmobj) < 0)
+ if ((tmobj = sipConvertFromNewInstance(new TQDns::MailServer(*it),sipClass_QDns_MailServer,sipTransferObj)) == NULL || PyList_SetItem(l,i,tmobj) < 0)
{
Py_XDECREF(tmobj);
Py_DECREF(l);
@@ -206,7 +206,7 @@ signals:
if (sipIsErr == NULL)
return PyList_Check(sipPy);
- PyErr_Format(PyExc_TypeError,"Converting to QValueList<QDns::MailServer> not yet implemented");
+ PyErr_Format(PyExc_TypeError,"Converting to TQValueList<TQDns::MailServer> not yet implemented");
*sipIsErr = 1;
@@ -215,14 +215,14 @@ signals:
};
-%MappedType QValueList<QDns::Server>
+%MappedType TQValueList<TQDns::Server>
{
%TypeHeaderCode
#include <qvaluelist.h>
%End
%ConvertFromTypeCode
- // Convert to a Python list of QDns::Server instances.
+ // Convert to a Python list of TQDns::Server instances.
int i;
PyObject *l;
@@ -235,13 +235,13 @@ signals:
// Get it.
i = 0;
- QValueListConstIterator<QDns::Server> it;
+ TQValueListConstIterator<TQDns::Server> it;
for (it = sipCpp -> begin(); it != sipCpp -> end(); ++it)
{
PyObject *tmobj;
- if ((tmobj = sipConvertFromNewInstance(new QDns::Server(*it),sipClass_QDns_Server,sipTransferObj)) == NULL || PyList_SetItem(l,i,tmobj) < 0)
+ if ((tmobj = sipConvertFromNewInstance(new TQDns::Server(*it),sipClass_QDns_Server,sipTransferObj)) == NULL || PyList_SetItem(l,i,tmobj) < 0)
{
Py_XDECREF(tmobj);
Py_DECREF(l);
@@ -262,7 +262,7 @@ signals:
if (sipIsErr == NULL)
return PyList_Check(sipPy);
- PyErr_Format(PyExc_TypeError,"Converting to QValueList<QDns::Server> not yet implemented");
+ PyErr_Format(PyExc_TypeError,"Converting to TQValueList<TQDns::Server> not yet implemented");
*sipIsErr = 1;