mucmessagesession.h
/*
Copyright (c) 2006-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 MUCMESSAGESESSION_H__
#define MUCMESSAGESESSION_H__
#include "messagesession.h"
namespace gloox
{
class ClientBase;
class GLOOX_API MUCMessageSession : public MessageSession
{
public:
MUCMessageSession( ClientBase* parent, const JID& jid );
virtual ~MUCMessageSession();
virtual void send( const std::string& message );
virtual void send( const std::string& message, const std::string& subject, const StanzaExtensionList& sel = StanzaExtensionList() );
virtual void setSubject( const std::string& subject );
// reimplemented from MessageSession
virtual void handleMessage( Message& msg );
};
}
#endif // MUCMESSAGESESSION_H__
gloox::ClientBase
This is the common base class for a Jabber/XMPP Client and a Jabber Component.
Definition clientbase.h:79
gloox::JID
An abstraction of a JID.
Definition jid.h:31
gloox::MUCMessageSession::send
virtual void send(const std::string &message)
Definition mucmessagesession.cpp:39
gloox::MUCMessageSession::MUCMessageSession
MUCMessageSession(ClientBase *parent, const JID &jid)
Definition mucmessagesession.cpp:22
gloox::MUCMessageSession::setSubject
virtual void setSubject(const std::string &subject)
Definition mucmessagesession.cpp:66
gloox::MUCMessageSession::handleMessage
virtual void handleMessage(Message &msg)
Definition mucmessagesession.cpp:33
gloox::MessageSession::MessageSession
MessageSession(ClientBase *parent, const JID &jid, bool wantUpgrade=true, int types=0, bool honorTID=true)
Definition messagesession.cpp:24
gloox::Message
An abstraction of a message stanza.
Definition message.h:34
gloox
The namespace for the gloox library.
Definition adhoc.cpp:28
gloox::StanzaExtensionList
std::list< const StanzaExtension * > StanzaExtensionList
Definition gloox.h:1272