Diffstat (limited to 'noncore/net/opieirc/ircserver.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/opieirc/ircserver.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/noncore/net/opieirc/ircserver.cpp b/noncore/net/opieirc/ircserver.cpp index e16e2b2..e27e41d 100644 --- a/noncore/net/opieirc/ircserver.cpp +++ b/noncore/net/opieirc/ircserver.cpp | |||
@@ -1,18 +1,20 @@ | |||
1 | #include "ircserver.h" | 1 | #include "ircserver.h" |
2 | 2 | ||
3 | IRCServer::IRCServer() { | 3 | IRCServer::IRCServer() { |
4 | m_port = 6667; | 4 | m_port = 6667; |
5 | } | 5 | } |
6 | 6 | ||
7 | /* Setter implementations */ | ||
8 | |||
7 | void IRCServer::setHostname(QString hostname) { | 9 | void IRCServer::setHostname(QString hostname) { |
8 | m_hostname = hostname; | 10 | m_hostname = hostname; |
9 | } | 11 | } |
10 | 12 | ||
11 | void IRCServer::setName(QString name) { | 13 | void IRCServer::setName(QString name) { |
12 | m_name = name; | 14 | m_name = name; |
13 | } | 15 | } |
14 | 16 | ||
15 | void IRCServer::setPort(int port) { | 17 | void IRCServer::setPort(int port) { |
16 | m_port = port; | 18 | m_port = port; |
17 | } | 19 | } |
18 | 20 | ||
@@ -23,24 +25,30 @@ void IRCServer::setUsername(QString username) { | |||
23 | void IRCServer::setPassword(QString password) { | 25 | void IRCServer::setPassword(QString password) { |
24 | m_password = password; | 26 | m_password = password; |
25 | } | 27 | } |
26 | 28 | ||
27 | void IRCServer::setNick(QString nick) { | 29 | void IRCServer::setNick(QString nick) { |
28 | m_nick = nick; | 30 | m_nick = nick; |
29 | } | 31 | } |
30 | 32 | ||
31 | void IRCServer::setRealname(QString realname) { | 33 | void IRCServer::setRealname(QString realname) { |
32 | m_realname = realname; | 34 | m_realname = realname; |
33 | } | 35 | } |
34 | 36 | ||
37 | void IRCServer::setChannels(QString channels) { | ||
38 | m_channels = channels; | ||
39 | } | ||
40 | |||
41 | /* Getter implementations */ | ||
42 | |||
35 | QString IRCServer::hostname() { | 43 | QString IRCServer::hostname() { |
36 | return m_hostname; | 44 | return m_hostname; |
37 | } | 45 | } |
38 | 46 | ||
39 | QString IRCServer::name() { | 47 | QString IRCServer::name() { |
40 | return m_name; | 48 | return m_name; |
41 | } | 49 | } |
42 | 50 | ||
43 | unsigned short int IRCServer::port() { | 51 | unsigned short int IRCServer::port() { |
44 | return m_port; | 52 | return m_port; |
45 | } | 53 | } |
46 | 54 | ||
@@ -51,12 +59,16 @@ QString IRCServer::username() { | |||
51 | QString IRCServer::password() { | 59 | QString IRCServer::password() { |
52 | return m_password; | 60 | return m_password; |
53 | } | 61 | } |
54 | 62 | ||
55 | QString IRCServer::nick() { | 63 | QString IRCServer::nick() { |
56 | return m_nick; | 64 | return m_nick; |
57 | } | 65 | } |
58 | 66 | ||
59 | QString IRCServer::realname() { | 67 | QString IRCServer::realname() { |
60 | return m_realname; | 68 | return m_realname; |
61 | } | 69 | } |
62 | 70 | ||
71 | QString IRCServer::channels() { | ||
72 | return m_channels; | ||
73 | } | ||
74 | |||