classicui_pub/labels_api/tsrc/src/testsdklabelslabel.cpp
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 /*
       
     2 * Copyright (c) 2002 - 2007 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:  Test EIKLABEL.H
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #include <barsread.h>
       
    21 #include <coeaui.h>
       
    22 #include <testsdklabels.rsg>
       
    23 
       
    24 #include "testsdklabelslabel.h"
       
    25 
       
    26 // ============================ MEMBER FUNCTIONS ===============================
       
    27 // -----------------------------------------------------------------------------
       
    28 // CTestSDKLabelsLabel::TestLabelDeconstructorL
       
    29 // -----------------------------------------------------------------------------
       
    30 CTestSDKLabelsLabel* CTestSDKLabelsLabel::NewLC()
       
    31     {
       
    32     CTestSDKLabelsLabel* self = new (ELeave) CTestSDKLabelsLabel;
       
    33     CleanupStack::PushL( self );
       
    34     self->ConstructL();
       
    35     return self;
       
    36     }
       
    37 
       
    38 // -----------------------------------------------------------------------------
       
    39 // CTestSDKLabelsLabel::~CTestSDKLabelsLabel
       
    40 // -----------------------------------------------------------------------------
       
    41 CTestSDKLabelsLabel::~CTestSDKLabelsLabel()
       
    42     {
       
    43     
       
    44     }
       
    45 
       
    46 // -----------------------------------------------------------------------------
       
    47 // CTestSDKLabelsLabel::WriteInternalStateL
       
    48 // -----------------------------------------------------------------------------
       
    49 void CTestSDKLabelsLabel::WriteInternalStateL(RWriteStream& aWriteStream) const
       
    50     {
       
    51     CEikLabel::WriteInternalStateL( aWriteStream );
       
    52     }
       
    53 
       
    54 // -----------------------------------------------------------------------------
       
    55 // CTestSDKLabelsLabel::ConstructL
       
    56 // -----------------------------------------------------------------------------
       
    57 void CTestSDKLabelsLabel::ConstructL()
       
    58     {
       
    59     TResourceReader reader;
       
    60     CCoeEnv::Static()->CreateResourceReaderLC( reader, R_TEST_LABELS );
       
    61     CEikLabel::ConstructFromResourceL( reader );
       
    62     CleanupStack::PopAndDestroy();
       
    63     }
       
    64 
       
    65 // -----------------------------------------------------------------------------
       
    66 // CTestSDKLabelsLabel::CTestSDKLabelsLabel
       
    67 // -----------------------------------------------------------------------------
       
    68 CTestSDKLabelsLabel::CTestSDKLabelsLabel():CEikLabel()
       
    69     {
       
    70     
       
    71     }