Diffstat (limited to 'noncore/net/opieirc/ircmessage.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/opieirc/ircmessage.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/noncore/net/opieirc/ircmessage.h b/noncore/net/opieirc/ircmessage.h index 0c5c879..10ba450 100644 --- a/noncore/net/opieirc/ircmessage.h +++ b/noncore/net/opieirc/ircmessage.h | |||
@@ -12,26 +12,26 @@ | |||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | GNU General Public License for more details. | 13 | GNU General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License | 15 | You should have received a copy of the GNU General Public License |
16 | along with this program; if not, write to the Free Software | 16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 | 18 | ||
19 | */ | 19 | */ |
20 | 20 | ||
21 | #ifndef __IRCMESSAGE_H | 21 | #ifndef __IRCMESSAGE_H |
22 | #define __IRCMESSAGE_H | 22 | #define __IRCMESSAGE_H |
23 | 23 | ||
24 | #include <qstring.h> | 24 | class QString; |
25 | #include <qstringlist.h> | 25 | class QStringList; |
26 | 26 | ||
27 | /* IRCMessage objects are used to encapsulate information | 27 | /* IRCMessage objects are used to encapsulate information |
28 | which the IRC server sent to us. */ | 28 | which the IRC server sent to us. */ |
29 | 29 | ||
30 | class IRCMessage { | 30 | class IRCMessage { |
31 | public: | 31 | public: |
32 | /* Parse an IRC message and create the IRCMessage object */ | 32 | /* Parse an IRC message and create the IRCMessage object */ |
33 | IRCMessage(QString line); | 33 | IRCMessage(QString line); |
34 | 34 | ||
35 | /* Return the IRC message prefix (usually sender etc) */ | 35 | /* Return the IRC message prefix (usually sender etc) */ |
36 | QString prefix(); | 36 | QString prefix(); |
37 | /* Check if this IRCMessage's command is literal or numerical */ | 37 | /* Check if this IRCMessage's command is literal or numerical */ |
@@ -43,24 +43,26 @@ public: | |||
43 | /* Return the CTCP command */ | 43 | /* Return the CTCP command */ |
44 | QString ctcpCommand(); | 44 | QString ctcpCommand(); |
45 | /* Return the CTCP destination if applicable (channel/person) */ | 45 | /* Return the CTCP destination if applicable (channel/person) */ |
46 | QString ctcpDestination(); | 46 | QString ctcpDestination(); |
47 | /* Return the IRC command (numerical commands) */ | 47 | /* Return the IRC command (numerical commands) */ |
48 | unsigned short commandNumber(); | 48 | unsigned short commandNumber(); |
49 | /* Return the trailing parameter string */ | 49 | /* Return the trailing parameter string */ |
50 | QString trailing(); | 50 | QString trailing(); |
51 | /* Return the complete parameter string */ | 51 | /* Return the complete parameter string */ |
52 | QString allParameters(); | 52 | QString allParameters(); |
53 | /* Return one parameter */ | 53 | /* Return one parameter */ |
54 | QString param(int param); | 54 | QString param(int param); |
55 | /* Return some parameters */ | ||
56 | QStringList params(const QString ¶mstring) const; | ||
55 | protected: | 57 | protected: |
56 | QString m_prefix; | 58 | QString m_prefix; |
57 | QString m_command; | 59 | QString m_command; |
58 | QString m_ctcpCommand; | 60 | QString m_ctcpCommand; |
59 | QString m_ctcpDestination; | 61 | QString m_ctcpDestination; |
60 | unsigned short m_commandNumber; | 62 | unsigned short m_commandNumber; |
61 | QString m_allParameters; | 63 | QString m_allParameters; |
62 | QString m_trailing; | 64 | QString m_trailing; |
63 | QStringList m_parameters; | 65 | QStringList m_parameters; |
64 | bool m_isNumerical; | 66 | bool m_isNumerical; |
65 | bool m_ctcp; | 67 | bool m_ctcp; |
66 | }; | 68 | }; |