diff -r 88ee4cf65e19 -r 1aa8c82cb4cb remotestoragefw/gsplugin/inc/rsfwgsremotedrivesend.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/remotestoragefw/gsplugin/inc/rsfwgsremotedrivesend.h Wed Sep 01 12:15:08 2010 +0100 @@ -0,0 +1,69 @@ +/* +* 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 + +// 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* iSendMtmsToDim; + + + }; + +#endif // CRSFWGSREMOTEDRIVESEND_H + + +// End of File