os/persistentdata/traceservices/tracefw/ulogger/src/pluginframework/outputframework.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     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 // ULogger output framework header
    15 // 
    16 //
    17 
    18 /**
    19  @file
    20  @internalTechnology
    21  @prototype
    22 */
    23 
    24 #ifndef ULOGGEROUTFRWK_H
    25 #define ULOGGEROUTFRWK_H
    26 
    27 #include <e32base.h>
    28 #include "uloggeroutputplugin.h"
    29 
    30 namespace Ulogger
    31 {
    32 /*!COutputFramework class.
    33 */
    34 NONSHARABLE_CLASS(COutputFramework) : public CBase
    35 	{
    36 public:
    37 	/**Standard Symbian OS construction method.*/
    38 	IMPORT_C static COutputFramework* NewL(MOutputPlugin& aOutputPlugin, const RPointerArray<TPluginConfiguration>& aOutputSettings);
    39 	/**Destructor.*/
    40 	IMPORT_C ~COutputFramework();
    41 	/** This function send data to active output channel. */
    42 	IMPORT_C TInt SendData(const TDesC8& aData);
    43 	/** */
    44 	IMPORT_C void ReleaseOutputResources();
    45 
    46 private:
    47 	COutputFramework(MOutputPlugin& aOutputPlugin);
    48 	void ConstructL(const RPointerArray<TPluginConfiguration>& aOutputSettings);
    49 	
    50 	//data
    51 	MOutputPlugin& iOutputPlugin; 
    52 	RPointerArray<TPluginConfiguration> iOutputSettings;
    53 	};
    54 
    55 } // namespace
    56 #endif // ULOGGER_H