os/kernelhwsrv/userlibandfileserver/fileserver/inc/f32plugin.inl
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of the License "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
// f32\inc\f32plugin.inl
sl@0
    15
// 
sl@0
    16
// WARNING: This file contains some APIs which are internal and are subject
sl@0
    17
//          to change without noticed. Such APIs should therefore not be used
sl@0
    18
//          outside the Kernel and Hardware Services package.
sl@0
    19
//
sl@0
    20
sl@0
    21
inline void CFsPluginFactory::IncrementMounted() 
sl@0
    22
	{ iMountedPlugins++; }
sl@0
    23
sl@0
    24
inline void CFsPluginFactory::DecrementMounted() 
sl@0
    25
	{ iMountedPlugins--; }
sl@0
    26
sl@0
    27
inline TInt CFsPluginFactory::MountedPlugins() 
sl@0
    28
	{ return(iMountedPlugins); }
sl@0
    29
sl@0
    30
inline void CFsPluginFactory::SetSupportedDrives(TInt aSupportedDrives)  //aSupportedDrives is a bit mask
sl@0
    31
	{
sl@0
    32
	//This sets the 27th bit of iSupportedDrives to 1 to indicate that the second version of the plugins is being used.
sl@0
    33
	//If this function is not used and instead the plugin writer decides to set iSupportedDrives manually without setting the
sl@0
    34
	//27th bit, then the plugin cannot be mounted on drive Z.
sl@0
    35
	iSupportedDrives = aSupportedDrives | KPluginVersionTwo;
sl@0
    36
	}
sl@0
    37
sl@0
    38
inline TInt CFsPluginFactory::SupportedDrives()  //aSupportedDrives is a bit mask
sl@0
    39
	{ return iSupportedDrives; }
sl@0
    40
sl@0
    41
inline TInt CFsPlugin::Drive()
sl@0
    42
	{ return(iDrive); }
sl@0
    43
sl@0
    44
inline void CFsPlugin::SetDrive(TInt aDrive)
sl@0
    45
	{ iDrive=aDrive; }
sl@0
    46
sl@0
    47
inline TInt CFsPlugin::SessionDisconnect(CSessionFs* /*aSession*/)
sl@0
    48
	{ return KErrNone; }
sl@0
    49
sl@0
    50
inline TInt CFsPluginConnRequest::Function() const
sl@0
    51
	{ return iFunction;}
sl@0
    52
sl@0
    53
inline TDes8* CFsPluginConnRequest::Param1() const
sl@0
    54
	{ return iParam1; }
sl@0
    55
sl@0
    56
inline TDes8* CFsPluginConnRequest::Param2() const
sl@0
    57
	{ return iParam2; }
sl@0
    58
sl@0
    59
inline const RMessagePtr2& CFsPluginConnRequest::Message() const 
sl@0
    60
	{ return(iMessage); }
sl@0
    61
sl@0
    62
inline void CFsPluginConnRequest::WriteParam1L(const TDesC8& aDes) const
sl@0
    63
	{ iMessage.WriteL(1,aDes); }
sl@0
    64
sl@0
    65
inline void CFsPluginConnRequest::WriteParam2L(const TDesC8& aDes) const
sl@0
    66
	{ iMessage.WriteL(2,aDes); }
sl@0
    67
sl@0
    68
inline void CFsPluginConnRequest::ReadParam1L(TDes8& aDes) const
sl@0
    69
	{ iMessage.ReadL(1,aDes); }
sl@0
    70
	
sl@0
    71
inline void CFsPluginConnRequest::ReadParam2L(TDes8& aDes) const
sl@0
    72
	{ iMessage.ReadL(2,aDes); }
sl@0
    73
	
sl@0
    74
inline void CFsPluginConnRequest::Complete(TInt aError)
sl@0
    75
	{
sl@0
    76
	iLink.Deque();
sl@0
    77
	iMessage.Complete(aError);
sl@0
    78
	delete this;
sl@0
    79
	}
sl@0
    80
sl@0
    81
inline CFsPlugin* CFsPluginConn::Plugin() const
sl@0
    82
	{ return iPluginP; }
sl@0
    83
sl@0
    84
inline TThreadId CFsPluginConn::ClientId() const
sl@0
    85
	{ return iClientId; }
sl@0
    86
sl@0
    87
inline TFsPluginRequest* TPluginSessionHelper::Request()
sl@0
    88
	{ return iRequest; }