diff options
Diffstat (limited to 'src/klamd.h')
-rw-r--r-- | src/klamd.h | 94 |
1 files changed, 47 insertions, 47 deletions
diff --git a/src/klamd.h b/src/klamd.h index 8d11e0b..66f8d71 100644 --- a/src/klamd.h +++ b/src/klamd.h @@ -11,8 +11,8 @@ #include <kapplication.h> #include <kmainwindow.h> -#include <qlistview.h> -#include <qlistbox.h> +#include <tqlistview.h> +#include <tqlistbox.h> #include "kfiletreeview.h" @@ -20,12 +20,12 @@ class KPrinter; class KToggleAction; class KURL; -class QLineEdit; -class QComboBox; -class QCheckBox; -class QListBox; -class QPushButton; -class QLabel; +class TQLineEdit; +class TQComboBox; +class TQCheckBox; +class TQListBox; +class TQPushButton; +class TQLabel; class KProcess; class KConfig; class KURLRequester; @@ -34,11 +34,11 @@ class KArrowButton; class KProcIO; class KSystemTray; -class MyListBox : public QListBox +class MyListBox : public TQListBox { public: - MyListBox(QWidget *parent) : QListBox(parent) {} + MyListBox(TQWidget *parent) : TQListBox(parent) {} bool isItemVisible(int id) { return itemVisible(id); } }; @@ -50,14 +50,14 @@ public: * @author $AUTHOR <$EMAIL> * @version $APP_VERSION */ -class Klamd : public QWidget +class Klamd : public TQWidget { Q_OBJECT public: /** * Default Constructor */ - Klamd(QWidget *parent, const char *name=0); + Klamd(TQWidget *parent, const char *name=0); /** * Default Destructor @@ -67,9 +67,9 @@ public: /** * Use this method to load whatever file/URL you have */ - void setDirName(QString); + void setDirName(TQString); bool isKlamdAlive(); - QString getKlamdConfFile(); + TQString getKlamdConfFile(); public slots: bool startKlamd(); @@ -77,10 +77,10 @@ public slots: protected: /** - * Overridden virtuals for Qt drag 'n drop (XDND) + * Overridden virtuals for TQt drag 'n drop (XDND) */ - /*virtual void dragEnterEvent(QDragEnterEvent *event); - virtual void dropEvent(QDropEvent *event);*/ + /*virtual void dragEnterEvent(TQDragEnterEvent *event); + virtual void dropEvent(TQDropEvent *event);*/ protected: /** @@ -111,7 +111,7 @@ private: signals: - void itemSelected(QString abs_filename, int line); + void itemSelected(TQString abs_filename, int line); @@ -120,14 +120,14 @@ private slots: //void templateActivated(int index); void childExited(); void receivedOutput(KProcIO *); - //void itemSelected(const QString&); + //void itemSelected(const TQString&); void slotClear(); void slotAddIncludeDir(); void slotAddExcludeDir(); void slotDelIncludeDir(); void slotDelExcludeDir(); void writeConf(); - void Quarantine(QString fname, QString virusname); + void Quarantine(TQString fname, TQString virusname); void restoreKlamd(); void handleChecks(); void checkForDazuko(); @@ -138,7 +138,7 @@ private slots: void receivedmvOutput(KProcIO *); void slotAdvOptions(); - //void patternTextChanged( const QString &); + //void patternTextChanged( const TQString &); private: void processOutput(); void finish(); @@ -147,23 +147,23 @@ private: void loadKlamd(); void enableInputs(); void disableInputs(); - QLineEdit *template_edit; - QComboBox *files_combo, *pattern_combo/*, *dir_combo*/; + TQLineEdit *template_edit; + TQComboBox *files_combo, *pattern_combo/*, *dir_combo*/; KURLRequester *dir_combo; - QCheckBox *recursive_box; - QCheckBox *recursive_box1; - QCheckBox *recursive_box2; - QListBox *resultbox; - QLabel *status_label, *matches_label; + TQCheckBox *recursive_box; + TQCheckBox *recursive_box1; + TQCheckBox *recursive_box2; + TQListBox *resultbox; + TQLabel *status_label, *matches_label; KProcIO *childproc; KProcIO *proc; KProcIO *lsmodproc; - QString buf, bufmv, mvbuffer; + TQString buf, bufmv, mvbuffer; KConfig* config; - QStringList lastSearchItems; - QStringList lastSearchPaths; - QStringList lastQuarItems; - QListView* table; + TQStringList lastSearchItems; + TQStringList lastSearchPaths; + TQStringList lastQuarItems; + TQListView* table; MyListBox *sessionslb; KArrowButton *btnup, *btndown; KFileTreeView* m_fileTreeView; @@ -172,23 +172,23 @@ private: KArrowButton *btnup2, *btndown2; KFileTreeView* m_fileTreeView2; KFileTreeBranch* treeBranch2; - QString tempFileName; - QComboBox *check_combo; - QComboBox *check_combo2; - QString item2; - QStringList includePaths; - QStringList excludePaths; + TQString tempFileName; + TQComboBox *check_combo; + TQComboBox *check_combo2; + TQString item2; + TQStringList includePaths; + TQStringList excludePaths; bool dazukoLoaded; bool klamdAlive; - QWidget *parent; - QString tmpit; - QString clamdcommand; - //QPushButton *adv_options; - QWidget *hlp; - QWidget *hlp2; - QWidget *hlp3; + TQWidget *parent; + TQString tmpit; + TQString clamdcommand; + //TQPushButton *adv_options; + TQWidget *hlp; + TQWidget *hlp2; + TQWidget *hlp3; public: - QPushButton *search_button, *cancel_button; + TQPushButton *search_button, *cancel_button; }; |