gloox  1.0.22
annotationshandler.h
1 /*
2  Copyright (c) 2005-2017 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__
gloox::AnnotationsHandler
A virtual interface which can be reimplemented to receive notes with help of the Annotations object.
Definition: annotationshandler.h:50
gloox::AnnotationsList
std::list< AnnotationsListItem > AnnotationsList
Definition: annotationshandler.h:40
gloox::AnnotationsHandler::~AnnotationsHandler
virtual ~AnnotationsHandler()
Definition: annotationshandler.h:55
gloox::AnnotationsListItem::cdate
std::string cdate
Definition: annotationshandler.h:32
gloox::AnnotationsListItem::note
std::string note
Definition: annotationshandler.h:34
gloox
The namespace for the gloox library.
Definition: adhoc.cpp:28
gloox::AnnotationsHandler::handleAnnotations
virtual void handleAnnotations(const AnnotationsList &aList)=0
gloox::AnnotationsListItem
Definition: annotationshandler.h:30
gloox::AnnotationsListItem::mdate
std::string mdate
Definition: annotationshandler.h:33
gloox::AnnotationsListItem::jid
std::string jid
Definition: annotationshandler.h:31