ui/commandhandlers/commoncommandhandlers/inc/glxcommandhandlerrename.h
changeset 26 c499df2dbb33
child 62 36d93b4dc635
equal deleted inserted replaced
24:99ad1390cd33 26:c499df2dbb33
       
     1 /*
       
     2 * Copyright (c) 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 GLXCOMMANDHANDLERRENAME_H
       
    19 #define GLXCOMMANDHANDLERRENAME_H
       
    20 
       
    21 #include <glxmpxcommandhandler.h>
       
    22 
       
    23 #ifdef BUILD_COMMONCOMMANDHANDLERS
       
    24 #define GLX_COMMONCOMMANDHANDLERS_EXPORT Q_DECL_EXPORT
       
    25 #else
       
    26 #define GLX_COMMONCOMMANDHANDLERS_EXPORT Q_DECL_IMPORT
       
    27 #endif
       
    28 
       
    29 
       
    30 class GLX_COMMONCOMMANDHANDLERS_EXPORT GlxCommandHandlerRename : public GlxMpxCommandHandler
       
    31 	{
       
    32 public:
       
    33     GlxCommandHandlerRename();
       
    34     ~GlxCommandHandlerRename();
       
    35     CMPXCommand* CreateCommandL(TInt aCommandId, MGlxMediaList& aMediaList, TBool& aConsume) const ;
       
    36 private:
       
    37     QString CompletionTextL() const;
       
    38     QString GetName(MGlxMediaList& aMediaList) const;
       
    39 	void HandleErrorL(TInt aErrorCode);
       
    40 	};
       
    41 
       
    42 #endif // GLXCOMMANDHANDLERRENAME_H