--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/testexecfw/tef/test/regressiontest/logger/inc/tefloggertestactiveobjectwrapper.h Mon Mar 08 15:03:44 2010 +0800
@@ -0,0 +1,77 @@
+/*
+* Copyright (c) 2005-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:
+* @file
+* This contains CTEFIntegrationTestActiveObjectWrapper
+*
+*/
+
+
+
+/**
+ @test
+ @internalComponent
+*/
+
+#if (!defined __TEF_LOGGER_TEST_ACTIVE_OBJECT_WRAPPER_H__)
+#define __TEF_LOGGER_TEST_ACTIVE_OBJECT_WRAPPER_H__
+
+
+
+#include "TEFLoggerTestWrapper.h"
+
+class CTEFLoggerTestActiveObjectWrapper : public CTEFLoggerTestWrapper
+ {
+public:
+ CTEFLoggerTestActiveObjectWrapper();
+
+ static CTEFLoggerTestActiveObjectWrapper* NewL();
+
+ virtual TAny* GetObject() { return iActiveObject; }
+ inline virtual void SetObjectL(TAny* aObject)
+ {
+ DestroyData();
+ iActiveObject = static_cast<RTimer*> (aObject);
+ }
+
+ inline virtual void DisownObjectL()
+ {
+ iActiveObject = NULL;
+ }
+
+ void DestroyData()
+ {
+ delete iActiveObject;
+ iActiveObject=NULL;
+ }
+
+ inline virtual TCleanupOperation CleanupOperation()
+ {
+ return CleanupOperation;
+ }
+
+private:
+ void ConstructL();
+
+ static void CleanupOperation(TAny* aAny)
+ {
+ RTimer* timer = static_cast<RTimer*>(aAny);
+ timer->Cancel();
+ timer->Close();
+ delete timer;
+ }
+ };
+
+#endif /* __TEF_LOGGER_TEST_ACTIVE_OBJECT_WRAPPER_H__ */
+