33// Created : Oct. 24, 2005
44//
55// Purpose : UPnp Main Class
6- //
6+ //
77// Copyright (c) 2005 David Blain <mythtv@theblains.net>
8- //
9- // This library is free software; you can redistribute it and/or
8+ //
9+ // This library is free software; you can redistribute it and/or
1010// modify it under the terms of the GNU Lesser General Public
1111// License as published by the Free Software Foundation; either
1212// version 2.1 of the License, or at your option any later version of the LGPL.
@@ -132,7 +132,7 @@ bool UPnp::Initialize( QStringList &sIPAddrList, int nServicePort, HttpServer *p
132132 new SSDPExtension ( m_nServicePort, m_pHttpServer->m_sSharePath ));
133133
134134 // ----------------------------------------------------------------------
135- // Add Task to keep SSDPCache purged of stale entries.
135+ // Add Task to keep SSDPCache purged of stale entries.
136136 // ----------------------------------------------------------------------
137137
138138 UPnp::g_pTaskQueue->AddTask ( new SSDPCacheTask () );
@@ -214,7 +214,7 @@ void UPnp::CleanUp()
214214 g_pConfig = NULL ;
215215 }
216216
217- }
217+ }
218218
219219// ////////////////////////////////////////////////////////////////////////////
220220//
@@ -251,23 +251,23 @@ QString UPnp::GetResultDesc( UPnPResultCode eCode )
251251 switch ( eCode )
252252 {
253253 case UPnPResult_Success : return " Success" ;
254- case UPnPResult_InvalidAction : return " Invalid Action" ;
255- case UPnPResult_InvalidArgs : return " Invalid Args" ;
256- case UPnPResult_ActionFailed : return " Action Failed" ;
257- case UPnPResult_ArgumentValueInvalid : return " Argument Value Invalid" ;
258- case UPnPResult_ArgumentValueOutOfRange : return " Argument Value Out Of Range" ;
259- case UPnPResult_OptionalActionNotImplemented: return " Optional Action Not Implemented" ;
260- case UPnPResult_OutOfMemory : return " Out Of Memory" ;
261- case UPnPResult_HumanInterventionRequired : return " Human Intervention Required" ;
262- case UPnPResult_StringArgumentTooLong : return " String Argument Too Long" ;
263- case UPnPResult_ActionNotAuthorized : return " Action Not Authorized" ;
264- case UPnPResult_SignatureFailure : return " Signature Failure" ;
265- case UPnPResult_SignatureMissing : return " Signature Missing" ;
266- case UPnPResult_NotEncrypted : return " Not Encrypted" ;
267- case UPnPResult_InvalidSequence : return " Invalid Sequence" ;
268- case UPnPResult_InvalidControlURL : return " Invalid Control URL" ;
269- case UPnPResult_NoSuchSession : return " No Such Session" ;
270- case UPnPResult_MS_AccessDenied : return " Access Denied" ;
254+ case UPnPResult_InvalidAction : return " Invalid Action" ;
255+ case UPnPResult_InvalidArgs : return " Invalid Args" ;
256+ case UPnPResult_ActionFailed : return " Action Failed" ;
257+ case UPnPResult_ArgumentValueInvalid : return " Argument Value Invalid" ;
258+ case UPnPResult_ArgumentValueOutOfRange : return " Argument Value Out Of Range" ;
259+ case UPnPResult_OptionalActionNotImplemented: return " Optional Action Not Implemented" ;
260+ case UPnPResult_OutOfMemory : return " Out Of Memory" ;
261+ case UPnPResult_HumanInterventionRequired : return " Human Intervention Required" ;
262+ case UPnPResult_StringArgumentTooLong : return " String Argument Too Long" ;
263+ case UPnPResult_ActionNotAuthorized : return " Action Not Authorized" ;
264+ case UPnPResult_SignatureFailure : return " Signature Failure" ;
265+ case UPnPResult_SignatureMissing : return " Signature Missing" ;
266+ case UPnPResult_NotEncrypted : return " Not Encrypted" ;
267+ case UPnPResult_InvalidSequence : return " Invalid Sequence" ;
268+ case UPnPResult_InvalidControlURL : return " Invalid Control URL" ;
269+ case UPnPResult_NoSuchSession : return " No Such Session" ;
270+ case UPnPResult_MS_AccessDenied : return " Access Denied" ;
271271
272272 case UPnPResult_CDS_NoSuchObject : return " No Such Object" ;
273273 case UPnPResult_CDS_InvalidCurrentTagValue : return " Invalid CurrentTagValue" ;
@@ -303,18 +303,18 @@ QString UPnp::GetResultDesc( UPnPResultCode eCode )
303303}
304304
305305// ////////////////////////////////////////////////////////////////////////////
306- //
306+ //
307307// ////////////////////////////////////////////////////////////////////////////
308308
309- void UPnp::FormatErrorResponse ( HTTPRequest *pRequest,
309+ void UPnp::FormatErrorResponse ( HTTPRequest *pRequest,
310310 UPnPResultCode eCode,
311311 const QString &msg )
312312{
313313 QString sMsg ( msg );
314314
315315 if (pRequest != NULL )
316316 {
317- QString sDetails = " " ;
317+ QString sDetails = " " ;
318318
319319 if (pRequest->m_bSOAPRequest )
320320 sDetails = " <UPnPResult xmlns=\" urn:schemas-upnp-org:control-1-0\" >" ;
@@ -327,12 +327,12 @@ void UPnp::FormatErrorResponse( HTTPRequest *pRequest,
327327 .arg ( eCode )
328328 .arg ( HTTPRequest::Encode ( sMsg ) );
329329
330- if (pRequest->m_bSOAPRequest )
330+ if (pRequest->m_bSOAPRequest )
331331 sDetails += " </UPnPResult>" ;
332332
333333
334334 pRequest->FormatErrorResponse ( true , // -=>TODO: Should make this dynamic
335- " UPnPResult" ,
335+ " UPnPResult" ,
336336 sDetails );
337337 }
338338 else
0 commit comments