sl@0: // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // f32\inc\f32plugin.inl sl@0: // sl@0: // WARNING: This file contains some APIs which are internal and are subject sl@0: // to change without noticed. Such APIs should therefore not be used sl@0: // outside the Kernel and Hardware Services package. sl@0: // sl@0: sl@0: inline void CFsPluginFactory::IncrementMounted() sl@0: { iMountedPlugins++; } sl@0: sl@0: inline void CFsPluginFactory::DecrementMounted() sl@0: { iMountedPlugins--; } sl@0: sl@0: inline TInt CFsPluginFactory::MountedPlugins() sl@0: { return(iMountedPlugins); } sl@0: sl@0: inline void CFsPluginFactory::SetSupportedDrives(TInt aSupportedDrives) //aSupportedDrives is a bit mask sl@0: { sl@0: //This sets the 27th bit of iSupportedDrives to 1 to indicate that the second version of the plugins is being used. sl@0: //If this function is not used and instead the plugin writer decides to set iSupportedDrives manually without setting the sl@0: //27th bit, then the plugin cannot be mounted on drive Z. sl@0: iSupportedDrives = aSupportedDrives | KPluginVersionTwo; sl@0: } sl@0: sl@0: inline TInt CFsPluginFactory::SupportedDrives() //aSupportedDrives is a bit mask sl@0: { return iSupportedDrives; } sl@0: sl@0: inline TInt CFsPlugin::Drive() sl@0: { return(iDrive); } sl@0: sl@0: inline void CFsPlugin::SetDrive(TInt aDrive) sl@0: { iDrive=aDrive; } sl@0: sl@0: inline TInt CFsPlugin::SessionDisconnect(CSessionFs* /*aSession*/) sl@0: { return KErrNone; } sl@0: sl@0: inline TInt CFsPluginConnRequest::Function() const sl@0: { return iFunction;} sl@0: sl@0: inline TDes8* CFsPluginConnRequest::Param1() const sl@0: { return iParam1; } sl@0: sl@0: inline TDes8* CFsPluginConnRequest::Param2() const sl@0: { return iParam2; } sl@0: sl@0: inline const RMessagePtr2& CFsPluginConnRequest::Message() const sl@0: { return(iMessage); } sl@0: sl@0: inline void CFsPluginConnRequest::WriteParam1L(const TDesC8& aDes) const sl@0: { iMessage.WriteL(1,aDes); } sl@0: sl@0: inline void CFsPluginConnRequest::WriteParam2L(const TDesC8& aDes) const sl@0: { iMessage.WriteL(2,aDes); } sl@0: sl@0: inline void CFsPluginConnRequest::ReadParam1L(TDes8& aDes) const sl@0: { iMessage.ReadL(1,aDes); } sl@0: sl@0: inline void CFsPluginConnRequest::ReadParam2L(TDes8& aDes) const sl@0: { iMessage.ReadL(2,aDes); } sl@0: sl@0: inline void CFsPluginConnRequest::Complete(TInt aError) sl@0: { sl@0: iLink.Deque(); sl@0: iMessage.Complete(aError); sl@0: delete this; sl@0: } sl@0: sl@0: inline CFsPlugin* CFsPluginConn::Plugin() const sl@0: { return iPluginP; } sl@0: sl@0: inline TThreadId CFsPluginConn::ClientId() const sl@0: { return iClientId; } sl@0: sl@0: inline TFsPluginRequest* TPluginSessionHelper::Request() sl@0: { return iRequest; }