messagefilter.h

00001 /*
00002   Copyright (c) 2005-2006 by Jakob Schroeter <js@camaya.net>
00003   This file is part of the gloox library. http://camaya.net/gloox
00004 
00005   This software is distributed under a license. The full license
00006   agreement can be found in the file LICENSE in this distribution.
00007   This software may not be copied, modified, sold or distributed
00008   other than expressed in the named license agreement.
00009 
00010   This software is distributed without any warranty.
00011 */
00012 
00013 
00014 #ifndef MESSAGEFILTER_H__
00015 #define MESSAGEFILTER_H__
00016 
00017 #include "messagesession.h"
00018 
00019 namespace gloox
00020 {
00021 
00022   class Stanza;
00023   class Tag;
00024 
00038   class GLOOX_API MessageFilter
00039   {
00040 
00041     public:
00046       MessageFilter( MessageSession *parent );
00047 
00051       virtual ~MessageFilter();
00052 
00060       virtual void attachTo( MessageSession *session );
00061 
00067       virtual void decorate( Tag *tag ) = 0;
00068 
00074       virtual void filter( Stanza *stanza ) = 0;
00075 
00076     protected:
00077       MessageSession *m_parent;
00078 
00079   };
00080 
00081 }
00082 
00083 #endif // MESSAGEFILTER_H__

Generated on Tue May 1 14:20:20 2007 for gloox by  doxygen 1.5.1