os/persistentdata/traceservices/tracefw/ulogger/src/outfrwkchans/serial/uloggerserialplugin.h
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/persistentdata/traceservices/tracefw/ulogger/src/outfrwkchans/serial/uloggerserialplugin.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,57 @@
1.4 +// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +// ULogger serial plugin header file
1.18 +//
1.19 +//
1.20 +
1.21 +/**
1.22 + @file
1.23 + @internalTechnology
1.24 + @prototype
1.25 +*/
1.26 +
1.27 +#ifndef ULOGGERSERIALPLUGIN_H
1.28 +#define ULOGGERSERIALPLUGIN_H
1.29 +
1.30 +#include "uloggeroutputplugin.h"
1.31 +#include <d32comm.h> // RBusDevComm
1.32 +#include <c32comm.h>
1.33 +
1.34 +namespace Ulogger
1.35 +{
1.36 +class CSerialWriter : public CPlugin, public MOutputPlugin
1.37 + {
1.38 +public:
1.39 + static CSerialWriter* NewL();
1.40 + ~CSerialWriter();
1.41 +public://from MOutputPlugin
1.42 + TInt ConfigureOutputPlugin(const RPointerArray<TPluginConfiguration>& aSettings);
1.43 + TInt Write(const TDesC8& aData);
1.44 + void CloseOutputPlugin();
1.45 +public: //from CPlugin
1.46 + TAny* GetInterfaceL(TPluginInterface aInterfaceId);
1.47 +private:
1.48 + CSerialWriter();
1.49 + void ConstructL();
1.50 + TInt Connect();
1.51 + TInt Config();
1.52 + TInt Disconnect();
1.53 +private:
1.54 + RBusDevComm iComm;
1.55 + TBool iReady;
1.56 + TInt iPortNum;
1.57 + };
1.58 +} // namespace
1.59 +
1.60 +#endif // ULOGGERSERIALPLUGIN_H