--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/cbsref/telephonyrefplugins/atltsy/integrationtest/src/testltsyasyncoperation.cpp Tue Jul 06 15:36:38 2010 +0300
@@ -0,0 +1,60 @@
+// TestTelephonyAsyncOperation.cpp
+//
+// Copyright (c) 2004-2007 Symbian Ltd. All rights reserved.
+//
+// The active object derived class for asynchronous requests
+//
+
+// Epoc includes
+#include <testproperty.h>
+#include <e32property.h>
+#include <sacls.h>
+
+// User includes
+#include "TestLtsyAsyncOperation.h"
+
+CTelephonyAsyncOperation::CTelephonyAsyncOperation(CTestStep& aTestStep)
+/*
+Constructor
+
+Adds the active object to active scheduler.
+
+@param aInt Operation id
+*/
+: CActive(EPriorityStandard)
+, iTestStep(aTestStep)
+ {
+ CActiveScheduler::Add(this);
+ }
+
+CTelephonyAsyncOperation::~CTelephonyAsyncOperation()
+/*
+Destructor
+*/
+ {
+ }
+
+void CTelephonyAsyncOperation::DoCancel()
+/*
+For canceling the request
+*/
+ {
+ }
+
+void CTelephonyAsyncOperation::RunL()
+/*
+Stop the active scheduler
+*/
+ {
+ CActiveScheduler::Stop();
+ }
+
+TInt CTelephonyAsyncOperation::SetOperation()
+/*
+Set the active object request and start the active scheduler
+*/
+ {
+ SetActive();
+ CActiveScheduler::Start();
+ return iStatus.Int();
+ }