photosgallery/viewframework/commandhandlers/commoncommandhandlers/inc/glxcommandhandlerdetails.h
changeset 0 4e91876724a2
child 18 bcb43dc84c44
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/photosgallery/viewframework/commandhandlers/commoncommandhandlers/inc/glxcommandhandlerdetails.h	Thu Dec 17 08:45:44 2009 +0200
@@ -0,0 +1,97 @@
+/*
+* Copyright (c) 2008-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:    Details commmand handler
+*
+*/
+
+
+
+
+#ifndef __C_GLXCOMMANDHANDLERDETAILS_H__
+#define __C_GLXCOMMANDHANDLERDETAILS_H__
+
+#include <e32base.h>
+#include <glxmedialistcommandhandler.h>
+
+class MGlxMediaListProvider;
+
+class CGlxUiUtility;
+
+/**
+ * Command handler for viewing Details
+ */
+NONSHARABLE_CLASS (CGlxCommandHandlerDetails)
+    : public CGlxMediaListCommandHandler
+	{
+	public:
+		/** 
+		 * Create command handler for launcing Metadata view or Tag manager
+		 * use above method for creating command handler
+		 * 
+		 * @param aCommandId Command id for command handler
+		 * @param aMediaListProvider media list owner
+		 */
+		IMPORT_C static CGlxCommandHandlerDetails* NewL(
+		                        MGlxMediaListProvider* aMediaListProvider );		
+			    
+	    /** Destructor */
+		IMPORT_C ~CGlxCommandHandlerDetails();
+	
+	private:
+				
+    	/** Second phase constructor 
+    	 * 
+		 * @param aCommandId Command id for command handler
+    	 */
+		void ConstructL();
+		
+		/**
+	     * Constructor
+    	 * @param aMediaListProvider The owner of the media list to use
+	     */
+		CGlxCommandHandlerDetails( MGlxMediaListProvider* aMediaListProvider );
+		
+	private: // From CGlxMediaListCommandHandler
+
+    	/** See CGlxCommandHandler::DoActivateL */
+	    virtual void DoActivateL(TInt aViewId);
+		
+		/**
+	     * Execute the command, if applicable. Called after basic filtering
+    	 * @param aCommand The command to handle
+	     * @return ETrue if command was handled
+    	 */
+		virtual TBool DoExecuteL( TInt aCommandId , MGlxMediaList& aList);
+
+	    /** @see CGlxMediaListCommandHandler::DoIsDisabled */
+	    TBool DoIsDisabled(TInt aCommandId, MGlxMediaList& aList) const;
+	
+	private: // implementation
+	
+		void LaunchViewL(TUid aViewPluginId,const TDesC& aURI);
+
+	private: //data
+
+	    // Resource file offset
+		TInt iResourceOffset;
+		
+		/// Ref: HUI utility
+        CGlxUiUtility* iUiUtility;
+	};
+
+#endif // __C_GLXCOMMANDHANDLERDETAILS_H__
+
+//End of file
+
+