0
|
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".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
// f32\inc\f32plugin.inl
|
|
15 |
//
|
|
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.
|
|
19 |
//
|
|
20 |
|
|
21 |
inline void CFsPluginFactory::IncrementMounted()
|
|
22 |
{ iMountedPlugins++; }
|
|
23 |
|
|
24 |
inline void CFsPluginFactory::DecrementMounted()
|
|
25 |
{ iMountedPlugins--; }
|
|
26 |
|
|
27 |
inline TInt CFsPluginFactory::MountedPlugins()
|
|
28 |
{ return(iMountedPlugins); }
|
|
29 |
|
|
30 |
inline void CFsPluginFactory::SetSupportedDrives(TInt aSupportedDrives) //aSupportedDrives is a bit mask
|
|
31 |
{
|
|
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;
|
|
36 |
}
|
|
37 |
|
|
38 |
inline TInt CFsPluginFactory::SupportedDrives() //aSupportedDrives is a bit mask
|
|
39 |
{ return iSupportedDrives; }
|
|
40 |
|
|
41 |
inline TInt CFsPlugin::Drive()
|
|
42 |
{ return(iDrive); }
|
|
43 |
|
|
44 |
inline void CFsPlugin::SetDrive(TInt aDrive)
|
|
45 |
{ iDrive=aDrive; }
|
|
46 |
|
|
47 |
inline TInt CFsPlugin::SessionDisconnect(CSessionFs* /*aSession*/)
|
|
48 |
{ return KErrNone; }
|
|
49 |
|
|
50 |
inline TInt CFsPluginConnRequest::Function() const
|
|
51 |
{ return iFunction;}
|
|
52 |
|
|
53 |
inline TDes8* CFsPluginConnRequest::Param1() const
|
|
54 |
{ return iParam1; }
|
|
55 |
|
|
56 |
inline TDes8* CFsPluginConnRequest::Param2() const
|
|
57 |
{ return iParam2; }
|
|
58 |
|
|
59 |
inline const RMessagePtr2& CFsPluginConnRequest::Message() const
|
|
60 |
{ return(iMessage); }
|
|
61 |
|
|
62 |
inline void CFsPluginConnRequest::WriteParam1L(const TDesC8& aDes) const
|
|
63 |
{ iMessage.WriteL(1,aDes); }
|
|
64 |
|
|
65 |
inline void CFsPluginConnRequest::WriteParam2L(const TDesC8& aDes) const
|
|
66 |
{ iMessage.WriteL(2,aDes); }
|
|
67 |
|
|
68 |
inline void CFsPluginConnRequest::ReadParam1L(TDes8& aDes) const
|
|
69 |
{ iMessage.ReadL(1,aDes); }
|
|
70 |
|
|
71 |
inline void CFsPluginConnRequest::ReadParam2L(TDes8& aDes) const
|
|
72 |
{ iMessage.ReadL(2,aDes); }
|
|
73 |
|
|
74 |
inline void CFsPluginConnRequest::Complete(TInt aError)
|
|
75 |
{
|
|
76 |
iLink.Deque();
|
|
77 |
iMessage.Complete(aError);
|
|
78 |
delete this;
|
|
79 |
}
|
|
80 |
|
|
81 |
inline CFsPlugin* CFsPluginConn::Plugin() const
|
|
82 |
{ return iPluginP; }
|
|
83 |
|
|
84 |
inline TThreadId CFsPluginConn::ClientId() const
|
|
85 |
{ return iClientId; }
|
|
86 |
|
|
87 |
inline TFsPluginRequest* TPluginSessionHelper::Request()
|
|
88 |
{ return iRequest; }
|