|
1 /* |
|
2 * Copyright (c) 2007-2009 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef TMRCMAILREMOTEATTACHMENTPLUGINURLPARSER_H |
|
19 #define TMRCMAILREMOTEATTACHMENTPLUGINURLPARSER_H |
|
20 |
|
21 #include <e32base.h> |
|
22 #include "cfsmailcommon.h" |
|
23 |
|
24 /** |
|
25 * TMRCMailRemoteAttachmentPluginURLParser is responsible for |
|
26 * parsing CMAIUL attachment URI to mail message UIDs. |
|
27 */ |
|
28 NONSHARABLE_CLASS( TMRCMailRemoteAttachmentPluginURLParser ) |
|
29 { |
|
30 public: // Construction and destruction |
|
31 |
|
32 /** |
|
33 * Default C++ constructor |
|
34 */ |
|
35 TMRCMailRemoteAttachmentPluginURLParser(); |
|
36 |
|
37 /** |
|
38 * C++ destructor |
|
39 */ |
|
40 ~TMRCMailRemoteAttachmentPluginURLParser(); |
|
41 |
|
42 public: // Interface |
|
43 |
|
44 /** |
|
45 * Parses CMAIL attachment URI to CMAIL message IDs. |
|
46 * @param aUri URI to be parsed |
|
47 * @return KErrNone if URI was parsed succesfully. |
|
48 * Otherwise system wide error code. |
|
49 */ |
|
50 TInt Parse( const TDesC& aUri ); |
|
51 |
|
52 private: // Implementation |
|
53 void SetMailId( TFSMailMsgId& aMailId ); |
|
54 TInt ParseMailId( TPtrC& aMailId ); |
|
55 |
|
56 public: // Data |
|
57 /// Own: Mailbox UID |
|
58 TFSMailMsgId iMailboxUid; |
|
59 /// Owm: Folder UID |
|
60 TFSMailMsgId iFolderUid; |
|
61 /// Own: Message UID |
|
62 TFSMailMsgId iMessageUid; |
|
63 /// Own: Messagepart UID |
|
64 TFSMailMsgId iMessagepartUid; |
|
65 }; |
|
66 |
|
67 #endif // TMRCMAILREMOTEATTACHMENTPLUGINURLPARSER_H |
|
68 |
|
69 // EOF |