diff options
Diffstat (limited to 'knights/io_internet.h')
-rw-r--r-- | knights/io_internet.h | 49 |
1 files changed, 25 insertions, 24 deletions
diff --git a/knights/io_internet.h b/knights/io_internet.h index cf56379..c6aef91 100644 --- a/knights/io_internet.h +++ b/knights/io_internet.h @@ -37,7 +37,7 @@ class core; class dlg_login; class dlg_challenge; -#include <qfile.h> +#include <tqfile.h> /** *@author Troy Corbin Jr / Alexander Wels. @@ -68,13 +68,14 @@ const unsigned int PARSE_MOVE_LIST_MODE = 6; const unsigned int PARSE12_MODE_NEW = 1; const unsigned int PARSE12_MODE_MOVE = 2; -typedef QMap<QWidget *, QWidget *> TabMap; +typedef TQMap<TQWidget *, TQWidget *> TabMap; class io_internet : public io_base { Q_OBJECT + TQ_OBJECT public: - io_internet(QWidget *parent = NULL, resource *Rsrc = NULL); + io_internet(TQWidget *tqparent = NULL, resource *Rsrc = NULL); ~io_internet(); public slots: @@ -82,57 +83,57 @@ class io_internet : public io_base void readCommand(KSocket *); void sendUserName(void); void sendPassword(void); - void send(const QString&); + void send(const TQString&); void nullifyChallenge( void ); void acceptChallenge( void ); void declineChallenge( void ); void processSeekTimer( void ); void connectToServer( void ); void selfDestruct( void ); - void setUserInfo(QString userName, QString passWord); + void setUserInfo(TQString userName, TQString passWord); signals: virtual void sendCMD(const Command& command); - void setLastPrivateSource( const QString& ); - void setLastChannelSource( const QString& ); + void setLastPrivateSource( const TQString& ); + void setLastChannelSource( const TQString& ); protected: - void parseLine(QString command); - void parseLoginData(QString command); - void writeToConsole(QString text, QString tag); - void updateSoughtList(QString text); - void parseStyle12(QString line, const unsigned int mode); + void parseLine(TQString command); + void parseLoginData(TQString command); + void writeToConsole(TQString text, TQString tag); + void updateSoughtList(TQString text); + void parseStyle12(TQString line, const unsigned int mode); void sendUserSettings(void); - void parseMoveList(QString data); - void sendEndOfGameCommand(QString line); + void parseMoveList(TQString data); + void sendEndOfGameCommand(TQString line); private: dlg_login *loginDlg; dlg_challenge *challenge; /* These are used to handle the automagic seek command */ - QTimer *seekTimer; + TQTimer *seekTimer; /* These are used for the connection & logon */ - QFile *Log; + TQFile *Log; KSocket *socket; KProcess *myTimeseal; struct serverResource *myServer; int loginStage; unsigned int parseMode; - QString lastTag; + TQString lastTag; int ficsMoveListNumber; - QString lineBuffer; + TQString lineBuffer; bool connected; - QString userName; - QString passWord; + TQString userName; + TQString passWord; /* communication with the server */ - QStringList command_list; /* this is a temp buffer while waiting for the movelist */ + TQStringList command_list; /* this is a temp buffer while waiting for the movelist */ bool waiting_for_move_list; - QMap<match_param *, int> fics_ids; - QMap<int, int> fics_to_knights; /* maps fics id's to knights id's */ + TQMap<match_param *, int> fics_ids; + TQMap<int, int> fics_to_knights; /* maps fics id's to knights id's */ TabMap myTabList; /* maintains the list of the tabs currently owned by this io_internet */ - QValueList<Command> myCommandBuffer; /* this is a buffer for all the commands io_internet received while not connected to a server */ + TQValueList<Command> myCommandBuffer; /* this is a buffer for all the commands io_internet received while not connected to a server */ }; #endif |