buseventchildsa.h

00001 /***************************************************************************
00002 *   Copyright (C) 2005 by                                                 *
00003 *   Pedro J. Fernandez Ruiz    pedroj.fernandez@dif.um.es                 *
00004 *   Alejandro Perez Mendez     alejandro_perez@dif.um.es                  *
00005 *                                                                         *
00006 *   This library is free software; you can redistribute it and/or         *
00007 *   modify it under the terms of the GNU Lesser General Public            *
00008 *   License as published by the Free Software Foundation; either          *
00009 *   version 2.1 of the License, or (at your option) any later version.    *
00010 *                                                                         *
00011 *   This library is distributed in the hope that it will be useful,       *
00012 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00013 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
00014 *   Lesser General Public License for more details.                       *
00015 *                                                                         *
00016 *   You should have received a copy of the GNU Lesser General Public      *
00017 *   License along with this library; if not, write to the Free Software   *
00018 *   Foundation, Inc., 51 Franklin St, Fifth Floor,                        *
00019 *   Boston, MA  02110-1301  USA                                           *
00020 ***************************************************************************/
00021 #ifndef BUSEVENT_CHILD_SA_H
00022 #define BUSEVENT_CHILD_SA_H
00023 
00024 #include "busevent.h"
00025 #include "enums.h"
00026 #include "bytearray.h"
00027 
00028 namespace openikev2 {
00029     typedef class IkeSaController;
00030     typedef class ChildSa;
00031 
00036     class BusEventChildSa : public BusEvent {
00037 
00038             /****************************** ENUMS ******************************/
00039         public:
00041             enum CHILD_SA_EVENT_TYPE{
00042                 NEW_CHILD_SA,                             
00043                 DEL_CHILD_SA,                             
00044                 CHILD_SA_ESTABLISHED,                     
00045                 CHILD_SA_REKEYED,                         
00047                 CHILD_SA_FAIL_GENERIC,                    
00048                 CHILD_SA_FAIL_NO_PROPOSAL_CHOSEN,         
00049                 CHILD_SA_FAIL_INVALID_KE,                 
00050                 CHILD_SA_FAIL_INVALID_TS,                 
00051                 CHILD_SA_FAIL_SINGLE_PAIR_REQUIRED,       
00052                 CHILD_SA_FAIL_NO_ADDITIONAL_SAS,          
00053                 CHILD_SA_FAIL_INVALID_SPI,                
00054         };
00055 
00056             /****************************** ATTRIBUTES ******************************/
00057         public:
00058             CHILD_SA_EVENT_TYPE child_sa_event_type;    
00059             IkeSaController& ike_sa_controller;       
00060             ChildSa& child_sa;                          
00061             void* data;                                 
00063             /****************************** METHODS ******************************/
00064         public:
00065 
00072             BusEventChildSa( CHILD_SA_EVENT_TYPE child_sa_event_type, IkeSaController& ike_sa_controller, ChildSa& child_sa);
00073 
00081             BusEventChildSa( CHILD_SA_EVENT_TYPE child_sa_event_type, IkeSaController& ike_sa_controller, ChildSa& child_sa, void* data );
00082 
00083             virtual ~BusEventChildSa();
00084     };
00085 };
00086 #endif

Generated on Fri Jul 27 11:04:44 2007 for libopenikev2 by  doxygen 1.5.1