epoc32/include/f32plugin.inl
branchSymbian2
changeset 2 2fe1408b6811
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/f32plugin.inl	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -0,0 +1,100 @@
     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 "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.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 +//
    1.20 +
    1.21 +
    1.22 +inline void CFsPluginFactory::IncrementMounted() 
    1.23 +			{iMountedPlugins++;}
    1.24 +
    1.25 +inline void CFsPluginFactory::DecrementMounted() 
    1.26 +			{iMountedPlugins--;}
    1.27 +
    1.28 +inline TInt CFsPluginFactory::MountedPlugins() 
    1.29 +			{return(iMountedPlugins);}
    1.30 +
    1.31 +
    1.32 +inline TInt CFsPlugin::Drive()
    1.33 +			{return(iDrive);}
    1.34 +inline void CFsPlugin::SetDrive(TInt aDrive)
    1.35 +			{iDrive=aDrive;}
    1.36 +inline TInt CFsPlugin::SessionDisconnect(CSessionFs* /*aSession*/)
    1.37 +			{return KErrNone;}
    1.38 +
    1.39 +
    1.40 +
    1.41 +inline TInt CFsPluginConnRequest::Function() const
    1.42 +	{
    1.43 +	return iFunction;
    1.44 +	}
    1.45 +
    1.46 +inline TDes8* CFsPluginConnRequest::Param1() const
    1.47 +	{
    1.48 +	return iParam1;
    1.49 +	}
    1.50 +
    1.51 +inline TDes8* CFsPluginConnRequest::Param2() const
    1.52 +	{
    1.53 +	return iParam2;
    1.54 +	}
    1.55 +
    1.56 +inline const RMessagePtr2& CFsPluginConnRequest::Message() const 
    1.57 +	{
    1.58 +	return(iMessage);
    1.59 +	}
    1.60 +
    1.61 +inline void CFsPluginConnRequest::WriteParam1L(const TDesC8& aDes) const
    1.62 +	{
    1.63 +	iMessage.WriteL(1,aDes);
    1.64 +	}
    1.65 +
    1.66 +inline void CFsPluginConnRequest::WriteParam2L(const TDesC8& aDes) const
    1.67 +	{
    1.68 +	iMessage.WriteL(2,aDes);
    1.69 +	}
    1.70 +
    1.71 +inline void CFsPluginConnRequest::ReadParam1L(TDes8& aDes) const
    1.72 +	{
    1.73 +	iMessage.ReadL(1,aDes);
    1.74 +	}
    1.75 +	
    1.76 +inline void CFsPluginConnRequest::ReadParam2L(TDes8& aDes) const
    1.77 +	{
    1.78 +	iMessage.ReadL(2,aDes);
    1.79 +	}
    1.80 +	
    1.81 +
    1.82 +
    1.83 +//inline TRequestStatus* CFsPluginConnRequest::ReqStat() const
    1.84 +//	{
    1.85 +//	return iStatus;
    1.86 +//	}
    1.87 +
    1.88 +inline void CFsPluginConnRequest::Complete(TInt aError)
    1.89 +	{
    1.90 +	iLink.Deque();
    1.91 +	iMessage.Complete(aError);
    1.92 +	delete this;
    1.93 +	}
    1.94 +
    1.95 +inline CFsPlugin* CFsPluginConn::Plugin() const
    1.96 +	{
    1.97 +	return iPluginP;
    1.98 +	}
    1.99 +
   1.100 +inline TThreadId CFsPluginConn::ClientId() const
   1.101 +	{
   1.102 +	return iClientId;
   1.103 +	}