From c663b6440964f6ac48027143ac9e63298991f9d0 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:33:34 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kioslave/man/kio_man.h | 60 +++++++++++++++++++++++++------------------------- 1 file changed, 30 insertions(+), 30 deletions(-) (limited to 'kioslave/man/kio_man.h') diff --git a/kioslave/man/kio_man.h b/kioslave/man/kio_man.h index d1d924ce0..617245f80 100644 --- a/kioslave/man/kio_man.h +++ b/kioslave/man/kio_man.h @@ -21,24 +21,24 @@ #define __kio_man_h__ -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include #include -class MANProtocol : public QObject, public KIO::SlaveBase +class MANProtocol : public TQObject, public KIO::SlaveBase { Q_OBJECT public: - MANProtocol(const QCString &pool_socket, const QCString &app_socket); + MANProtocol(const TQCString &pool_socket, const TQCString &app_socket); virtual ~MANProtocol(); virtual void get(const KURL& url); @@ -47,11 +47,11 @@ public: virtual void mimetype(const KURL &url); virtual void listDir(const KURL &url); - void outputError(const QString& errmsg); - void outputMatchingPages(const QStringList &matchingPages); + void outputError(const TQString& errmsg); + void outputMatchingPages(const TQStringList &matchingPages); void showMainIndex(); - void showIndex(const QString& section); + void showIndex(const TQString& section); // the following two functions are the interface to man2html void output(const char *insert); @@ -65,35 +65,35 @@ private slots: private: void checkManPaths(); - QStringList manDirectories(); - QMap buildIndexMap(const QString& section); - bool addWhatIs(QMap& i, const QString& f, const QString& mark); - void parseWhatIs( QMap &i, QTextStream &t, const QString &mark ); - QStringList findPages(const QString& section, - const QString &title, + TQStringList manDirectories(); + TQMap buildIndexMap(const TQString& section); + bool addWhatIs(TQMap& i, const TQString& f, const TQString& mark); + void parseWhatIs( TQMap &i, TQTextStream &t, const TQString &mark ); + TQStringList findPages(const TQString& section, + const TQString &title, bool full_path = true); void addToBuffer(const char *buffer, int buflen); - QString pageName(const QString& page) const; - QStringList buildSectionList(const QStringList& dirs) const; - void constructPath(QStringList& constr_path, QStringList constr_catmanpath); + TQString pageName(const TQString& page) const; + TQStringList buildSectionList(const TQStringList& dirs) const; + void constructPath(TQStringList& constr_path, TQStringList constr_catmanpath); private: static MANProtocol *_self; - QCString lastdir; + TQCString lastdir; - void findManPagesInSection(const QString &dir, const QString &title, bool full_path, QStringList &list); - QStringList m_manpath; ///< Path of man directories - QStringList m_mandbpath; ///< Path of catman directories - QStringList section_names; + void findManPagesInSection(const TQString &dir, const TQString &title, bool full_path, TQStringList &list); + TQStringList m_manpath; ///< Path of man directories + TQStringList m_mandbpath; ///< Path of catman directories + TQStringList section_names; - QString myStdStream; - QString mySgml2RoffPath; + TQString myStdStream; + TQString mySgml2RoffPath; void getProgramPath(); - QCString m_htmlPath; ///< Path to KDE resources, encoded for HTML - QCString m_cssPath; ///< Path to KDE resources, encoded for CSS - QBuffer m_outputBuffer; ///< Buffer for the output - QString m_manCSSFile; ///< Path to kio_man.css + TQCString m_htmlPath; ///< Path to KDE resources, encoded for HTML + TQCString m_cssPath; ///< Path to KDE resources, encoded for CSS + TQBuffer m_outputBuffer; ///< Buffer for the output + TQString m_manCSSFile; ///< Path to kio_man.css }; -- cgit v1.2.1