Update contrib.
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // f32\inc\f32plugin.inl
16 // WARNING: This file contains some APIs which are internal and are subject
17 // to change without noticed. Such APIs should therefore not be used
18 // outside the Kernel and Hardware Services package.
21 inline void CFsPluginFactory::IncrementMounted()
22 { iMountedPlugins++; }
24 inline void CFsPluginFactory::DecrementMounted()
25 { iMountedPlugins--; }
27 inline TInt CFsPluginFactory::MountedPlugins()
28 { return(iMountedPlugins); }
30 inline void CFsPluginFactory::SetSupportedDrives(TInt aSupportedDrives) //aSupportedDrives is a bit mask
32 //This sets the 27th bit of iSupportedDrives to 1 to indicate that the second version of the plugins is being used.
33 //If this function is not used and instead the plugin writer decides to set iSupportedDrives manually without setting the
34 //27th bit, then the plugin cannot be mounted on drive Z.
35 iSupportedDrives = aSupportedDrives | KPluginVersionTwo;
38 inline TInt CFsPluginFactory::SupportedDrives() //aSupportedDrives is a bit mask
39 { return iSupportedDrives; }
41 inline TInt CFsPlugin::Drive()
44 inline void CFsPlugin::SetDrive(TInt aDrive)
47 inline TInt CFsPlugin::SessionDisconnect(CSessionFs* /*aSession*/)
50 inline TInt CFsPluginConnRequest::Function() const
53 inline TDes8* CFsPluginConnRequest::Param1() const
56 inline TDes8* CFsPluginConnRequest::Param2() const
59 inline const RMessagePtr2& CFsPluginConnRequest::Message() const
62 inline void CFsPluginConnRequest::WriteParam1L(const TDesC8& aDes) const
63 { iMessage.WriteL(1,aDes); }
65 inline void CFsPluginConnRequest::WriteParam2L(const TDesC8& aDes) const
66 { iMessage.WriteL(2,aDes); }
68 inline void CFsPluginConnRequest::ReadParam1L(TDes8& aDes) const
69 { iMessage.ReadL(1,aDes); }
71 inline void CFsPluginConnRequest::ReadParam2L(TDes8& aDes) const
72 { iMessage.ReadL(2,aDes); }
74 inline void CFsPluginConnRequest::Complete(TInt aError)
77 iMessage.Complete(aError);
81 inline CFsPlugin* CFsPluginConn::Plugin() const
84 inline TThreadId CFsPluginConn::ClientId() const
87 inline TFsPluginRequest* TPluginSessionHelper::Request()