00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00032 #if defined(ENABLE_MRREG)
00033
00034 #ifndef __UPNP_MRREG_H__
00035 #define __UPNP_MRREG_H__
00036
00037 #include "common.h"
00038 #include "singleton.h"
00039 #include "action_request.h"
00040 #include "subscription_request.h"
00041 #include "upnp_xml.h"
00042
00050 class MRRegistrarService : public Singleton<MRRegistrarService>
00051 {
00052
00053 protected:
00056 static zmm::String serviceType;
00057
00059 static zmm::String serviceID;
00060
00067 void upnp_action_IsAuthorized(zmm::Ref<ActionRequest> request);
00068
00075 void upnp_action_RegisterDevice(zmm::Ref<ActionRequest> request);
00076
00081 void upnp_action_IsValidated(zmm::Ref<ActionRequest> request);
00082
00083 public:
00087 MRRegistrarService();
00088 virtual ~MRRegistrarService();
00089
00090 static void setStaticArgs(zmm::String serviceType, zmm::String serviceID);
00091
00097 void process_action_request(zmm::Ref<ActionRequest> request);
00098
00104 void process_subscription_request(zmm::Ref<SubscriptionRequest> request);
00105
00106
00107
00112
00113
00114 };
00115
00116 #endif // __UPNP_CM_H__
00117
00118 #endif // ENABLE_MRREG