diff -r 000000000000 -r f72a12da539e menufw/menufwui/mmextensions/mmfolderuiextension/inc/mmfoldercommandrename.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/menufw/menufwui/mmextensions/mmfolderuiextension/inc/mmfoldercommandrename.h Thu Dec 17 08:40:49 2009 +0200 @@ -0,0 +1,98 @@ +/* +* Copyright (c) 2007-2008 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: Rename folder command + * +*/ + + + + +#ifndef MMFOLDERCOMMANDRENAME_H +#define MMFOLDERCOMMANDRENAME_H + +#include +#include "mmfoldercommand.h" + +/** + * CMmFolderCommandRename is a class inherits from CMmFolderCommand. + * It's responsible for handling command renaming folder in MCS. Plugin supports + * MMRenameFolderCommand command. It displays query, get name and update item + * from MCS. + * + * @lib mmfolderuiextensionplugin.lib + * @since S60 5.0 + * @ingroup group_mmfolderuiextensionplugin + */ +NONSHARABLE_CLASS( CMmFolderCommandRename ) : public CMmFolderCommand + { +public: + + /** + * Instantiates an object of this type. + * @return Instance of the CMmFolderCommandRename class. + */ + static CMmFolderCommandRename* NewL(); + + /** + * Virtual C++ Destructor. + */ + ~CMmFolderCommandRename(); + +private: + + /** + * Performs rename folder operation. + * @param aEventParamList Parameters for operations. + */ + void ExecuteActionL( CLiwGenericParamList* aEventParamList ); + + /** + * Handles notifications caused by an asynchronous Execute*CmdL call + * or an event. + * @param aCmdId The service command associated to the event. + * @param aEventId Occured event, see LiwCommon.hrh. + * @param aEventParamList Event parameters, if any, as defined per + * each event. + * @param aInParamList Input parameters, if any, given in the + * related HandleCommmandL. + * @return Error code for the callback. + */ + TInt HandleNotifyL( TInt aCmdId, TInt aEventId, + CLiwGenericParamList& aEventParamList, + const CLiwGenericParamList& aInParamList ); + + /** + * Gets new name of the folder. + * @param aId Id of the item. + * @param aFolderName Reference to buffer contains folder name. + */ + void RenameFolderL( TInt aId, RBuf& aFolderName ); + + /** + * Default C++ constructor. + */ + CMmFolderCommandRename(); + + /** + * Second phase Symbian constructor. + */ + void ConstructL(); + +private: + + }; + +#endif /*MMFOLDERCOMMANDRENAME_H*/ + +// End of file