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
00031
00032 #ifdef HAVE_CONFIG_H
00033 #include "autoconfig.h"
00034 #endif
00035
00036 #if defined(ENABLE_MRREG)
00037
00038 #include "upnp_mrreg.h"
00039
00040 using namespace zmm;
00041 using namespace mxml;
00042
00043 SINGLETON_MUTEX(MRRegistrarService, false);
00044
00045 String MRRegistrarService::serviceType = nil;
00046 String MRRegistrarService::serviceID = nil;
00047
00048 MRRegistrarService::MRRegistrarService() : Singleton<MRRegistrarService>()
00049 {
00050 if (serviceType == nil || serviceID == nil)
00051 throw _Exception(_("serviceType or serviceID not set!"));
00052 }
00053
00054 MRRegistrarService::~MRRegistrarService()
00055 {
00056 serviceType = nil;
00057 serviceID = nil;
00058 }
00059
00060 void MRRegistrarService::setStaticArgs(String _serviceType, String _serviceID)
00061 {
00062 serviceType = _serviceType;
00063 serviceID = _serviceID;
00064 }
00065
00066 #endif // ENABLE_MRREG