|
reSIProcate/repro
9694
|
00001 #if !defined(Repro_CertPublicationHandler_hxx) 00002 #define Repro_CertPublicationHandler_hxx 00003 00004 #include "resip/dum/PublicationHandler.hxx" 00005 00006 namespace resip 00007 { 00008 class Security; 00009 class SipMessage; 00010 class SecurityAttributes; 00011 class Data; 00012 class Contents; 00013 } 00014 00015 namespace repro 00016 { 00017 00018 class CertPublicationHandler : public resip::ServerPublicationHandler 00019 { 00020 public: 00021 CertPublicationHandler(resip::Security& security); 00022 virtual void onInitial(resip::ServerPublicationHandle h, 00023 const resip::Data& etag, 00024 const resip::SipMessage& pub, 00025 const resip::Contents* contents, 00026 const resip::SecurityAttributes* attrs, 00027 UInt32 expires); 00028 virtual void onExpired(resip::ServerPublicationHandle h, const resip::Data& etag); 00029 virtual void onRefresh(resip::ServerPublicationHandle, 00030 const resip::Data& etag, 00031 const resip::SipMessage& pub, 00032 const resip::Contents* contents, 00033 const resip::SecurityAttributes* attrs, 00034 UInt32 expires); 00035 virtual void onUpdate(resip::ServerPublicationHandle h, 00036 const resip::Data& etag, 00037 const resip::SipMessage& pub, 00038 const resip::Contents* contents, 00039 const resip::SecurityAttributes* attrs, 00040 UInt32 expires); 00041 virtual void onRemoved(resip::ServerPublicationHandle h, const resip::Data& etag, const resip::SipMessage& pub, UInt32 expires); 00042 00043 private: 00044 void add(resip::ServerPublicationHandle h, const resip::Contents* contents); 00045 00046 resip::Security& mSecurity; 00047 }; 00048 00049 } 00050 00051 #endif
1.7.5.1