natfw/natfwicecandidatehandler/inc/miceconnectionobserver.h
changeset 0 1bce908db942
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/natfw/natfwicecandidatehandler/inc/miceconnectionobserver.h	Tue Feb 02 01:04:58 2010 +0200
@@ -0,0 +1,65 @@
+/*
+* Copyright (c) 2007 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:    
+*
+*/
+
+
+
+
+#ifndef M_MICECONNECTIONOBSERVER_H
+#define M_MICECONNECTIONOBSERVER_H
+
+#include <e32base.h>
+
+class CIceConnection;
+
+/**
+ *  ICE connection observer interface.
+ *
+ *  @lib icecandidatehandler.dll
+ *  @since S60 v3.2
+ */
+class MIceConnectionObserver
+    {
+
+public:
+
+    /**  Connection notify type */
+    enum TNotifyType
+        {
+        ENotifyUnknown              = 0,
+        ENotifyConnectionRemoved    = 1,
+        ENotifyConnectionError      = 2,
+        ENotifyRecvActivated        = 3,
+        ENotifyRecvDeactivated      = 4,
+        ENotifySendActivated        = 5,
+        ENotifySendDeactivated      = 6,
+        ENotifyFirstMediaPacketSent = 7
+        };
+
+    /**
+     * Notifies about connection state changes.
+     *
+     * @since   S60 v3.2
+     * @param   aConnection         Notifying connection
+     * @param   aType               Type of notify
+     * @param   aError              Error code
+     */
+    virtual void ConnectionNotify( CIceConnection& aConnection,
+        TNotifyType aType, TInt aError ) = 0;
+    };
+
+
+#endif // M_MICECONNECTIONOBSERVER_H
\ No newline at end of file