gloox  1.0.28
annotationshandler.h
1 /*
2  Copyright (c) 2005-2023 by Jakob Schröter <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__
A virtual interface which can be reimplemented to receive notes with help of the Annotations object.
virtual void handleAnnotations(const AnnotationsList &aList)=0
The namespace for the gloox library.
Definition: adhoc.cpp:28
std::list< AnnotationsListItem > AnnotationsList