Renamed communications module to com module
[dashstudio.git] / src / dash / network / parser / noticeparser.h
blob2b1cb59e5878f5186ddf80395024ec349faf3a92
1 /***************************************************************************
2 * Copyright (C) 2006 by David Cuadrado *
3 * krawek@gmail.com *
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19 ***************************************************************************/
20 #ifndef PARSERSNOTICEPARSER_H
21 #define PARSERSNOTICEPARSER_H
23 #include <dcore/xmlparserbase.h>
25 namespace Dash {
26 namespace Network {
27 namespace Parser {
29 /**
30 @author David Cuadrado <krawek@gmail.com>
32 class NoticeParser : public DCore::XmlParserBase
34 public:
35 NoticeParser();
36 ~NoticeParser();
38 virtual bool startTag(const QString &tag, const QXmlAttributes &atts);
39 virtual bool endTag(const QString &tag);
40 virtual void text(const QString &text);
42 public:
43 QString message() const;
45 private:
46 struct Private;
47 Private *const d;
56 #endif