lowlevellibsandfws/pluginfw/Framework/Example/examplefourteen.h
changeset 0 e4d67989cc36
equal deleted inserted replaced
-1:000000000000 0:e4d67989cc36
       
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // The definition of a class to be provided by ECom. Uses the CExampleInterface class as a base.
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalComponent
       
    21 */
       
    22 
       
    23 #include "Interface.h"
       
    24 #include "ExampleResolver.h"
       
    25 #include "TestUtilities.h"	// For __FILE__LINE__
       
    26 
       
    27 const TUid KImplUid = {0x10009E48};
       
    28 
       
    29 // ____________________________________________________________________________
       
    30 // 
       
    31 /**	Intended usage: This class implements the functionality promised by 
       
    32 	the CExampleInterface definition class. It does little apart from provides a test instance
       
    33 	which may be retrieved and run for testing purposes.
       
    34  */
       
    35 class CImplementationClassFourteen : public CExampleInterface
       
    36 {
       
    37 // Methods
       
    38 public:
       
    39 	static CImplementationClassFourteen* NewL(TAny* aInitParams);
       
    40 
       
    41 	virtual ~CImplementationClassFourteen();
       
    42 
       
    43 	void DoMethodL();
       
    44 
       
    45 	TInt FireAndForget();
       
    46 
       
    47  	TUid ImplId();
       
    48 
       
    49 private:
       
    50 
       
    51 	CImplementationClassFourteen();
       
    52 
       
    53 	void ConstructL(TAny* aInitParams);
       
    54 
       
    55 // Provide the CActive overloads
       
    56 	void RunL();
       
    57 	void DoCancel();
       
    58 	TInt RunError(TInt aError);
       
    59 
       
    60 private:
       
    61 /** A place for allocating some memory in the ConstructL */
       
    62 	HBufC*	iInternalDescriptor;
       
    63 /** An int to be stored in TLS to test its usage */	
       
    64 	TInt	iTLSInt;
       
    65 
       
    66 };  // End of CImplementationClassFourteen definition