1 /* |
|
2 * Copyright (c) 2007 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: widget commands |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef ALFWIDGETCOMMAND_H |
|
20 #define ALFWIDGETCOMMAND_H |
|
21 |
|
22 #include <alf/alfcommand.h> |
|
23 #include <osn/ustring.h> |
|
24 |
|
25 using namespace osncore; |
|
26 |
|
27 namespace Alf |
|
28 { |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 class AlfAttribute; |
|
32 class AlfWidget; |
|
33 |
|
34 /** |
|
35 * @class TAlfWidgetAttributeCommand alfwidgetcommand.h "alf/alfwidgetcommand.h" |
|
36 * |
|
37 * AlfCommand type for carrying an attribute and delivering |
|
38 * it to a presentation element of a recipient widget. |
|
39 * |
|
40 * @see AlfAttribute |
|
41 * @since S60 ?S60_version |
|
42 */ |
|
43 class TAlfWidgetAttributeCommand : public TAlfObjectCommand |
|
44 { |
|
45 public: |
|
46 /** |
|
47 * Constructor. |
|
48 * |
|
49 * @param aAttribute The attributes to be set |
|
50 * @param aTarget Name of the target AlfElement instance |
|
51 * @param aRecipient Widget that the command is to be executed on |
|
52 * @since S60 ?S60_version |
|
53 */ |
|
54 TAlfWidgetAttributeCommand( |
|
55 AlfAttribute* aAttribute, |
|
56 UString& aTarget, |
|
57 AlfWidget* aRecipient ); |
|
58 |
|
59 /** |
|
60 * Destructor |
|
61 */ |
|
62 ~TAlfWidgetAttributeCommand(); |
|
63 |
|
64 /* Implementation of TAlfCommand::ExecuteL(). */ |
|
65 void ExecuteL(CAlfEnv& aEnv) const; |
|
66 |
|
67 /* Implementation of TAlfCommand::Size(). */ |
|
68 TInt Size() const; |
|
69 |
|
70 public: |
|
71 AlfAttribute* mOwnedAttribute; // Owned |
|
72 UString mTarget; |
|
73 }; |
|
74 |
|
75 |
|
76 } // namespace Alf |
|
77 |
|
78 #endif // ALFWIDGETCOMMAND_H |
|