summaryrefslogtreecommitdiff
path: root/noncore/net/opieirc/ircmessage.h
authorskyhusker <skyhusker>2005-01-14 20:54:49 (UTC)
committer skyhusker <skyhusker>2005-01-14 20:54:49 (UTC)
commita808497c334275c4b73e31a9bea37f84e344964d (patch) (side-by-side diff)
tree490b0396494b83b1145fc65ab81e3e437af9aed5 /noncore/net/opieirc/ircmessage.h
parentb6c5c3b8b1ab130217678ec789db573ffc52c3eb (diff)
downloadopie-a808497c334275c4b73e31a9bea37f84e344964d.zip
opie-a808497c334275c4b73e31a9bea37f84e344964d.tar.gz
opie-a808497c334275c4b73e31a9bea37f84e344964d.tar.bz2
Added message queue, now topics always appear in channel tab
Diffstat (limited to 'noncore/net/opieirc/ircmessage.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/opieirc/ircmessage.h6
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 @@
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __IRCMESSAGE_H
#define __IRCMESSAGE_H
-#include <qstring.h>
-#include <qstringlist.h>
+class QString;
+class QStringList;
/* IRCMessage objects are used to encapsulate information
which the IRC server sent to us. */
class IRCMessage {
public:
/* Parse an IRC message and create the IRCMessage object */
IRCMessage(QString line);
/* Return the IRC message prefix (usually sender etc) */
QString prefix();
/* Check if this IRCMessage's command is literal or numerical */
@@ -43,24 +43,26 @@ public:
/* Return the CTCP command */
QString ctcpCommand();
/* Return the CTCP destination if applicable (channel/person) */
QString ctcpDestination();
/* Return the IRC command (numerical commands) */
unsigned short commandNumber();
/* Return the trailing parameter string */
QString trailing();
/* Return the complete parameter string */
QString allParameters();
/* Return one parameter */
QString param(int param);
+ /* Return some parameters */
+ QStringList params(const QString &paramstring) const;
protected:
QString m_prefix;
QString m_command;
QString m_ctcpCommand;
QString m_ctcpDestination;
unsigned short m_commandNumber;
QString m_allParameters;
QString m_trailing;
QStringList m_parameters;
bool m_isNumerical;
bool m_ctcp;
};