servicediscoveryandcontrol/pnp/test/upnp/upnpdescription/inc/cpnpserviceparam.inl
changeset 0 f5a58ecadc66
equal deleted inserted replaced
-1:000000000000 0:f5a58ecadc66
       
     1 // Copyright (c) 2008-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 void CUPnPArgValueList::AppendL(const TDesC8& aValue)
       
    17 	{
       
    18 	RBuf8 tmp;
       
    19 	tmp.CreateL(aValue.Length());
       
    20 	tmp.Copy(aValue);
       
    21 
       
    22 	iAllowedValueList.AppendL(tmp);
       
    23 	}
       
    24 
       
    25 TInt CUPnPArgValueList::Count () const
       
    26 	{
       
    27 	return iAllowedValueList.Count();
       
    28 	}
       
    29 
       
    30 const TDesC8& CUPnPArgValueList::At(const TInt aIndex) const
       
    31 	{
       
    32 	return iAllowedValueList[aIndex];
       
    33 	}
       
    34 
       
    35 //------------------------------------------------------------------------
       
    36 
       
    37 void CUPnPStateVariable::SetAllowedValuesL( CUPnPAllowedValue *aValue)
       
    38 	{
       
    39 	iAllowedValue = aValue;
       
    40 	}
       
    41 
       
    42 const CUPnPAllowedValue* CUPnPStateVariable::AllowedValues () const
       
    43 	{
       
    44 	return iAllowedValue;
       
    45 	}
       
    46 
       
    47 void CUPnPStateVariable::SetAllowedValueType ( TBool aStatus ) 
       
    48 	{
       
    49 	isValue = aStatus;
       
    50 	}
       
    51 
       
    52 TBool CUPnPStateVariable::AllowedValueType () const
       
    53 	{
       
    54 	return isValue;
       
    55 	}
       
    56 //----------------------------------------------------------
       
    57 
       
    58 void CUPnPAction::AppendL(const CUPnPArgument* aValue)
       
    59 	{
       
    60 	iArgumentList.AppendL(aValue);
       
    61 	}
       
    62 
       
    63 TInt CUPnPAction::Count () const
       
    64 	{
       
    65 	return iArgumentList.Count();
       
    66 	}
       
    67 
       
    68 CUPnPArgument* CUPnPAction::At( TInt aIndex) const
       
    69 	{
       
    70 	return iArgumentList[aIndex];
       
    71 	}
       
    72 
       
    73 //-------------------------------------------------------------
       
    74 
       
    75 
       
    76 
       
    77 void CUPnPServiceDescription::AppendToActionList(const CUPnPAction* aValue)
       
    78 	{
       
    79 	iActionList.AppendL(aValue);
       
    80 	}
       
    81 
       
    82 TInt CUPnPServiceDescription::CountOfActionList () const
       
    83 	{
       
    84 	return iActionList.Count();
       
    85 	}
       
    86 
       
    87 const CUPnPAction* CUPnPServiceDescription::AtActionList( TInt aIndex) const
       
    88 	{
       
    89 	return iActionList[aIndex];
       
    90 	}
       
    91 
       
    92 void CUPnPServiceDescription::AppendToServiceStateTable(const CUPnPStateVariable* aValue)
       
    93 	{
       
    94 	iServiceStateTable.AppendL(aValue);
       
    95 	}
       
    96 
       
    97 TInt CUPnPServiceDescription::CountOfServiceStateTable () const
       
    98 	{
       
    99 	return iServiceStateTable.Count();
       
   100 	}
       
   101 
       
   102 const CUPnPStateVariable* CUPnPServiceDescription::AtServiceStateTable(const TInt aIndex) const 
       
   103 	{
       
   104 	return iServiceStateTable[aIndex];
       
   105 	}
       
   106 
       
   107 void CUPnPServiceDescription::SetMinorNumberL(const TInt aValue)
       
   108 	{
       
   109 	iVersion.iMinor = aValue;
       
   110 	}
       
   111 
       
   112 const TInt CUPnPServiceDescription::MinorNumber () const
       
   113 	{
       
   114 	return iVersion.iMinor;
       
   115 	}
       
   116 
       
   117 void CUPnPServiceDescription::SetMajorNumberL(const TInt aValue)
       
   118 	{
       
   119 	iVersion.iMajor = aValue;
       
   120 	}
       
   121 
       
   122 const TInt CUPnPServiceDescription::MajorNumber () const
       
   123 	{
       
   124 	return iVersion.iMajor;
       
   125 	}
       
   126 
       
   127