# HG changeset patch # User hgs # Date 1286884963 -10800 # Node ID 8a984d260a2d494ade5daf6cf50a90f800337d5d # Parent cb32bcc88badb4ec375c9d8ef4d3a77f168acc03 201039_01 diff -r cb32bcc88bad -r 8a984d260a2d sysstatemgmt/systemstatemgr/dompolicy/src/domainpolicy2.cpp --- a/sysstatemgmt/systemstatemgr/dompolicy/src/domainpolicy2.cpp Fri Oct 08 14:33:25 2010 +0300 +++ b/sysstatemgmt/systemstatemgr/dompolicy/src/domainpolicy2.cpp Tue Oct 12 15:02:43 2010 +0300 @@ -128,23 +128,21 @@ @param aPtr Will have the state specification structure used in the array . @param aNumElements Will hold the number of elements in the array. -@return will return the version of the domain policy if the feature is enabled or else returns KErrNotSupported. - */ +@return will return the version of the domain policy if the feature is enabled or else returns KErrNone. +*/ #ifdef SYMBIAN_INCLUDE_APP_CENTRIC EXPORT_C TInt DmPolicy::GetStateSpec(TAny*& aPtr, TUint& aNumElements) - { - TInt version = KErrNotSupported; + { aPtr = (TAny*) StateSpecification; aNumElements = sizeof(StateSpecification)/sizeof(SDmStateSpecV1); - version = KSDmStateSpecV1; - return version; + return KSDmStateSpecV1; } #else EXPORT_C TInt DmPolicy::GetStateSpec(TAny*& aPtr, TUint& aNumElements) { aPtr = NULL; aNumElements = 0; - return KErrNotSupported; + return KErrNone; } #endif //SYMBIAN_INCLUDE_APP_CENTRIC