annotationshandler.h
/*
Copyright (c) 2005-2023 by Jakob Schröter <js@camaya.net>
This file is part of the gloox library. http://camaya.net/gloox
This software is distributed under a license. The full license
agreement can be found in the file LICENSE in this distribution.
This software may not be copied, modified, sold or distributed
other than expressed in the named license agreement.
This software is distributed without any warranty.
*/
#ifndef ANNOTATIONSHANDLER_H__
#define ANNOTATIONSHANDLER_H__
#include "macros.h"
#include <string>
#include <list>
namespace gloox
{
struct AnnotationsListItem
{
std::string jid;
std::string cdate;
std::string mdate;
std::string note;
};
typedef std::list<AnnotationsListItem> AnnotationsList;
class GLOOX_API AnnotationsHandler
{
public:
virtual ~AnnotationsHandler() {}
virtual void handleAnnotations( const AnnotationsList &aList ) = 0;
};
}
#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::AnnotationsHandler::handleAnnotations
virtual void handleAnnotations(const AnnotationsList &aList)=0
gloox::AnnotationsHandler::~AnnotationsHandler
virtual ~AnnotationsHandler()
Definition annotationshandler.h:55
gloox
The namespace for the gloox library.
Definition adhoc.cpp:28
gloox::AnnotationsList
std::list< AnnotationsListItem > AnnotationsList
Definition annotationshandler.h:40
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
gloox::AnnotationsListItem::cdate
std::string cdate
Definition annotationshandler.h:32
gloox::AnnotationsListItem::note
std::string note
Definition annotationshandler.h:34