3
MediaTomb - http://www.mediatomb.cc/
5
upnp_mrreg.cc - this file is part of MediaTomb.
7
Copyright (C) 2005 Gena Batyan <bgeradz@mediatomb.cc>,
8
Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>
10
Copyright (C) 2006-2007 Gena Batyan <bgeradz@mediatomb.cc>,
11
Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>,
12
Leonhard Wimmer <leo@mediatomb.cc>
14
MediaTomb is free software; you can redistribute it and/or modify
15
it under the terms of the GNU General Public License version 2
16
as published by the Free Software Foundation.
18
MediaTomb is distributed in the hope that it will be useful,
19
but WITHOUT ANY WARRANTY; without even the implied warranty of
20
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
GNU General Public License for more details.
23
You should have received a copy of the GNU General Public License
24
version 2 along with MediaTomb; if not, write to the Free Software
25
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
27
$Id: upnp_mrreg.cc 1124 2007-02-17 21:49:15Z lww $
30
/// \file upnp_mrreg.cc
33
#include "autoconfig.h"
36
#if defined(ENABLE_MRREG)
38
#include "upnp_mrreg.h"
43
SINGLETON_MUTEX(MRRegistrarService, false);
45
String MRRegistrarService::serviceType = nil;
46
String MRRegistrarService::serviceID = nil;
48
MRRegistrarService::MRRegistrarService() : Singleton<MRRegistrarService>()
50
if (serviceType == nil || serviceID == nil)
51
throw _Exception(_("serviceType or serviceID not set!"));
54
MRRegistrarService::~MRRegistrarService()
60
void MRRegistrarService::setStaticArgs(String _serviceType, String _serviceID)
62
serviceType = _serviceType;
63
serviceID = _serviceID;
66
#endif // ENABLE_MRREG