1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/kernelhwsrv/userlibandfileserver/fileserver/inc/f32plugin.inl Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,88 @@
1.4 +// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of the License "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +// f32\inc\f32plugin.inl
1.18 +//
1.19 +// WARNING: This file contains some APIs which are internal and are subject
1.20 +// to change without noticed. Such APIs should therefore not be used
1.21 +// outside the Kernel and Hardware Services package.
1.22 +//
1.23 +
1.24 +inline void CFsPluginFactory::IncrementMounted()
1.25 + { iMountedPlugins++; }
1.26 +
1.27 +inline void CFsPluginFactory::DecrementMounted()
1.28 + { iMountedPlugins--; }
1.29 +
1.30 +inline TInt CFsPluginFactory::MountedPlugins()
1.31 + { return(iMountedPlugins); }
1.32 +
1.33 +inline void CFsPluginFactory::SetSupportedDrives(TInt aSupportedDrives) //aSupportedDrives is a bit mask
1.34 + {
1.35 + //This sets the 27th bit of iSupportedDrives to 1 to indicate that the second version of the plugins is being used.
1.36 + //If this function is not used and instead the plugin writer decides to set iSupportedDrives manually without setting the
1.37 + //27th bit, then the plugin cannot be mounted on drive Z.
1.38 + iSupportedDrives = aSupportedDrives | KPluginVersionTwo;
1.39 + }
1.40 +
1.41 +inline TInt CFsPluginFactory::SupportedDrives() //aSupportedDrives is a bit mask
1.42 + { return iSupportedDrives; }
1.43 +
1.44 +inline TInt CFsPlugin::Drive()
1.45 + { return(iDrive); }
1.46 +
1.47 +inline void CFsPlugin::SetDrive(TInt aDrive)
1.48 + { iDrive=aDrive; }
1.49 +
1.50 +inline TInt CFsPlugin::SessionDisconnect(CSessionFs* /*aSession*/)
1.51 + { return KErrNone; }
1.52 +
1.53 +inline TInt CFsPluginConnRequest::Function() const
1.54 + { return iFunction;}
1.55 +
1.56 +inline TDes8* CFsPluginConnRequest::Param1() const
1.57 + { return iParam1; }
1.58 +
1.59 +inline TDes8* CFsPluginConnRequest::Param2() const
1.60 + { return iParam2; }
1.61 +
1.62 +inline const RMessagePtr2& CFsPluginConnRequest::Message() const
1.63 + { return(iMessage); }
1.64 +
1.65 +inline void CFsPluginConnRequest::WriteParam1L(const TDesC8& aDes) const
1.66 + { iMessage.WriteL(1,aDes); }
1.67 +
1.68 +inline void CFsPluginConnRequest::WriteParam2L(const TDesC8& aDes) const
1.69 + { iMessage.WriteL(2,aDes); }
1.70 +
1.71 +inline void CFsPluginConnRequest::ReadParam1L(TDes8& aDes) const
1.72 + { iMessage.ReadL(1,aDes); }
1.73 +
1.74 +inline void CFsPluginConnRequest::ReadParam2L(TDes8& aDes) const
1.75 + { iMessage.ReadL(2,aDes); }
1.76 +
1.77 +inline void CFsPluginConnRequest::Complete(TInt aError)
1.78 + {
1.79 + iLink.Deque();
1.80 + iMessage.Complete(aError);
1.81 + delete this;
1.82 + }
1.83 +
1.84 +inline CFsPlugin* CFsPluginConn::Plugin() const
1.85 + { return iPluginP; }
1.86 +
1.87 +inline TThreadId CFsPluginConn::ClientId() const
1.88 + { return iClientId; }
1.89 +
1.90 +inline TFsPluginRequest* TPluginSessionHelper::Request()
1.91 + { return iRequest; }