resourceinterfaces/fmtransmittercontrol/src/HWRMFmTx.cpp
changeset 0 4e1aa6a622a0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/resourceinterfaces/fmtransmittercontrol/src/HWRMFmTx.cpp	Tue Feb 02 00:53:00 2010 +0200
@@ -0,0 +1,64 @@
+// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
+// All rights reserved.
+// This component and the accompanying materials are made available
+// under the terms of "Eclipse Public License v1.0"
+// which accompanies this distribution, and is available
+// at the URL "http://www.eclipse.org/legal/epl-v10.html".
+//
+// Initial Contributors:
+// Nokia Corporation - initial contribution.
+//
+// Contributors:
+//
+// Description:
+//
+
+
+
+// INCLUDE FILES
+#include <e32svr.h>
+#include <hwrm/hwrmfmtx.h>
+#include "HWRMFmTxImpl.h"
+#include "HWRMtrace.h"
+
+
+// ============================ MEMBER FUNCTIONS ===============================
+
+// -----------------------------------------------------------------------------
+// CHWRMFmTx::NewL
+// Two-phased constructor for creating a FM Tx client with callbacks.
+// -----------------------------------------------------------------------------
+//
+EXPORT_C CHWRMFmTx* CHWRMFmTx::NewL(MHWRMFmTxObserver* aCallback)
+    {
+    CHWRMFmTx* impl = NewLC(aCallback);
+    
+    CleanupStack::Pop( impl );
+
+    return impl;
+    }
+   
+// -----------------------------------------------------------------------------
+// CHWRMFmTx::NewLC
+// Two-phased constructor for creating a FM Tx client with callbacks.
+// Leaves instance to CleanupStack.
+// -----------------------------------------------------------------------------
+//
+EXPORT_C CHWRMFmTx* CHWRMFmTx::NewLC(MHWRMFmTxObserver* aCallback)
+    {
+    COMPONENT_TRACE2(_L( "HWRM FmTx - CHWRMFmTx::NewLC(0x%x)" ), aCallback );
+
+    CHWRMFmTxImpl* impl = new( ELeave ) CHWRMFmTxImpl();
+    
+    CleanupStack::PushL( impl );
+    impl->ConstructL(aCallback);
+
+    COMPONENT_TRACE2( _L( "HWRM FM Tx Client - CHWRMFmTx::NewLC - return 0x%x" ), impl );
+
+    return impl;
+    }
+
+
+// ========================== OTHER EXPORTED FUNCTIONS =========================
+
+//  End of File