Back to index

openldap  2.4.31
SaslInteractionHandler.h
Go to the documentation of this file.
00001 // $OpenLDAP$
00002 /*
00003  * Copyright 2007-2012 The OpenLDAP Foundation, All Rights Reserved.
00004  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
00005  */
00006 
00007 #ifndef SASL_INTERACTION_HANDLER_H
00008 #define SASL_INTERACTION_HANDLER_H
00009 #include <list>
00010 
00011 class SaslInteraction;
00012 
00013 class SaslInteractionHandler {
00014     public:
00015         virtual void handleInteractions( const std::list<SaslInteraction*> &cb )=0;
00016         virtual ~SaslInteractionHandler() {}
00017 };
00018 
00019 class DefaultSaslInteractionHandler {
00020     public:
00021         virtual void handleInteractions( const std::list<SaslInteraction*> &cb );
00022         virtual ~DefaultSaslInteractionHandler();
00023 
00024     private:
00025         std::list<SaslInteraction*> cleanupList;
00026 };
00027 #endif /* SASL_INTERACTION_HANDLER_H */