videofeeds/utils/src/TIptvRssSearchQuery.cpp
changeset 0 96612d01cf9f
equal deleted inserted replaced
-1:000000000000 0:96612d01cf9f
       
     1 /*
       
     2 * Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:    Data class for RSS search query.*
       
    15 */
       
    16 
       
    17 
       
    18 
       
    19 
       
    20 #include "TIptvRssSearchQuery.h"
       
    21 #include <s32mem.h>
       
    22 
       
    23 // ---------------------------------------------------------------------------
       
    24 // Constructor.
       
    25 // ---------------------------------------------------------------------------
       
    26 //
       
    27 EXPORT_C TIptvRssSearchQuery::TIptvRssSearchQuery()
       
    28 	{
       
    29 	}
       
    30 
       
    31 // ---------------------------------------------------------------------------
       
    32 // Destructor.
       
    33 // ---------------------------------------------------------------------------
       
    34 //
       
    35 EXPORT_C TIptvRssSearchQuery::~TIptvRssSearchQuery()
       
    36 	{
       
    37 	}
       
    38 
       
    39 // ---------------------------------------------------------------------------
       
    40 // Getter.
       
    41 // ---------------------------------------------------------------------------
       
    42 //
       
    43 EXPORT_C TDesC& TIptvRssSearchQuery::SearchString()
       
    44 	{
       
    45 	return iSearchString;
       
    46 	}
       
    47 
       
    48 // ---------------------------------------------------------------------------
       
    49 // Setter.
       
    50 // ---------------------------------------------------------------------------
       
    51 //
       
    52 EXPORT_C void TIptvRssSearchQuery::SetSearchString( TDesC& aSearchString )
       
    53 	{
       
    54 	iSearchString.Zero();
       
    55 	TInt stringLength = 
       
    56 	    Min( aSearchString.Length(), KIptvRssSearchMaxSearchStringLength );
       
    57 	iSearchString.Copy( aSearchString.Mid( 0, stringLength ) );
       
    58 	}