remotestoragefw/gsplugin/inc/rsfwgsremotedrivesend.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:15:08 +0100
branchRCL_3
changeset 16 1aa8c82cb4cb
parent 0 3ad9d5175a89
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201021 Kit: 201035

/*
* Copyright (c) 2002 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:  Rsfw GS plugin, for sending drive
 *
*/


#ifndef CRSFWGSREMOTEDRIVESEND_H
#define CRSFWGSREMOTEDRIVESEND_H

// INCLUDES
#include <e32base.h>

// FORWARD DECLARATIONS;
class CRsfwMountEntry;
class CEikMenuPane;
class CSendUi;
class TParse;
class RFile;

// path and filename for vCalendar attachment
_LIT( KRemoteDriveAttachmentFilename, "c:\\system\\data\\rsfw_cache\\rdrive.cfg" );

NONSHARABLE_CLASS( CRsfwGsRemoteDriveSend ) : public CBase
    {
public: // Factory method and destructor 
    static CRsfwGsRemoteDriveSend* NewL(TInt aMenuCommandId);
    virtual ~CRsfwGsRemoteDriveSend();

public: // API 
    TBool CanSend();
    void DisplaySendMenuItemL(CEikMenuPane& aMenuPane, TInt aIndex);
    void DisplaySendCascadeMenuL();
    void SendL(const CRsfwMountEntry& aEntry);
    
private: // utility functions
    void DoSendAsAttachmentFileL(TInt aCommand, TParse& aFilename);

    void DoSendAsAttachmentHandleL(const RFile& aHandle);
    
    HBufC8* ConvertToUtf7LC(const TDesC16& aText);

private: // constrution 
    CRsfwGsRemoteDriveSend();
    void ConstructL(TInt aMenuCommandId);
private: // data
    CSendUi* iSendUi;
    TInt iSendAsCmdId;
    TUid iSelectedMtmUid;
    CArrayFixFlat<TUid>* iSendMtmsToDim;
 

    }; 

#endif // CRSFWGSREMOTEDRIVESEND_H


// End of File