annotations.h

00001 /*
00002   Copyright (c) 2005 by Jakob Schroeter <js@camaya.net>
00003   This file is part of the gloox library. http://camaya.net/gloox
00004 
00005   This software is distributed under a license. The full license
00006   agreement can be found in the file LICENSE in this distribution.
00007   This software may not be copied, modified, sold or distributed
00008   other than expressed in the named license agreement.
00009 
00010   This software is distributed without any warranty.
00011 */
00012 
00013 
00014 
00015 #ifndef ANNOTATIONS_H__
00016 #define ANNOTATIONS_H__
00017 
00018 #include "macros.h"
00019 
00020 #include "annotationshandler.h"
00021 #include "privatexml.h"
00022 #include "privatexmlhandler.h"
00023 
00024 #include <string>
00025 #include <list>
00026 
00027 namespace gloox
00028 {
00029 
00030   class Tag;
00031 
00038   class GLOOX_EXPORT Annotations : public PrivateXML, PrivateXMLHandler
00039   {
00040     public:
00045       Annotations( ClientBase *parent );
00046 
00050       virtual ~Annotations();
00051 
00057       void storeAnnotations( const AnnotationsHandler::AnnotationsList& aList );
00058 
00063       void requestAnnotations();
00064 
00069       void registerAnnotationsHandler( AnnotationsHandler *ah );
00070 
00074       void removeAnnotationsHandler();
00075 
00076       // reimplemented from PrivateXMLHandler
00077       virtual void handlePrivateXML( const std::string& tag, Tag *xml );
00078 
00079       // reimplemented from PrivateXMLHandler
00080       virtual void handlePrivateXMLResult( const std::string /*uid*/, PrivateXMLResult /*result*/ ) {};
00081 
00082     private:
00083       AnnotationsHandler *m_annotationsHandler;
00084   };
00085 
00086 }
00087 
00088 #endif // ANNOTATIONS_H__

Generated on Mon Jan 16 16:19:54 2006 for gloox by  doxygen 1.4.6