webservices/wsframework/inc/sentransportbase.h
changeset 0 62f9d29f7211
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/webservices/wsframework/inc/sentransportbase.h	Thu Jan 07 16:19:19 2010 +0200
@@ -0,0 +1,62 @@
+/*
+* Copyright (c) 2005 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:        Abstract class providing CBase 
+*                functionality in top of MSenTransport
+*
+*/
+
+
+
+
+
+
+
+
+
+#ifndef SEN_TRANSPORT_BASE_H
+#define SEN_TRANSPORT_BASE_H
+
+// INCLUDES
+#include <e32std.h>
+#include <e32base.h> // for CActive
+#include "msentransport.h"
+
+/**
+* This base class makes it possible to create a "Transport Factory",
+* which may produce instancies of different CSenTransportBase subclasses.
+* It might be useful to be able to create both ECOM and non-ECOM versions
+* of transports, if such factory pattern is further utilized.
+*/
+
+// CLASS DECLARATION
+
+class CSenTransportBase : public CBase, public MSenTransport
+    {
+    public:
+        inline virtual ~CSenTransportBase() { };
+        CSenTransportBase(TBool aSessionOwned): iSessionOwned(aSessionOwned) 
+            {
+            }
+        TBool SessionOwned() 
+            {
+            return iSessionOwned;
+            }
+
+    private:
+        TBool iSessionOwned;
+    };
+
+#endif // SEN_TRANSPORT_BASE_H
+
+// End of File