summaryrefslogtreecommitdiffstats
path: root/src/tork.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tork.h')
-rw-r--r--src/tork.h150
1 files changed, 75 insertions, 75 deletions
diff --git a/src/tork.h b/src/tork.h
index 4219fd8..1ad1497 100644
--- a/src/tork.h
+++ b/src/tork.h
@@ -27,9 +27,9 @@
#include <config.h>
#endif
-#include <kapplication.h>
-#include <kmainwindow.h>
-#include <ktempfile.h>
+#include <tdeapplication.h>
+#include <tdemainwindow.h>
+#include <tdetempfile.h>
#include "torkview.h"
#include "torclient.h"
@@ -40,9 +40,9 @@
#include "dcoptork.h"
#include "testprivacyproxy.h"
-#include <kconfigskeleton.h>
-#include <kwinmodule.h>
-#include <kpopupmenu.h>
+#include <tdeconfigskeleton.h>
+#include <twinmodule.h>
+#include <tdepopupmenu.h>
#include <ntqvaluevector.h>
#include "update.h"
@@ -51,9 +51,9 @@
#include "hiddensrvs.h"
class KPrinter;
-class KToggleAction;
-class KPopupMenu;
-class KActionMenu;
+class TDEToggleAction;
+class TDEPopupMenu;
+class TDEActionMenu;
class KURL;
class TrayIcon;
class TQLabel;
@@ -62,8 +62,8 @@ class TorClient;
class TQPoint;
class StatGraph;
class TorkConfig;
-class KConfigSkeleton;
-class KConfigSkeletonItem;
+class TDEConfigSkeleton;
+class TDEConfigSkeletonItem;
class KTempFile;
class KWindModule;
class UPnPManager;
@@ -89,7 +89,7 @@ typedef enum display_status_t {
* @author Robert Hogan <robert@roberthogan.net>
* @version 0.03
*/
-class tork : public KMainWindow, virtual public DCOPTork
+class tork : public TDEMainWindow, virtual public DCOPTork
{
Q_OBJECT
public:
@@ -108,7 +108,7 @@ public:
TrayIcon *_tray;
TQDict<TQListViewItem> inodes;
bool connectedToTor(){return (client!=0) ? true : false;};
- KPopupMenu* m_LaunchMenu;
+ TDEPopupMenu* m_LaunchMenu;
void anonymousFirefox(){m_view->anonymousFirefox();};
void anonymousOpera(){m_view->anonymousOpera();};
void anonymousEmail(){m_view->sendAnonymousEmail(); hide();};
@@ -287,13 +287,13 @@ private:
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, TQTextStream &ts);
+ bool elementShouldBeUsed(const TDEConfigSkeletonItem* it);
+ bool noSpecialProcessing(const TDEConfigSkeletonItem* it, TQTextStream &ts);
TQString doHashPassword();
bool queryClose();
void prepareToShut();
- 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 );
+ void filterViewServers( TQValueVector<TQString> &possibleValues, TQListView* &view, TDEPopupMenu* &menu, int id, int column );
+ void filterView( TQValueVector<TQString> &possibleValues, TQListView* &view, TDEPopupMenu* &menu, int id, int column );
TQString createFailSafeCommand( const TQStringList &filterRules, bool set );
void updateServerClientStatusBar(const TQStringList &client, const TQStringList &server);
void updateToolBar();
@@ -301,59 +301,59 @@ private:
private:
KPrinter *m_printer;
- KToggleAction *m_toolbarAction;
- KToggleAction *m_statusbarAction;
- KAction *torkConfigure;
- KAction *torkStop;
- KAction *torkStart;
- KAction *torkUpdateTork;
- KAction *torkUpdateStable;
- KAction *torkUpdateUnstable;
- KAction *torkUpdatePrivoxy;
- KAction *torkFirstRunWizard;
- KAction *torkTip;
- KAction *enableKonqi;
- KAction *enableTormon;
- //KAction *toggleParanoid;
- KAction *browseHiddenServices;
- KAction *browseNetworkList;
- KAction *toggleTorbar;
- KActionMenu* m_ServerFilterButton;
- KActionMenu* m_LaunchMenuButton;
- KActionMenu* m_LogFilterButton;
- KActionMenu* m_TrafficFilterButton;
- KPopupMenu* m_ServerFilterMenu;
- KPopupMenu* m_LogFilterMenu;
- KPopupMenu* m_TrafficFilterMenu;
- KPopupMenu* m_TorTrafficFilterMenu;
- KPopupMenu* m_NonTorTrafficFilterMenu;
- KPopupMenu* m_IPFilterMenu;
- KPopupMenu* m_PseudoMenu;
- KPopupMenu* m_PseudoMenuEU;
- KPopupMenu* m_PseudoMenuSA;
- KPopupMenu* m_PseudoMenuAS;
- KPopupMenu* m_PseudoMenuNA;
- KPopupMenu* m_PseudoMenuAN;
- KPopupMenu* m_PseudoMenuAF;
- KPopupMenu* m_PseudoMenuNN;
- KPopupMenu* m_PseudoMenuOC;
- KActionMenu* m_PseudoButton;
- KAction* m_IdentityButton;
- KAction* m_ModeButton;
- KAction* m_UnCensorButton;
- KPopupMenu* m_CountryMenu;
- KPopupMenu* m_CountryMenuEU;
- KPopupMenu* m_CountryMenuSA;
- KPopupMenu* m_CountryMenuAS;
- KPopupMenu* m_CountryMenuNA;
- KPopupMenu* m_CountryMenuAN;
- KPopupMenu* m_CountryMenuAF;
- KPopupMenu* m_CountryMenuNN;
- KPopupMenu* m_CountryMenuOC;
- KActionMenu* m_ServerButton;
- KPopupMenu* m_ServerButtonMenu;
- KActionMenu* m_SecurityButton;
- KPopupMenu* m_SecurityButtonMenu;
+ TDEToggleAction *m_toolbarAction;
+ TDEToggleAction *m_statusbarAction;
+ TDEAction *torkConfigure;
+ TDEAction *torkStop;
+ TDEAction *torkStart;
+ TDEAction *torkUpdateTork;
+ TDEAction *torkUpdateStable;
+ TDEAction *torkUpdateUnstable;
+ TDEAction *torkUpdatePrivoxy;
+ TDEAction *torkFirstRunWizard;
+ TDEAction *torkTip;
+ TDEAction *enableKonqi;
+ TDEAction *enableTormon;
+ //TDEAction *toggleParanoid;
+ TDEAction *browseHiddenServices;
+ TDEAction *browseNetworkList;
+ TDEAction *toggleTorbar;
+ TDEActionMenu* m_ServerFilterButton;
+ TDEActionMenu* m_LaunchMenuButton;
+ TDEActionMenu* m_LogFilterButton;
+ TDEActionMenu* m_TrafficFilterButton;
+ TDEPopupMenu* m_ServerFilterMenu;
+ TDEPopupMenu* m_LogFilterMenu;
+ TDEPopupMenu* m_TrafficFilterMenu;
+ TDEPopupMenu* m_TorTrafficFilterMenu;
+ TDEPopupMenu* m_NonTorTrafficFilterMenu;
+ TDEPopupMenu* m_IPFilterMenu;
+ TDEPopupMenu* m_PseudoMenu;
+ TDEPopupMenu* m_PseudoMenuEU;
+ TDEPopupMenu* m_PseudoMenuSA;
+ TDEPopupMenu* m_PseudoMenuAS;
+ TDEPopupMenu* m_PseudoMenuNA;
+ TDEPopupMenu* m_PseudoMenuAN;
+ TDEPopupMenu* m_PseudoMenuAF;
+ TDEPopupMenu* m_PseudoMenuNN;
+ TDEPopupMenu* m_PseudoMenuOC;
+ TDEActionMenu* m_PseudoButton;
+ TDEAction* m_IdentityButton;
+ TDEAction* m_ModeButton;
+ TDEAction* m_UnCensorButton;
+ TDEPopupMenu* m_CountryMenu;
+ TDEPopupMenu* m_CountryMenuEU;
+ TDEPopupMenu* m_CountryMenuSA;
+ TDEPopupMenu* m_CountryMenuAS;
+ TDEPopupMenu* m_CountryMenuNA;
+ TDEPopupMenu* m_CountryMenuAN;
+ TDEPopupMenu* m_CountryMenuAF;
+ TDEPopupMenu* m_CountryMenuNN;
+ TDEPopupMenu* m_CountryMenuOC;
+ TDEActionMenu* m_ServerButton;
+ TDEPopupMenu* m_ServerButtonMenu;
+ TDEActionMenu* m_SecurityButton;
+ TDEPopupMenu* m_SecurityButtonMenu;
TQLabel* m_statusInfo;
TQLabel* m_statusTransfer;
@@ -379,8 +379,8 @@ private:
display_status_t* m_msg;
KProcIO *hashproc;
TQString m_hashedpassword;
- KConfigSkeletonItem::List previtems;
- KConfigSkeleton pcopy;
+ TDEConfigSkeletonItem::List previtems;
+ TDEConfigSkeleton pcopy;
PrevConfig::PrevConfigList prevlist;
TorkUpdate* updater;
KTempFile* tfTor;
@@ -389,8 +389,8 @@ private:
TQWidget* prev;
TQValueList<TQListViewItem*> ordinaryServerList;
- TQMap<TQString,KPopupMenu*> continentMap;
- TQMap<TQString,KPopupMenu*> continentMapList;
+ TQMap<TQString,TDEPopupMenu*> continentMap;
+ TQMap<TQString,TDEPopupMenu*> continentMapList;
TQStringList discoveredRouters;
int filterId;
@@ -429,7 +429,7 @@ private:
};
-extern tork *kmain;
+extern tork *tdemain;
#endif // _TORK_H_