sysstatemgmt/systemstatemgr/cmd/src/ssmcommandlistresourcereader.cpp
branchRCL_3
changeset 3 a811597961f0
parent 0 4e1aa6a622a0
equal deleted inserted replaced
0:4e1aa6a622a0 3:a811597961f0
    17 #include <ssm/ssmcommandlist.h>
    17 #include <ssm/ssmcommandlist.h>
    18 #include <ssm/ssmconditionalcallback.h>
    18 #include <ssm/ssmconditionalcallback.h>
    19 #include "ssmpanic.h"
    19 #include "ssmpanic.h"
    20 #include "ssmcommandlistresourcereaderimpl.h"
    20 #include "ssmcommandlistresourcereaderimpl.h"
    21 #include "ssmcommandlistimpl.h"
    21 #include "ssmcommandlistimpl.h"
       
    22 #include "ssmdebug.h"
    22 
    23 
    23 /**
    24 /**
    24 Constructs a new command list resource reader object.
    25 Constructs a new command list resource reader object.
    25 
    26 
    26 This object must be successfully initialised before it can
    27 This object must be successfully initialised before it can
   205 @panic CmdResourceRead ENoPreparedCommandList if a prepared command list is not available.
   206 @panic CmdResourceRead ENoPreparedCommandList if a prepared command list is not available.
   206 */
   207 */
   207 EXPORT_C CSsmCommandList* CSsmCommandListResourceReader::GetCommandList()
   208 EXPORT_C CSsmCommandList* CSsmCommandListResourceReader::GetCommandList()
   208 	{
   209 	{
   209 	__ASSERT_DEBUG(iImpl->IsCommandListReady(), PanicNow(KPanicCmdResourceReader, ENoPreparedCommandList));
   210 	__ASSERT_DEBUG(iImpl->IsCommandListReady(), PanicNow(KPanicCmdResourceReader, ENoPreparedCommandList));
       
   211 	DEBUGPRINT2A("CSsmCommandListResourceReader::GetCommandList - List Count() = %d", iCommandList->Count());
   210 	CSsmCommandList* const commandList = iCommandList;
   212 	CSsmCommandList* const commandList = iCommandList;
   211 	iCommandList = NULL; // return ownership of command list to the caller
   213 	iCommandList = NULL; // return ownership of command list to the caller
   212 	return commandList;
   214 	return commandList;
   213 	}
   215 	}
   214 
   216