~ubuntu-branches/ubuntu/raring/qgo/raring

« back to all changes in this revision

Viewing changes to src/telnet.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin A. Godisch
  • Date: 2005-01-01 23:07:10 UTC
  • Revision ID: james.westby@ubuntu.com-20050101230710-fhng6yidm47xlb2i
Tags: upstream-1.0.0-r2
ImportĀ upstreamĀ versionĀ 1.0.0-r2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * telnet.h
 
3
 */
 
4
 
 
5
#ifndef TELNET_H
 
6
#define TELNET_H
 
7
 
 
8
#include <qobject.h>
 
9
 
 
10
class IGSInterface;
 
11
 
 
12
//-----------
 
13
 
 
14
class TelnetInterface : public QObject
 
15
{
 
16
        Q_OBJECT
 
17
 
 
18
public:
 
19
        TelnetInterface();
 
20
        ~TelnetInterface();
 
21
        static void callback(const char *s, uint i=0);
 
22
 
 
23
signals:
 
24
        void textRecieved(const QString&);
 
25
};
 
26
 
 
27
//-----------
 
28
 
 
29
class TelnetConnection : public QObject
 
30
{
 
31
        Q_OBJECT
 
32
 
 
33
public:
 
34
        TelnetConnection(QWidget* parent);
 
35
        ~TelnetConnection();
 
36
 
 
37
        void sendTextFromApp(const QString&);
 
38
        void setHost(const QString, const QString, const QString, unsigned int);
 
39
 
 
40
public slots:
 
41
        void slotHostConnect();
 
42
        void slotHostDisconnect();
 
43
        void slotHostQuit();
 
44
 
 
45
private:
 
46
        QString host, loginName, password;
 
47
        unsigned int port;
 
48
 
 
49
        IGSInterface *igsInterface;
 
50
};
 
51
 
 
52
#endif
 
53