phoneuis/ConnectUtil/inc/CCoUtlInterface.h
changeset 0 5f000ab63145
child 3 8871b09be73b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/phoneuis/ConnectUtil/inc/CCoUtlInterface.h	Mon Jan 18 20:18:27 2010 +0200
@@ -0,0 +1,93 @@
+/*
+* 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:  Provides abstract ECOM interface for connection utility.
+*
+*/
+
+
+
+#ifndef CCOUTLINTERFACE_H
+#define CCOUTLINTERFACE_H
+
+//  INCLUDES
+#include    <e32base.h>
+
+// CLASS DECLARATION
+
+/**
+*  Abstract ECOM interface for connection termination.
+*
+*  @since 2.6
+*/
+class CCoUtlInterface 
+    : public CBase
+    {
+    public:  // Constructors and destructor
+        
+        /**
+        * Two-phased constructor.
+        */
+        inline static CCoUtlInterface* NewL();
+        
+        /**
+        * Destructor.
+        */
+        virtual ~CCoUtlInterface();
+
+    public: // New functions
+        
+        /**
+        * Enumerates states.
+        *
+        * EIdle - idle, 
+        * EConfirm - asking for user decision,
+        * ETerminate - terminating
+        */
+        enum TState
+            {
+            EIdle,
+            EConfirm,
+            ETerminate
+            };
+
+        /**
+        * Returns current state.
+        * @return current state.
+        */
+        virtual TState CurrentState() = 0;
+
+        /**
+        * Terminates connections.
+        * @param aStatus request status to be completed once
+        *                finished.
+        */
+        virtual void Terminate( TRequestStatus& aStatus ) = 0;
+    
+        /**
+        * Interrupts termination. 
+        */
+        virtual void Cancel() = 0;
+
+    private:    // Data
+        
+        // Uid required by ECOM.
+        TUid iDtor_ID_Key;
+
+    };
+
+#include    <CCoUtlInterface.inl>
+
+#endif      // CCOUTLINTERFACE_H
+            
+// End of File