diff options
Diffstat (limited to 'kdialogd3/kdialogd.h')
-rw-r--r-- | kdialogd3/kdialogd.h | 44 |
1 files changed, 24 insertions, 20 deletions
diff --git a/kdialogd3/kdialogd.h b/kdialogd3/kdialogd.h index 7e50580..f317443 100644 --- a/kdialogd3/kdialogd.h +++ b/kdialogd3/kdialogd.h @@ -9,7 +9,7 @@ #include "config.h" #ifdef KDIALOGD_APP -class QTimer; +class TQTimer; #else #include <kdedmodule.h> #endif @@ -19,10 +19,11 @@ class KConfig; class KDialogDFileDialog : public KFileDialog { Q_OBJECT + TQ_OBJECT public: - KDialogDFileDialog(QString &an, Operation op, const QString& startDir, const QString& filter, + KDialogDFileDialog(TQString &an, Operation op, const TQString& startDir, const TQString& filter, bool confirmOw); virtual ~KDialogDFileDialog(); @@ -33,23 +34,24 @@ class KDialogDFileDialog : public KFileDialog signals: - void ok(const QStringList &items); + void ok(const TQStringList &items); private: bool itsConfirmOw; - QString &itsAppName; + TQString &itsAppName; }; class KDialogDDirSelectDialog : public KDirSelectDialog { Q_OBJECT + TQ_OBJECT public: - KDialogDDirSelectDialog(QString &an, const QString &startDir = QString::null, + KDialogDDirSelectDialog(TQString &an, const TQString &startDir = TQString(), bool localOnly = false, - QWidget *parent = 0L, + TQWidget *tqparent = 0L, const char *name = 0, bool modal = false); virtual ~KDialogDDirSelectDialog(); @@ -59,27 +61,28 @@ class KDialogDDirSelectDialog : public KDirSelectDialog signals: - void ok(const QStringList &items); + void ok(const TQStringList &items); private: - QString &itsAppName; + TQString &itsAppName; }; -class KDialogDClient : public QObject +class KDialogDClient : public TQObject { Q_OBJECT + TQ_OBJECT public: - KDialogDClient(int sock, const QString &an, QObject *parent); + KDialogDClient(int sock, const TQString &an, TQObject *tqparent); virtual ~KDialogDClient(); public slots: void read(); void close(); - void ok(const QStringList &items); + void ok(const TQStringList &items); void finished(); signals: @@ -89,28 +92,29 @@ class KDialogDClient : public QObject private: void cancel(); - bool readData(QCString &buffer, int size); + bool readData(TQCString &buffer, int size); bool readData(char *buffer, int size) { return readBlock(itsFd, buffer, size); } bool writeData(const char *buffer, int size) { return writeBlock(itsFd, buffer, size); } - bool readString(QString &str); - bool writeString(const QString &str); - void initDialog(const QString &caption, KDialogBase *d, unsigned int xid); + bool readString(TQString &str); + bool writeString(const TQString &str); + void initDialog(const TQString &caption, KDialogBase *d, unsigned int xid); private: int itsFd; KDialogBase *itsDlg; bool itsAccepted; - QString itsAppName; + TQString itsAppName; }; -class KDialogD : public QObject +class KDialogD : public TQObject { Q_OBJECT + TQ_OBJECT public: - KDialogD(QObject *parent=0L); + KDialogD(TQObject *tqparent=0L); virtual ~KDialogD(); public slots: @@ -124,7 +128,7 @@ class KDialogD : public QObject private: #ifdef KDIALOGD_APP - QTimer *itsTimer; + TQTimer *itsTimer; int itsTimeoutVal; #endif int itsFd, @@ -138,7 +142,7 @@ class KDialogDKDED : public KDEDModule { public: - KDialogDKDED(const QCString &obj); + KDialogDKDED(const TQCString &obj); }; #endif |