mmshplugins/mmshaoplugin/tsrc/ut_aoplugin/Stubs/src/spentry_stub.cpp
branchRCL_3
changeset 33 bc78a40cd63c
parent 32 73a1feb507fb
child 35 6c57ef9392d2
equal deleted inserted replaced
32:73a1feb507fb 33:bc78a40cd63c
     1 /*
       
     2 * Copyright (c)  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 "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:  Service Provider Settings entry. 
       
    15 *
       
    16 */
       
    17 
       
    18 #include "spentry.h"
       
    19 #include "spproperty.h"
       
    20 //#include "spdefaultvalues.h"
       
    21 
       
    22 
       
    23 // ======== MEMBER FUNCTIONS ========
       
    24 
       
    25 
       
    26 // ---------------------------------------------------------------------------
       
    27 // Constructor
       
    28 // ---------------------------------------------------------------------------
       
    29 //
       
    30 CSPEntry::CSPEntry()
       
    31     {
       
    32     }
       
    33 
       
    34 // ---------------------------------------------------------------------------
       
    35 // Constructor
       
    36 // ---------------------------------------------------------------------------
       
    37 //
       
    38 void CSPEntry::ConstructL()
       
    39     {
       
    40     }
       
    41 
       
    42 // ---------------------------------------------------------------------------
       
    43 // Constructor
       
    44 // ---------------------------------------------------------------------------
       
    45 //
       
    46 EXPORT_C CSPEntry* CSPEntry::NewL()
       
    47     {
       
    48     CSPEntry* self = CSPEntry::NewLC();
       
    49     CleanupStack::Pop( self );
       
    50     return self;
       
    51     }
       
    52 
       
    53 // ---------------------------------------------------------------------------
       
    54 // Constructor
       
    55 // ---------------------------------------------------------------------------
       
    56 //
       
    57 EXPORT_C CSPEntry* CSPEntry::NewLC()
       
    58     {
       
    59     CSPEntry* self = new( ELeave ) CSPEntry;
       
    60     CleanupStack::PushL( self );
       
    61     self->ConstructL();
       
    62     return self;
       
    63     }
       
    64 
       
    65 // ---------------------------------------------------------------------------
       
    66 // Destructor
       
    67 // ---------------------------------------------------------------------------
       
    68 //
       
    69 EXPORT_C CSPEntry::~CSPEntry()
       
    70     {
       
    71     iServiceName.Close();
       
    72     iPropertyArray.ResetAndDestroy();
       
    73     iPropertyArray.Close();
       
    74     }
       
    75 
       
    76 // ---------------------------------------------------------------------------
       
    77 // Returns service name of this entry
       
    78 // ---------------------------------------------------------------------------
       
    79 //
       
    80 EXPORT_C const TDesC& CSPEntry::GetServiceName() const
       
    81     {
       
    82     _LIT( KTestProvideName, "VoIP" );
       
    83     return  KTestProvideName;
       
    84     }
       
    85 
       
    86 
       
    87 // End of File.