author | wazlaf <wazlaf> | 2002-09-20 23:28:14 (UTC) |
---|---|---|
committer | wazlaf <wazlaf> | 2002-09-20 23:28:14 (UTC) |
commit | 912092425248f7fc5155b4c7c46b7d00ec2676bc (patch) (unidiff) | |
tree | 5bbf746e83b2dffad89542c42031a573c34da751 /noncore/net/opieirc/ircserver.h | |
parent | cd3df897c1b0ed93c2be3ab411011a0bdfe88bf9 (diff) | |
download | opie-912092425248f7fc5155b4c7c46b7d00ec2676bc.zip opie-912092425248f7fc5155b4c7c46b7d00ec2676bc.tar.gz opie-912092425248f7fc5155b4c7c46b7d00ec2676bc.tar.bz2 |
support for client commands (only /join implemented so far), crash bugfix, fixed 2 leaks, server browser now includes a channel list
Diffstat (limited to 'noncore/net/opieirc/ircserver.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/opieirc/ircserver.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/noncore/net/opieirc/ircserver.h b/noncore/net/opieirc/ircserver.h index f56f231..0bc7d4c 100644 --- a/noncore/net/opieirc/ircserver.h +++ b/noncore/net/opieirc/ircserver.h | |||
@@ -19,40 +19,46 @@ | |||
19 | */ | 19 | */ |
20 | 20 | ||
21 | #ifndef __IRCSERVER_H | 21 | #ifndef __IRCSERVER_H |
22 | #define __IRCSERVER_H | 22 | #define __IRCSERVER_H |
23 | 23 | ||
24 | #include <qstring.h> | 24 | #include <qstring.h> |
25 | 25 | ||
26 | /* IRCServer stores all information required to | 26 | /* IRCServer stores all information required to |
27 | establish a connection to a server. */ | 27 | establish a connection to a server. */ |
28 | 28 | ||
29 | class IRCServer { | 29 | class IRCServer { |
30 | public: | 30 | public: |
31 | /* Initialize to the default values */ | ||
31 | IRCServer(); | 32 | IRCServer(); |
32 | 33 | ||
34 | /* Setters */ | ||
33 | void setName(QString name); | 35 | void setName(QString name); |
34 | void setHostname(QString hostname); | 36 | void setHostname(QString hostname); |
35 | void setPort(int port); | 37 | void setPort(int port); |
36 | void setUsername(QString username); | 38 | void setUsername(QString username); |
37 | void setPassword(QString password); | 39 | void setPassword(QString password); |
38 | void setNick(QString nick); | 40 | void setNick(QString nick); |
39 | void setRealname(QString realname); | 41 | void setRealname(QString realname); |
42 | void setChannels(QString channels); | ||
40 | 43 | ||
44 | /* Getters */ | ||
41 | QString hostname(); | 45 | QString hostname(); |
42 | QString name(); | 46 | QString name(); |
43 | unsigned short int port(); | 47 | unsigned short int port(); |
44 | QString username(); | 48 | QString username(); |
45 | QString password(); | 49 | QString password(); |
46 | QString nick(); | 50 | QString nick(); |
47 | QString realname(); | 51 | QString realname(); |
52 | QString channels(); | ||
48 | protected: | 53 | protected: |
49 | QString m_hostname; | 54 | QString m_hostname; |
50 | QString m_name; | 55 | QString m_name; |
51 | unsigned short int m_port; | 56 | unsigned short int m_port; |
52 | QString m_username; | 57 | QString m_username; |
53 | QString m_password; | 58 | QString m_password; |
54 | QString m_nick; | 59 | QString m_nick; |
55 | QString m_realname; | 60 | QString m_realname; |
61 | QString m_channels; | ||
56 | }; | 62 | }; |
57 | 63 | ||
58 | #endif /* __IRCSERVER_H */ | 64 | #endif /* __IRCSERVER_H */ |