gloox  1.1-svn
annotationshandler.h
1 /*
2  Copyright (c) 2005-2009 by Jakob Schroeter <js@camaya.net>
3  This file is part of the gloox library. http://camaya.net/gloox
4 
5  This software is distributed under a license. The full license
6  agreement can be found in the file LICENSE in this distribution.
7  This software may not be copied, modified, sold or distributed
8  other than expressed in the named license agreement.
9 
10  This software is distributed without any warranty.
11 */
12 
13 
14 
15 #ifndef ANNOTATIONSHANDLER_H__
16 #define ANNOTATIONSHANDLER_H__
17 
18 #include "macros.h"
19 
20 #include <string>
21 #include <list>
22 
23 namespace gloox
24 {
25 
30  {
31  std::string jid;
32  std::string cdate;
33  std::string mdate;
34  std::string note;
35  };
36 
40  typedef std::list<AnnotationsListItem> AnnotationsList;
41 
49  class GLOOX_API AnnotationsHandler
50  {
51  public:
55  virtual ~AnnotationsHandler() {}
56 
61  virtual void handleAnnotations( const AnnotationsList &aList ) = 0;
62  };
63 
64 }
65 
66 #endif // ANNOTATIONSHANDLER_H__