emailservices/emailframework/inc/CFSMailPlugin.inl
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 18 Aug 2010 09:37:47 +0300
changeset 59 16ed8d08d0b1
parent 30 759dc5235cdb
child 62 a8c646b56683
permissions -rw-r--r--
Revision: 201031 Kit: 201033

/*
* Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: Inline methods for class CFSMailPlugin. 
*
*/


#include <ecom.h>

// -----------------------------------------------------------------------------
// constructor
// -----------------------------------------------------------------------------
//
inline CFSMailPlugin::CFSMailPlugin()
    {

    }

// -----------------------------------------------------------------------------
// destructor
// -----------------------------------------------------------------------------
//
inline CFSMailPlugin::~CFSMailPlugin()
    {
    REComSession::DestroyedImplementation(iDtor_ID_Key);
    }

// -----------------------------------------------------------------------------
// CFSMailPlugin::Close
// -----------------------------------------------------------------------------
//
inline void CFSMailPlugin::Close()
    {
    REComSession::FinalClose();
    }
    
// -----------------------------------------------------------------------------
// CFSMailPlugin::ListImplementationsL
// -----------------------------------------------------------------------------
inline void CFSMailPlugin::ListImplementationsL(
    RPointerArray<CImplementationInformation>& aInfo)
    {
    REComSession::ListImplementationsL(KFSMailPluginInterface, aInfo);
    }

// -----------------------------------------------------------------------------
// CFSMailPlugin::NewL
// -----------------------------------------------------------------------------
//
inline CFSMailPlugin* CFSMailPlugin::NewL(TUid aUid)
    {
    return static_cast<CFSMailPlugin*>( 
        REComSession::CreateImplementationL(
            aUid, _FOFF( CFSMailPlugin, iDtor_ID_Key ) ) );
    }

// <cmail> empty implementations added to avoid CS warnings
// -----------------------------------------------------------------------------
// CFSMailPlugin::GetConnectionId
// -----------------------------------------------------------------------------
inline TInt CFSMailPlugin::GetConnectionId(
    TFSMailMsgId /*aMailBoxId*/,
    TUint32& /*aConnectionId*/ )
    {
    return KErrNotSupported;
    }
    
    // <cmail> empty implementations added to avoid CS warnings
// -----------------------------------------------------------------------------
// CFSMailPlugin::IsConnectionAllowedWhenRoaming
// -----------------------------------------------------------------------------
inline TInt CFSMailPlugin::IsConnectionAllowedWhenRoaming(
	TFSMailMsgId /*aMailBoxId*/,
	TBool& /*aConnectionAllowed*/ )
    {
    return KErrNotSupported;
    }
// </cmail>

// <qmail>
// -----------------------------------------------------------------------------
// CFSMailPlugin::CreateMessageToSendL
// -----------------------------------------------------------------------------
inline void CFSMailPlugin::CreateMessageToSendL(
    const TFSMailMsgId& /*aMailBoxId*/,
    MFSMailRequestObserver& /*aOperationObserver*/,
    const TInt /*aRequestId*/ )
    {
    User::Leave( KErrFSMailPluginNotSupported );
    }

// -----------------------------------------------------------------------------
// CFSMailPlugin::CreateForwardMessageL
// -----------------------------------------------------------------------------
inline void CFSMailPlugin::CreateForwardMessageL( const TFSMailMsgId& /*aMailBoxId*/,
    const TFSMailMsgId& /*aOriginalMessageId*/,
    MFSMailRequestObserver& /*aOperationObserver*/,
    const TInt /*aRequestId*/,
    const TDesC& /*aHeaderDescriptor*/ )
    {
    User::Leave( KErrFSMailPluginNotSupported );
    }

// -----------------------------------------------------------------------------
// CFSMailPlugin::CreateReplyMessageL
// -----------------------------------------------------------------------------
inline void CFSMailPlugin::CreateReplyMessageL( const TFSMailMsgId& /*aMailBoxId*/,
    const TFSMailMsgId& /*aOriginalMessageId*/,
    const TBool /*aReplyToAll*/,
    MFSMailRequestObserver& /*aOperationObserver*/,
    const TInt /*aRequestId*/,
    const TDesC& /*aHeaderDescriptor*/ )
    {
    User::Leave( KErrFSMailPluginNotSupported );
    }

// -----------------------------------------------------------------------------
// CFSMailPlugin::SendMessageL
// -----------------------------------------------------------------------------
inline void CFSMailPlugin::SendMessageL(
        CFSMailMessage& /*aMessage*/,
        MFSMailRequestObserver& /*aOperationObserver*/,
        const TInt /*aRequestId*/ )
    {
    User::Leave( KErrFSMailPluginNotSupported );
    }

// -----------------------------------------------------------------------------
// CFSMailPlugin::NewChildPartFromFileL
// -----------------------------------------------------------------------------
inline void CFSMailPlugin::NewChildPartFromFileL( const TFSMailMsgId& /*aMailBoxId*/,
                                     const TFSMailMsgId& /*aParentFolderId*/,
                                     const TFSMailMsgId& /*aMessageId*/,
                                     const TFSMailMsgId& /*aParentPartId*/,
                                     const TDesC& /*aContentType*/,
                                     const TDesC& /*aFilePath*/,
                                     MFSMailRequestObserver& /*aOperationObserver*/,
                                     const TInt /*aRequestId*/ )
    {
    User::Leave( KErrFSMailPluginNotSupported );
    }

// -----------------------------------------------------------------------------
// CFSMailPlugin::RemoveChildPartL
// -----------------------------------------------------------------------------
inline void CFSMailPlugin::RemoveChildPartL( const TFSMailMsgId& /*aMailBoxId*/,
                               const TFSMailMsgId& /*aParentFolderId*/,
                               const TFSMailMsgId& /*aMessageId*/,
                               const TFSMailMsgId& /*aParentPartId*/,
                               const TFSMailMsgId& /*aPartId*/,
                               MFSMailRequestObserver& /*aOperationObserver*/,
                               const TInt /*aRequestId*/)
    {
    User::Leave( KErrFSMailPluginNotSupported );
    }

// -----------------------------------------------------------------------------
// CFSMailPlugin::DeleteMessagesByUidL
// -----------------------------------------------------------------------------
inline void CFSMailPlugin::DeleteMessagesByUidL( const TFSMailMsgId& /*aMailBoxId*/,
                                   const TFSMailMsgId& /*aFolderId*/,
                                   const RArray<TFSMailMsgId>& /*aMessages*/,
                                   MFSMailRequestObserver& /*aOperationObserver*/,
                                   const TInt /*aRequestId*/ )
    {
    User::Leave( KErrFSMailPluginNotSupported );
    }
// </qmail>