--- 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