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.h4
-rw-r--r--languages/cpp/app_templates/opienet/simpleiface.cpp4
-rw-r--r--languages/cpp/app_templates/opienet/simplemodule.h4
3 files changed, 6 insertions, 6 deletions
diff --git a/languages/cpp/app_templates/opienet/simmplemodule.h b/languages/cpp/app_templates/opienet/simmplemodule.h
index b19152b6..5c928ec9 100644
--- a/languages/cpp/app_templates/opienet/simmplemodule.h
+++ b/languages/cpp/app_templates/opienet/simmplemodule.h
@@ -12,7 +12,7 @@ public:
VirtualModule();
~VirtualModule();
- const TQString type() {return TQString::fromLatin1("vpn" );}
+ const TQString type() {return TQString::tqfromLatin1("vpn" );}
void setProfile( const TQString& ) {}
bool isOwner( Interface* );
TQWidget *configure( Interface* );
@@ -21,7 +21,7 @@ public:
void possibleNewInterfaces( TQMap<TQString, TQString>& );
Interface *addNewInterface( const TQString& );
bool remove( Interface* iface );
- TQString getPixmapName( Interface* ) {return TQString::fromLatin1("Tux"); }
+ TQString getPixmapName( Interface* ) {return TQString::tqfromLatin1("Tux"); }
void receive( const TQCString&, const TQByteArray& ar ) {} // don't listen
private:
TQList<Interface> m_interfaces;
diff --git a/languages/cpp/app_templates/opienet/simpleiface.cpp b/languages/cpp/app_templates/opienet/simpleiface.cpp
index bbabcbda..e98148d2 100644
--- a/languages/cpp/app_templates/opienet/simpleiface.cpp
+++ b/languages/cpp/app_templates/opienet/simpleiface.cpp
@@ -31,13 +31,13 @@ bool %{APPNAME}Interface::refresh() {
void %{APPNAME}Interface::start() {
// call pptp
- setStatus(true);
+ settqStatus(true);
refresh();
emit updateMessage("VPN started");
}
void %{APPNAME}Interface::stop() {
- setStatus(false );
+ settqStatus(false );
refresh();
emit updateMessage("VPN halted");
}
diff --git a/languages/cpp/app_templates/opienet/simplemodule.h b/languages/cpp/app_templates/opienet/simplemodule.h
index 6fce8b10..327c1d43 100644
--- a/languages/cpp/app_templates/opienet/simplemodule.h
+++ b/languages/cpp/app_templates/opienet/simplemodule.h
@@ -12,7 +12,7 @@ public:
%{APPNAME}Module();
~%{APPNAME}Module();
- const TQString type() {return TQString::fromLatin1("vpn" );}
+ const TQString type() {return TQString::tqfromLatin1("vpn" );}
void setProfile( const TQString& ) {}
bool isOwner( Interface* );
TQWidget *configure( Interface* );
@@ -21,7 +21,7 @@ public:
void possibleNewInterfaces( TQMap<TQString, TQString>& );
Interface *addNewInterface( const TQString& );
bool remove( Interface* iface );
- TQString getPixmapName( Interface* ) {return TQString::fromLatin1("Tux"); }
+ TQString getPixmapName( Interface* ) {return TQString::tqfromLatin1("Tux"); }
void receive( const TQCString&, const TQByteArray& ar ) {} // don't listen
private:
TQList<Interface> m_interfaces;