datacommsserver/esockserver/commsdataobjects/test/src/noddyqueryconnsettingsimpl.cpp
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalTechnology
       
    19 */
       
    20 
       
    21 #include "noddyqueryconnsettingsimpl.h"
       
    22 
       
    23 
       
    24 TInt CNoddyQueryConnSettingsImpl::GetInt(CommsDat::TMDBElementId aElementId, TUint32& aValue, MPlatsecApiExt* aPlatsecApiExt)
       
    25 	{
       
    26 	(void)aElementId;
       
    27 	(void)aPlatsecApiExt;
       
    28 	aValue = 31;
       
    29 	return KErrNone;
       
    30 	}
       
    31 	
       
    32 TInt CNoddyQueryConnSettingsImpl::GetInt(CommsDat::TMDBElementId aElementId, TInt& aValue, MPlatsecApiExt* aPlatsecApiExt)
       
    33 	{
       
    34 	(void)aElementId;
       
    35 	(void)aPlatsecApiExt;
       
    36 	(void)aValue;
       
    37 	return KErrNotFound;
       
    38 	}
       
    39 	
       
    40 TInt CNoddyQueryConnSettingsImpl::GetBool(CommsDat::TMDBElementId aElementId, TBool& aValue, MPlatsecApiExt* aPlatsecApiExt)
       
    41 	{
       
    42 	(void)aElementId;
       
    43 	(void)aPlatsecApiExt;
       
    44 	aValue = ETrue;
       
    45 	return KErrNone;
       
    46 	}
       
    47 	
       
    48 TInt CNoddyQueryConnSettingsImpl::GetText(CommsDat::TMDBElementId aElementId, HBufC8*& aValue, MPlatsecApiExt* aPlatsecApiExt)
       
    49 	{
       
    50 	(void)aElementId;
       
    51 	(void)aPlatsecApiExt;
       
    52 	TRAPD(err, aValue = HBufC8::NewL(32));
       
    53 	*aValue = _L8("8:testing.8");
       
    54 	return KErrNone;
       
    55 	}
       
    56 	
       
    57 TInt CNoddyQueryConnSettingsImpl::GetText(CommsDat::TMDBElementId aElementId, HBufC16*& aValue, MPlatsecApiExt* aPlatsecApiExt)
       
    58 	{
       
    59 	(void)aElementId;
       
    60 	(void)aPlatsecApiExt;
       
    61 	TRAPD(err, aValue = HBufC16::NewL(32));
       
    62 	*aValue = _L16("16.test.16");
       
    63 	return KErrNone;
       
    64 	}
       
    65