|
1 /* |
|
2 * Copyright (c) 2007-2008 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: Rename folder command |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef MMFOLDERCOMMANDRENAME_H |
|
22 #define MMFOLDERCOMMANDRENAME_H |
|
23 |
|
24 #include <e32base.h> |
|
25 #include "mmfoldercommand.h" |
|
26 |
|
27 /** |
|
28 * CMmFolderCommandRename is a class inherits from CMmFolderCommand. |
|
29 * It's responsible for handling command renaming folder in MCS. Plugin supports |
|
30 * MMRenameFolderCommand command. It displays query, get name and update item |
|
31 * from MCS. |
|
32 * |
|
33 * @lib mmfolderuiextensionplugin.lib |
|
34 * @since S60 5.0 |
|
35 * @ingroup group_mmfolderuiextensionplugin |
|
36 */ |
|
37 NONSHARABLE_CLASS( CMmFolderCommandRename ) : public CMmFolderCommand |
|
38 { |
|
39 public: |
|
40 |
|
41 /** |
|
42 * Instantiates an object of this type. |
|
43 * @return Instance of the CMmFolderCommandRename class. |
|
44 */ |
|
45 static CMmFolderCommandRename* NewL(); |
|
46 |
|
47 /** |
|
48 * Virtual C++ Destructor. |
|
49 */ |
|
50 ~CMmFolderCommandRename(); |
|
51 |
|
52 private: |
|
53 |
|
54 /** |
|
55 * Performs rename folder operation. |
|
56 * @param aEventParamList Parameters for operations. |
|
57 */ |
|
58 void ExecuteActionL( CLiwGenericParamList* aEventParamList ); |
|
59 |
|
60 /** |
|
61 * Handles notifications caused by an asynchronous Execute*CmdL call |
|
62 * or an event. |
|
63 * @param aCmdId The service command associated to the event. |
|
64 * @param aEventId Occured event, see LiwCommon.hrh. |
|
65 * @param aEventParamList Event parameters, if any, as defined per |
|
66 * each event. |
|
67 * @param aInParamList Input parameters, if any, given in the |
|
68 * related HandleCommmandL. |
|
69 * @return Error code for the callback. |
|
70 */ |
|
71 TInt HandleNotifyL( TInt aCmdId, TInt aEventId, |
|
72 CLiwGenericParamList& aEventParamList, |
|
73 const CLiwGenericParamList& aInParamList ); |
|
74 |
|
75 /** |
|
76 * Gets new name of the folder. |
|
77 * @param aId Id of the item. |
|
78 * @param aFolderName Reference to buffer contains folder name. |
|
79 */ |
|
80 void RenameFolderL( TInt aId, RBuf& aFolderName ); |
|
81 |
|
82 /** |
|
83 * Default C++ constructor. |
|
84 */ |
|
85 CMmFolderCommandRename(); |
|
86 |
|
87 /** |
|
88 * Second phase Symbian constructor. |
|
89 */ |
|
90 void ConstructL(); |
|
91 |
|
92 private: |
|
93 |
|
94 }; |
|
95 |
|
96 #endif /*MMFOLDERCOMMANDRENAME_H*/ |
|
97 |
|
98 // End of file |