summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-11-22 16:46:37 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-11-22 16:54:51 (GMT)
commit497dd9b099e5810057ebcd8a3f6755819cfecdef (patch)
treea65ecc29c3f86d2ed6b6050d4650708abceafa3d /Swiften/Parser/AuthSuccessParser.h
parentd9ca66fa828e99ec5b4067d954c97d882b9ab8fe (diff)
downloadswift-contrib-497dd9b099e5810057ebcd8a3f6755819cfecdef.zip
swift-contrib-497dd9b099e5810057ebcd8a3f6755819cfecdef.tar.bz2
Added auth success value support.
Diffstat (limited to 'Swiften/Parser/AuthSuccessParser.h')
-rw-r--r--Swiften/Parser/AuthSuccessParser.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/Swiften/Parser/AuthSuccessParser.h b/Swiften/Parser/AuthSuccessParser.h
index bb6515d..5d987c5 100644
--- a/Swiften/Parser/AuthSuccessParser.h
+++ b/Swiften/Parser/AuthSuccessParser.h
@@ -1,14 +1,20 @@
-#ifndef SWIFTEN_AUTHSUCCESSPARSER_H
-#define SWIFTEN_AUTHSUCCESSPARSER_H
+#pragma once
#include "Swiften/Parser/GenericElementParser.h"
#include "Swiften/Elements/AuthSuccess.h"
+#include "Swiften/Base/String.h"
namespace Swift {
class AuthSuccessParser : public GenericElementParser<AuthSuccess> {
public:
- AuthSuccessParser() : GenericElementParser<AuthSuccess>() {}
+ AuthSuccessParser();
+
+ virtual void handleStartElement(const String&, const String& ns, const AttributeMap&);
+ virtual void handleEndElement(const String&, const String& ns);
+ virtual void handleCharacterData(const String&);
+
+ private:
+ int depth;
+ String text;
};
}
-
-#endif