summaryrefslogtreecommitdiffstats
path: root/src/tork.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tork.h')
-rw-r--r--src/tork.h118
1 files changed, 59 insertions, 59 deletions
diff --git a/src/tork.h b/src/tork.h
index f239029..4219fd8 100644
--- a/src/tork.h
+++ b/src/tork.h
@@ -43,7 +43,7 @@
#include <kconfigskeleton.h>
#include <kwinmodule.h>
#include <kpopupmenu.h>
-#include <qvaluevector.h>
+#include <ntqvaluevector.h>
#include "update.h"
#include "trayicon.h"
@@ -56,10 +56,10 @@ class KPopupMenu;
class KActionMenu;
class KURL;
class TrayIcon;
-class QLabel;
+class TQLabel;
class KProcIO;
class TorClient;
-class QPoint;
+class TQPoint;
class StatGraph;
class TorkConfig;
class KConfigSkeleton;
@@ -71,7 +71,7 @@ class SetMaxRate;
class MyHidden;
class TestProxy;
-//class QValueVector;
+//class TQValueVector;
/** Enumeration of types which option values can take */
typedef enum display_status_t {
@@ -106,14 +106,14 @@ public:
torkView *m_view;
TrayIcon *_tray;
- QDict<QListViewItem> inodes;
+ TQDict<TQListViewItem> inodes;
bool connectedToTor(){return (client!=0) ? true : false;};
KPopupMenu* m_LaunchMenu;
void anonymousFirefox(){m_view->anonymousFirefox();};
void anonymousOpera(){m_view->anonymousOpera();};
void anonymousEmail(){m_view->sendAnonymousEmail(); hide();};
- void anonymizedFirefox(const QString & url){m_view->anonymizedFirefox(url);};
- void anonymizedOpera(const QString & url){m_view->anonymizedOpera(url);};
+ void anonymizedFirefox(const TQString & url){m_view->anonymizedFirefox(url);};
+ void anonymizedOpera(const TQString & url){m_view->anonymizedOpera(url);};
void anonymousKonversation(){torkify( 0 );};
void anonymousKopete(){torkify( 1 );};
void anonymousGaim(){torkify( 2 );};
@@ -123,9 +123,9 @@ public:
bool routerDiscovered(){ return m_routerDiscovered;};
void setRouterDiscovered(bool discovered){ m_routerDiscovered = discovered;};
- QStringList getDiscoveredRouters(){ return discoveredRouters;};
+ TQStringList getDiscoveredRouters(){ return discoveredRouters;};
void setBandwidthFromSysTray(int rate );
- void enableKDEAndLaunchKonqWithUrl(const QString &);
+ void enableKDEAndLaunchKonqWithUrl(const TQString &);
int upnpORPort(){ return orPort; };
int upnpDirPort(){ return dirPort; };
void setUpnpDirPort(int port){ dirPort=port; };
@@ -152,8 +152,8 @@ private slots:
void checkRouterDiscovered( );
- void changeStatusbar(const QString& in,const QString& out);
- void changeCaption(const QString& text);
+ void changeStatusbar(const TQString& in,const TQString& out);
+ void changeCaption(const TQString& text);
void startController();
void stopController();
void receivedOutput(KProcIO *);
@@ -164,11 +164,11 @@ private slots:
void toggleKDESettingAndLaunchKonq();
void setKDE(bool set);
void turnOffKDE();
- void sayWhatImDoing(const QString& );
- void slotOnItem( int, QListViewItem *, const QPoint &, int );
- void slotOnORItem( QListViewItem * );
+ void sayWhatImDoing(const TQString& );
+ void slotOnItem( int, TQListViewItem *, const TQPoint &, int );
+ void slotOnORItem( TQListViewItem * );
void slotOffItem( );
- void openConfig(const QCString& page);
+ void openConfig(const TQCString& page);
void slotHandle(/*TFunctor *functor*/);
void noClicked(/*TFunctor *functor*/);
@@ -180,7 +180,7 @@ private slots:
void hiddenServices();
void mixminionHome();
void networkList();
- void infoUpdated(const QString &type, const QString &summary, const QString &data);
+ void infoUpdated(const TQString &type, const TQString &summary, const TQString &data);
void shuttingDown();
void showMyServer();
void showFirewallEvasion();
@@ -211,17 +211,17 @@ private slots:
void populateCountryMenu();
void applyPseudonymity( int country_id );
void checkBandwidthSettings();
- void setTorCaption(const QString &caption);
+ void setTorCaption(const TQString &caption);
void configureServer(int);
void configureSecurity( int id );
void updateServerButton( );
void torUsedAfterDNSRequest();
- void updateTrayStats(const QString &,const QString &,const QString &,const QString &);
- void updateTrayIcon(const QString &);
+ void updateTrayStats(const TQString &,const TQString &,const TQString &,const TQString &);
+ void updateTrayIcon(const TQString &);
void resetExited();
void switchMode();
- void upnpForwardingOK(kt::UPnPRouter*,const QString &, bool);
- void upnpForwardingError(kt::UPnPRouter*,const QString &, bool);
+ void upnpForwardingOK(kt::UPnPRouter*,const TQString &, bool);
+ void upnpForwardingError(kt::UPnPRouter*,const TQString &, bool);
void routerDiscovered(kt::UPnPRouter* );
void configureRouter(bool force,bool silent=false);
void checkForSystemManagedPrivoxy();
@@ -257,16 +257,16 @@ public slots:
void readEavesdropping();
void aboutTorify();
void aboutTor();
- void showSecurityNotice(const QString &port);
- void showScreamingNotice(const QString &port);
+ void showSecurityNotice(const TQString &port);
+ void showScreamingNotice(const TQString &port);
void torClosedConnection();
void makeTorkStoppable();
- void createService(const QString& dir,const QString& port);
+ void createService(const TQString& dir,const TQString& port);
void aboutParanoidMode();
- void processWarning(const QString& type, const QString& text);
- void processQuestion(const QString& type, const QString& text);
+ void processWarning(const TQString& type, const TQString& text);
+ void processQuestion(const TQString& type, const TQString& text);
void updateTorUnstable();
- void currentTabChanged(QWidget* cur );
+ void currentTabChanged(TQWidget* cur );
void stopTor();
void resetTor();
void toggleServerButton( bool on );
@@ -280,22 +280,22 @@ public slots:
private:
void setupAccel();
void setupActions();
- QString writeConf();
- QString writePrivoxyConf();
- void writeCustomOptions(QTextStream &ts);
- void writeCustomOptions2(QTextStream &ts);
- void showWarning( display_status_t &msg, const QString &headline,const QString &torsaid,const QString &thismeans, const QString &type, const QString &icon, bool always, bool showstopper);
- void askQuestion(display_status_t &msg, const QString &headline,const QString &torsaid,const QString &body,const QString &question,void (tork::*pt2Func)(), const QString &type, const QString &icon, bool persistent, bool showstopper);
+ TQString writeConf();
+ TQString writePrivoxyConf();
+ void writeCustomOptions(TQTextStream &ts);
+ void writeCustomOptions2(TQTextStream &ts);
+ void showWarning( display_status_t &msg, const TQString &headline,const TQString &torsaid,const TQString &thismeans, const TQString &type, const TQString &icon, bool always, bool showstopper);
+ void askQuestion(display_status_t &msg, const TQString &headline,const TQString &torsaid,const TQString &body,const TQString &question,void (tork::*pt2Func)(), const TQString &type, const TQString &icon, bool persistent, bool showstopper);
void processQueue();
bool elementShouldBeUsed(const KConfigSkeletonItem* it);
- bool noSpecialProcessing(const KConfigSkeletonItem* it, QTextStream &ts);
- QString doHashPassword();
+ bool noSpecialProcessing(const KConfigSkeletonItem* it, TQTextStream &ts);
+ TQString doHashPassword();
bool queryClose();
void prepareToShut();
- void filterViewServers( QValueVector<QString> &possibleValues, QListView* &view, KPopupMenu* &menu, int id, int column );
- void filterView( QValueVector<QString> &possibleValues, QListView* &view, KPopupMenu* &menu, int id, int column );
- QString createFailSafeCommand( const QStringList &filterRules, bool set );
- void updateServerClientStatusBar(const QStringList &client, const QStringList &server);
+ void filterViewServers( TQValueVector<TQString> &possibleValues, TQListView* &view, KPopupMenu* &menu, int id, int column );
+ void filterView( TQValueVector<TQString> &possibleValues, TQListView* &view, KPopupMenu* &menu, int id, int column );
+ TQString createFailSafeCommand( const TQStringList &filterRules, bool set );
+ void updateServerClientStatusBar(const TQStringList &client, const TQStringList &server);
void updateToolBar();
private:
@@ -355,9 +355,9 @@ private:
KActionMenu* m_SecurityButton;
KPopupMenu* m_SecurityButtonMenu;
- QLabel* m_statusInfo;
- QLabel* m_statusTransfer;
- QLabel* m_statusSpeed;
+ TQLabel* m_statusInfo;
+ TQLabel* m_statusTransfer;
+ TQLabel* m_statusSpeed;
StatGraph* m_graphIn;
StatGraph* m_graphOut;
KProcIO* childproc;
@@ -368,17 +368,17 @@ private:
bool m_servererrornag;
bool m_contactinfonag;
bool m_serverworking;
- QListViewItem* m_prevItem;
- QTimer *timer;
- QTimer *bwtimer;
- QTimer *bwLimitTimer;
+ TQListViewItem* m_prevItem;
+ TQTimer *timer;
+ TQTimer *bwtimer;
+ TQTimer *bwLimitTimer;
void (tork::*m_pt2Func)();
KDE::PopupMessage *m_tooltip;
- QStringList m_list;
- QString m_body;
+ TQStringList m_list;
+ TQString m_body;
display_status_t* m_msg;
KProcIO *hashproc;
- QString m_hashedpassword;
+ TQString m_hashedpassword;
KConfigSkeletonItem::List previtems;
KConfigSkeleton pcopy;
PrevConfig::PrevConfigList prevlist;
@@ -386,12 +386,12 @@ private:
KTempFile* tfTor;
KTempFile* tfPrivoxy;
KWinModule* winModule;
- QWidget* prev;
+ TQWidget* prev;
- QValueList<QListViewItem*> ordinaryServerList;
- QMap<QString,KPopupMenu*> continentMap;
- QMap<QString,KPopupMenu*> continentMapList;
- QStringList discoveredRouters;
+ TQValueList<TQListViewItem*> ordinaryServerList;
+ TQMap<TQString,KPopupMenu*> continentMap;
+ TQMap<TQString,KPopupMenu*> continentMapList;
+ TQStringList discoveredRouters;
int filterId;
@@ -409,16 +409,16 @@ private:
bool m_AppliedSettings;
bool m_CanApplyServerSettingsIfSet;
- QDialog* dialog;
+ TQDialog* dialog;
MyHidden* myHiddenDialog;
- QDialog* serverdialog;
+ TQDialog* serverdialog;
UPnPManager* upnpmanager;
ForwardPortList* forwardPortList;
- QString filterError;
- QString torCaption;
- QString m_program;
+ TQString filterError;
+ TQString torCaption;
+ TQString m_program;
SetMaxRate* m_set_max_rate;