|
1 /* |
|
2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Rsfw GS plugin, for sending drive |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CRSFWGSREMOTEDRIVESEND_H |
|
20 #define CRSFWGSREMOTEDRIVESEND_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 |
|
25 // FORWARD DECLARATIONS; |
|
26 class CRsfwMountEntry; |
|
27 class CEikMenuPane; |
|
28 class CSendUi; |
|
29 class TParse; |
|
30 class RFile; |
|
31 |
|
32 // path and filename for vCalendar attachment |
|
33 _LIT( KRemoteDriveAttachmentFilename, "c:\\system\\data\\rsfw_cache\\rdrive.cfg" ); |
|
34 |
|
35 NONSHARABLE_CLASS( CRsfwGsRemoteDriveSend ) : public CBase |
|
36 { |
|
37 public: // Factory method and destructor |
|
38 static CRsfwGsRemoteDriveSend* NewL(TInt aMenuCommandId); |
|
39 virtual ~CRsfwGsRemoteDriveSend(); |
|
40 |
|
41 public: // API |
|
42 TBool CanSend(); |
|
43 void DisplaySendMenuItemL(CEikMenuPane& aMenuPane, TInt aIndex); |
|
44 void DisplaySendCascadeMenuL(); |
|
45 void SendL(const CRsfwMountEntry& aEntry); |
|
46 |
|
47 private: // utility functions |
|
48 void DoSendAsAttachmentFileL(TInt aCommand, TParse& aFilename); |
|
49 |
|
50 void DoSendAsAttachmentHandleL(const RFile& aHandle); |
|
51 |
|
52 HBufC8* ConvertToUtf7LC(const TDesC16& aText); |
|
53 |
|
54 private: // constrution |
|
55 CRsfwGsRemoteDriveSend(); |
|
56 void ConstructL(TInt aMenuCommandId); |
|
57 private: // data |
|
58 CSendUi* iSendUi; |
|
59 TInt iSendAsCmdId; |
|
60 TUid iSelectedMtmUid; |
|
61 CArrayFixFlat<TUid>* iSendMtmsToDim; |
|
62 |
|
63 |
|
64 }; |
|
65 |
|
66 #endif // CRSFWGSREMOTEDRIVESEND_H |
|
67 |
|
68 |
|
69 // End of File |