videofeeds/clientapi/src/CIptvEpgService.cpp
branchRCL_3
changeset 23 befca0ec475f
parent 0 96612d01cf9f
equal deleted inserted replaced
22:839377eedc2b 23:befca0ec475f
       
     1 /*
       
     2 * Copyright (c) 2004-2005 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: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 // INCLUDE FILES
       
    22 #include <e32base.h>
       
    23 #include "CIptvEpgService.h"
       
    24 
       
    25 // CONSTANTS
       
    26 
       
    27 // ============================ MEMBER FUNCTIONS ============================
       
    28 
       
    29 // --------------------------------------------------------------------------
       
    30 // CIptvEpgService::ConstructL
       
    31 // Symbian 2nd phase constructor can leave.
       
    32 // --------------------------------------------------------------------------
       
    33 //
       
    34 void CIptvEpgService::ConstructL()
       
    35     {
       
    36     iSearchUrl = HBufC::NewL( 0 );
       
    37     }
       
    38 
       
    39 // --------------------------------------------------------------------------
       
    40 // CIptvEpgService::NewL
       
    41 // Two-phased constructor.
       
    42 // --------------------------------------------------------------------------
       
    43 //
       
    44 EXPORT_C CIptvEpgService* CIptvEpgService::NewL()
       
    45     {
       
    46     CIptvEpgService* self = new(ELeave) CIptvEpgService();
       
    47     
       
    48     CleanupStack::PushL( self );
       
    49     self->ConstructL();
       
    50     CleanupStack::Pop( self );
       
    51     
       
    52     return self;
       
    53     }
       
    54 
       
    55 // --------------------------------------------------------------------------
       
    56 // CIptvEpgService::~CIptvEpgService
       
    57 // Destructor
       
    58 // --------------------------------------------------------------------------
       
    59 //
       
    60 CIptvEpgService::~CIptvEpgService()
       
    61     {
       
    62 	delete iSearchUrl;
       
    63     }
       
    64 
       
    65 // --------------------------------------------------------------------------
       
    66 // CIptvEpgService::CIptvEpgService
       
    67 // C++ default constructor
       
    68 // --------------------------------------------------------------------------
       
    69 //
       
    70 CIptvEpgService::CIptvEpgService()
       
    71     {
       
    72     }
       
    73 
       
    74 // --------------------------------------------------------------------------
       
    75 // CIptvEpgService::SetSearchUrlL
       
    76 // Search url setter
       
    77 // --------------------------------------------------------------------------
       
    78 //
       
    79 EXPORT_C void CIptvEpgService::SetSearchUrlL( const TDesC& aSearchUrl )
       
    80 	{
       
    81 	if( iSearchUrl )
       
    82 		{
       
    83 		delete iSearchUrl;
       
    84 		iSearchUrl = NULL;
       
    85 		}
       
    86 
       
    87 	iSearchUrl = aSearchUrl.AllocL();
       
    88 	}
       
    89 
       
    90 // --------------------------------------------------------------------------
       
    91 // CIptvEpgService::SearchUrl
       
    92 // Search url getter
       
    93 // --------------------------------------------------------------------------
       
    94 //
       
    95 EXPORT_C TPtrC CIptvEpgService::SearchUrl()
       
    96 	{
       
    97 	return *iSearchUrl;
       
    98 	}