testexecmdw/tef/tef/utils/inc/testshareddata.h
branchRCL_3
changeset 3 9397a16b6eb8
parent 1 6edeef394eb7
equal deleted inserted replaced
1:6edeef394eb7 3:9397a16b6eb8
     1 /*
       
     2 * Copyright (c) 2005-2009 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:  
       
    15 * Demonstrate a container class with data objects
       
    16 * This class object is shared using the CTEFSharedData template object
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 
       
    22 /**
       
    23  @file TestSharedData.h
       
    24 */
       
    25 
       
    26 #if !(defined __TEST_SHARED_DATA_H__)
       
    27 #define __TEST_SHARED_DATA_H__
       
    28 #include "e32std.h"
       
    29 
       
    30 // Constant
       
    31 const TInt KMaxSharedDataLength = 255;
       
    32 
       
    33 class CTestSharedData : public CBase
       
    34 
       
    35 /**
       
    36  * Demonstrate a container class with data objects
       
    37  * This class object is shared using the CTEFSharedData template object
       
    38 
       
    39  @internalComponent
       
    40  @test
       
    41 */
       
    42  	{
       
    43 public:
       
    44 	CTestSharedData();
       
    45 	~CTestSharedData();
       
    46 	// Initializes the member variable
       
    47 	inline void Construct();
       
    48 	// Copies the values to member varible
       
    49 	inline void SetText(TDesC& aVal);
       
    50 	// Appends the text to member variable
       
    51 	inline void AppendText(TDesC& aVal);
       
    52 	// Reads the text from member varibale
       
    53 	inline void GetText(TDes& aVal);
       
    54 	// Returns the length of the text
       
    55 	inline TInt TextLength(){return User::StringLength(iText);}
       
    56 private:
       
    57 	// Member Variable
       
    58 	TText	iText[KMaxSharedDataLength];
       
    59 	};
       
    60 
       
    61 #include <test/testshareddata.inl>
       
    62 #endif