summaryrefslogtreecommitdiffstats
path: root/languages/cpp/app_templates/opienet
diff options
context:
space:
mode:
Diffstat (limited to 'languages/cpp/app_templates/opienet')
-rw-r--r--languages/cpp/app_templates/opienet/simmplemodule.h16
-rw-r--r--languages/cpp/app_templates/opienet/simpleiface.cpp4
-rw-r--r--languages/cpp/app_templates/opienet/simpleiface.h2
-rw-r--r--languages/cpp/app_templates/opienet/simplemodule.cpp14
-rw-r--r--languages/cpp/app_templates/opienet/simplemodule.h16
5 files changed, 26 insertions, 26 deletions
diff --git a/languages/cpp/app_templates/opienet/simmplemodule.h b/languages/cpp/app_templates/opienet/simmplemodule.h
index 9158a7c8..7a8882b4 100644
--- a/languages/cpp/app_templates/opienet/simmplemodule.h
+++ b/languages/cpp/app_templates/opienet/simmplemodule.h
@@ -12,17 +12,17 @@ public:
VirtualModule();
~VirtualModule();
- const QString type() {return QString::fromLatin1("vpn" );}
- void setProfile( const QString& ) {}
+ const TQString type() {return TQString::fromLatin1("vpn" );}
+ void setProfile( const TQString& ) {}
bool isOwner( Interface* );
- QWidget *configure( Interface* );
- QWidget *information( Interface* );
+ TQWidget *configure( Interface* );
+ TQWidget *information( Interface* );
QList<Interface> getInterfaces();
- void possibleNewInterfaces( QMap<QString, QString>& );
- Interface *addNewInterface( const QString& );
+ void possibleNewInterfaces( TQMap<TQString, TQString>& );
+ Interface *addNewInterface( const TQString& );
bool remove( Interface* iface );
- QString getPixmapName( Interface* ) {return QString::fromLatin1("Tux"); }
- void receive( const QCString&, const QByteArray& ar ) {} // don't listen
+ TQString getPixmapName( Interface* ) {return TQString::fromLatin1("Tux"); }
+ void receive( const TQCString&, const TQByteArray& ar ) {} // don't listen
private:
QList<Interface> m_interfaces;
};
diff --git a/languages/cpp/app_templates/opienet/simpleiface.cpp b/languages/cpp/app_templates/opienet/simpleiface.cpp
index 9182a2f9..bbabcbda 100644
--- a/languages/cpp/app_templates/opienet/simpleiface.cpp
+++ b/languages/cpp/app_templates/opienet/simpleiface.cpp
@@ -1,6 +1,6 @@
#include "%{APPNAMELC}iface.h"
-%{APPNAME}Interface::%{APPNAME}Interface( QObject* parent,
+%{APPNAME}Interface::%{APPNAME}Interface( TQObject* parent,
const char* name,
bool status )
: Interface(parent, name, status )
@@ -16,7 +16,7 @@ bool %{APPNAME}Interface::refresh() {
* something actual existing
* I take wlan0 in my case
*/
- QString old = getInterfaceName();
+ TQString old = getInterfaceName();
qWarning("Interface name was " + old );
setInterfaceName( "wlan0" );
diff --git a/languages/cpp/app_templates/opienet/simpleiface.h b/languages/cpp/app_templates/opienet/simpleiface.h
index f235c160..ef514697 100644
--- a/languages/cpp/app_templates/opienet/simpleiface.h
+++ b/languages/cpp/app_templates/opienet/simpleiface.h
@@ -7,7 +7,7 @@ class %{APPNAME}Interface : public Interface {
Q_OBJECT
public:
- %{APPNAME}Interface(QObject* parent, const char* name = "vpn", bool up = false );
+ %{APPNAME}Interface(TQObject* parent, const char* name = "vpn", bool up = false );
~%{APPNAME}Interface();
public slots:
diff --git a/languages/cpp/app_templates/opienet/simplemodule.cpp b/languages/cpp/app_templates/opienet/simplemodule.cpp
index a67974a8..0a96c844 100644
--- a/languages/cpp/app_templates/opienet/simplemodule.cpp
+++ b/languages/cpp/app_templates/opienet/simplemodule.cpp
@@ -1,4 +1,4 @@
-#include <qwidget.h>
+#include <tqwidget.h>
#include <interfaces/interfaceinformationimp.h>
@@ -32,12 +32,12 @@ bool %{APPNAME}Module::isOwner( Interface* iface ) {
return m_interfaces.find( iface ) != -1;
}
-QWidget* %{APPNAME}Module::configure( Interface* ) {
+TQWidget* %{APPNAME}Module::configure( Interface* ) {
/* We don't have any Config for now */
return 0l;
}
-QWidget* %{APPNAME}Module::information( Interface* iface ) {
+TQWidget* %{APPNAME}Module::information( Interface* iface ) {
return new InterfaceInformationImp(0, "Interface info", iface );
}
@@ -45,13 +45,13 @@ QList<Interface> %{APPNAME}Module::getInterfaces() {
return m_interfaces;
}
-void %{APPNAME}Module::possibleNewInterfaces( QMap<QString, QString>& map) {
- map.insert( QObject::tr("VPN PPTP"),
- QObject::tr("Add new Point to Point Tunnel Protocol connection" ) );
+void %{APPNAME}Module::possibleNewInterfaces( TQMap<TQString, TQString>& map) {
+ map.insert( TQObject::tr("VPN PPTP"),
+ TQObject::tr("Add new Point to Point Tunnel Protocol connection" ) );
}
-Interface* %{APPNAME}Module::addNewInterface( const QString& ) {
+Interface* %{APPNAME}Module::addNewInterface( const TQString& ) {
/* check the str if we support more interfaces */
/*
Interface* iface = new %{APPNAME}Interface( 0 );
diff --git a/languages/cpp/app_templates/opienet/simplemodule.h b/languages/cpp/app_templates/opienet/simplemodule.h
index 1b02b688..4120d811 100644
--- a/languages/cpp/app_templates/opienet/simplemodule.h
+++ b/languages/cpp/app_templates/opienet/simplemodule.h
@@ -12,17 +12,17 @@ public:
%{APPNAME}Module();
~%{APPNAME}Module();
- const QString type() {return QString::fromLatin1("vpn" );}
- void setProfile( const QString& ) {}
+ const TQString type() {return TQString::fromLatin1("vpn" );}
+ void setProfile( const TQString& ) {}
bool isOwner( Interface* );
- QWidget *configure( Interface* );
- QWidget *information( Interface* );
+ TQWidget *configure( Interface* );
+ TQWidget *information( Interface* );
QList<Interface> getInterfaces();
- void possibleNewInterfaces( QMap<QString, QString>& );
- Interface *addNewInterface( const QString& );
+ void possibleNewInterfaces( TQMap<TQString, TQString>& );
+ Interface *addNewInterface( const TQString& );
bool remove( Interface* iface );
- QString getPixmapName( Interface* ) {return QString::fromLatin1("Tux"); }
- void receive( const QCString&, const QByteArray& ar ) {} // don't listen
+ TQString getPixmapName( Interface* ) {return TQString::fromLatin1("Tux"); }
+ void receive( const TQCString&, const TQByteArray& ar ) {} // don't listen
private:
QList<Interface> m_interfaces;
};