--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/xdmprotocols/XcapProtocol/XcapHttpTransport/inc/XcapHttpRequestTimer.h Wed Sep 01 12:23:14 2010 +0100
@@ -0,0 +1,92 @@
+/*
+* Copyright (c) 2003 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: CXcapHttpRequestTimer
+*
+*/
+
+
+
+
+#ifndef __XCAPHTTPREQUESTTIMER__
+#define __XCAPHTTPREQUESTTIMER__
+
+// INCLUDES
+#include <e32base.h>
+#include "XcapHttpRequestTimerCallback.h"
+
+class CXcapHttpTransport;
+
+NONSHARABLE_CLASS( CXcapHttpRequestTimer ) : public CActive
+ {
+ public: // Constructors and destructor
+
+ /**
+ * Two-phased constructor.
+ * @param aCallback A pointer to MMmsViewerTimerCallback class
+ */
+ static CXcapHttpRequestTimer* NewL( CXcapHttpTransport& aTransportMain,
+ MXcapHttpRequestTimerCallback* aCallback );
+
+ /**
+ * Destructor.
+ */
+ virtual ~CXcapHttpRequestTimer();
+
+ public: // New functions
+
+ /**
+ * Request to activate timer
+ * @param aDelay Time in microsecoXcap after which
+ * the callback function is called.
+ */
+ void ActivateTimer( TTimeIntervalMicroSeconds32 aDelay );
+
+ private:
+
+ /**
+ * By default Symbian OS constructor is private.
+ */
+ void ConstructL();
+
+ /**
+ * C++ constructor.
+ * @param aCallback A pointer to MImpsTransportTimerCallback class
+ * @param aRequester Who constructed and/or activated the timer
+ * @param aLogging Trace or not
+ */
+ CXcapHttpRequestTimer( CXcapHttpTransport& aTransportMain,
+ MXcapHttpRequestTimerCallback* aCallback );
+
+ /**
+ * From CActive.
+ * @return void
+ */
+ void RunL();
+
+ /**
+ * From CActive.
+ * @return void
+ */
+ void DoCancel();
+
+ private: // Data
+
+ RTimer iTimer;
+ CXcapHttpTransport& iTransportMain;
+ MXcapHttpRequestTimerCallback* iCallback;
+ };
+
+#endif //__XcapHTTPREQUESTTIMER__
+
+// End of File