meetingrequest/mrcmailremoteattachmentplugin/inc/tmrcmailremoteattachmentpluginurlparser.h
branchRCL_3
changeset 12 4ce476e64c59
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/meetingrequest/mrcmailremoteattachmentplugin/inc/tmrcmailremoteattachmentpluginurlparser.h	Wed Mar 31 21:08:33 2010 +0300
@@ -0,0 +1,69 @@
+/*
+ * Copyright (c) 2007-2009 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:  
+ *
+ */
+
+#ifndef TMRCMAILREMOTEATTACHMENTPLUGINURLPARSER_H
+#define TMRCMAILREMOTEATTACHMENTPLUGINURLPARSER_H
+
+#include <e32base.h>
+#include "cfsmailcommon.h"
+
+/**
+ * TMRCMailRemoteAttachmentPluginURLParser is responsible for
+ * parsing CMAIUL attachment URI to mail message UIDs.
+ */
+NONSHARABLE_CLASS( TMRCMailRemoteAttachmentPluginURLParser )
+    {
+public: // Construction and destruction
+    
+    /**
+     * Default C++ constructor
+     */
+    TMRCMailRemoteAttachmentPluginURLParser();
+    
+    /**
+     * C++ destructor
+     */
+    ~TMRCMailRemoteAttachmentPluginURLParser();
+    
+public: // Interface
+    
+    /**
+     * Parses CMAIL attachment URI to CMAIL message IDs.
+     * @param  aUri URI to be parsed
+     * @return KErrNone if URI was parsed succesfully.
+     *         Otherwise system wide error code.
+     */
+    TInt Parse( const TDesC& aUri );
+    
+private: // Implementation    
+    void SetMailId( TFSMailMsgId& aMailId );    
+    TInt ParseMailId( TPtrC& aMailId );
+    
+public: // Data
+    /// Own: Mailbox UID    
+    TFSMailMsgId iMailboxUid;
+    /// Owm: Folder UID
+    TFSMailMsgId iFolderUid;
+    /// Own: Message UID
+    TFSMailMsgId iMessageUid;
+    /// Own: Messagepart UID
+    TFSMailMsgId iMessagepartUid;
+    };
+
+#endif // TMRCMAILREMOTEATTACHMENTPLUGINURLPARSER_H
+
+// EOF