mmappcomponents/mmmtpdataprovider/tsrc/mtpdataprovidertestmodule/inc/ctestconnectionchannel.h
changeset 0 a2952bb97e68
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mmappcomponents/mmmtpdataprovider/tsrc/mtpdataprovidertestmodule/inc/ctestconnectionchannel.h	Thu Dec 17 08:55:47 2009 +0200
@@ -0,0 +1,90 @@
+/*
+* 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:  Dummy test connection channel for test module
+*
+*/
+
+
+#ifndef CTESTCONNECTIONCHANNEL_H
+#define CTESTCONNECTIONCHANNEL_H
+
+#include <mtp/mmtpconnection.h>
+
+class MMTPSession;
+
+class CTestConnectionChannel : public MMTPConnection
+    {
+    // from MMTPConnection
+    /**
+    Provides the unique MTP data provider framework assigned identifier of the
+    connection.
+    @return The MTP data provider framework assigned connection identifier.
+    */
+    TUint ConnectionId() const;
+
+    /**
+    Provides a count of the number of sessions currently active on the 
+    connection.
+    @return The number of sessions currently active on the connection.
+    */
+    TUint SessionCount() const;
+
+    /**
+    Indicates if a session with the specified MTP connection assigned
+    identifier is currently active on the connection.
+    @param aMTPId The MTP connection assigned identifier of the session.
+    @return ETrue, if a session with the specified session identifier is 
+    currently active on the connection, otherwise EFalse.
+    */
+    TBool SessionWithMTPIdExists(TUint32 aMTPId) const;
+    
+    /**
+    Provides a reference to the session with the specified MTP connection 
+    assigned identifier. 
+    @param aMTPId The MTP connection assigned identifier of the 
+    requested session.
+    @return The reference of the session with the specified MTP connection 
+    assigned identifier.
+    @leave KErrNotFound, if the specified session identifier is not currently
+    active on the connection.
+    @see SessionWithMTPIdExists
+    */
+    MMTPSession& SessionWithMTPIdL(TUint32 aMTPId) const;
+
+    /**
+    Indicates if a session with the specified MTP connection assigned
+    identifier is currently active on the connection.
+    @param aUniqueId The MTP connection assigned identifier of the session.
+    @return ETrue, if a session with the specified session identifier is 
+    currently active on the connection, otherwise EFalse.
+    */
+    TBool SessionWithUniqueIdExists(TUint32 aUniqueId) const;
+    
+    /**
+    Provides a reference to the session with the specified MTP connection 
+    assigned identifier. 
+    @param aUniqueId The MTP connection assigned identifier of the 
+    requested session.
+    @return The reference of the session with the specified MTP connection 
+    assigned identifier.
+    @leave KErrNotFound, if the specified session identifier is not currently
+    active on the connection.
+    @see SessionWithMTPIdExists
+    */
+    MMTPSession& SessionWithUniqueIdL(TUint32 aUniqueId) const;
+   
+    
+    };
+
+#endif // CTESTCONNECTIONCHANNEL_H