mmserv/tms/tmsserver/inc/tareventhandler.h
changeset 0 71ca22bcf22a
child 3 4f62049db6ac
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mmserv/tms/tmsserver/inc/tareventhandler.h	Tue Feb 02 01:08:46 2010 +0200
@@ -0,0 +1,77 @@
+/*
+ * Copyright (c) 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: Telephony Multimedia Service
+ *
+ */
+
+#ifndef TAREVENTHANDLER_H
+#define TAREVENTHANDLER_H
+
+//  INCLUDES
+#include <e32base.h>
+#include <e32property.h>
+#include "tmsserver.h"
+
+namespace TMS {
+
+// CLASS DECLARATION
+class CTarEventHandler : public CActive
+    {
+public:
+    /**
+     * Two-phased constructor.
+     */
+    static CTarEventHandler* NewL(TMSServer* aServer);
+
+    /**
+     * Destructor.
+     */
+    virtual ~CTarEventHandler();
+
+private:
+    /**
+     * From CActive
+     * Cancel outstanding request
+     */
+    void DoCancel();
+
+    /**
+     * From CActive
+     * Implementation of CActive::RunL.
+     * Called when server request has completed.
+     **/
+    void RunL();
+
+private:
+
+    /**
+     * C++ default constructor.
+     */
+    CTarEventHandler(TMSServer* aServer);
+
+    /**
+     * By default Symbian 2nd phase constructor is private.
+     */
+    void ConstructL();
+
+private:
+    TMSServer* iTMSSer;
+    RProperty iProperty;
+    };
+
+} //namespace TMS
+
+#endif  // TAREVENTHANDLER_H
+
+// End of File