|
1 /* |
|
2 * Copyright (c) 2005 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: Custom command utility class for AMMS custom commands. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CAMMSCUSTOMCOMMANDUTILITY_H |
|
20 #define CAMMSCUSTOMCOMMANDUTILITY_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include <CustomCommandUtility.h> |
|
25 #include <mmfcontroller.h> |
|
26 |
|
27 // CLASS DECLARATION |
|
28 |
|
29 /** |
|
30 * |
|
31 * Custom command Utility implementation class. |
|
32 * This class is used to deliver custom commands to MMFController. |
|
33 * |
|
34 * |
|
35 * @since 3.0 |
|
36 */ |
|
37 NONSHARABLE_CLASS(CAMMSCustomCommandUtility): public CCustomCommandUtility |
|
38 { |
|
39 public: // Constructors and destructor |
|
40 /** |
|
41 * Two-phased constructor. |
|
42 */ |
|
43 static CAMMSCustomCommandUtility* NewL( |
|
44 RMMFController& aMMFController); |
|
45 |
|
46 /** |
|
47 * Two-phased constructor. |
|
48 */ |
|
49 static CAMMSCustomCommandUtility* NewLC( |
|
50 RMMFController& aMMFController); |
|
51 |
|
52 /** |
|
53 * Destructor. |
|
54 */ |
|
55 ~CAMMSCustomCommandUtility(); |
|
56 |
|
57 public: // New functions |
|
58 |
|
59 public: // Functions from base classes |
|
60 |
|
61 TInt CustomCommandSync(const TMMFMessageDestinationPckg& aDestination, |
|
62 TInt aFunction, |
|
63 const TDesC8& aDataTo1, |
|
64 const TDesC8& aDataTo2, |
|
65 TDes8& aDataFrom); |
|
66 |
|
67 TInt CustomCommandSync(const TMMFMessageDestinationPckg& aDestination, |
|
68 TInt aFunction, |
|
69 const TDesC8& aDataTo1, |
|
70 const TDesC8& aDataTo2); |
|
71 |
|
72 void CustomCommandAsync(const TMMFMessageDestinationPckg& aDestination, |
|
73 TInt aFunction, |
|
74 const TDesC8& aDataTo1, |
|
75 const TDesC8& aDataTo2, |
|
76 TDes8& aDataFrom, |
|
77 TRequestStatus& aStatus); |
|
78 |
|
79 void CustomCommandAsync(const TMMFMessageDestinationPckg& aDestination, |
|
80 TInt aFunction, |
|
81 const TDesC8& aDataTo1, |
|
82 const TDesC8& aDataTo2, |
|
83 TRequestStatus& aStatus); |
|
84 |
|
85 private: |
|
86 /** |
|
87 * C++ constructor. |
|
88 */ |
|
89 CAMMSCustomCommandUtility(RMMFController& aMMFController); |
|
90 |
|
91 private: // Data |
|
92 |
|
93 RMMFController& iMMFController; |
|
94 |
|
95 }; |
|
96 |
|
97 #endif // CAMMSCUSTOMCOMMANDUTILITY_H |
|
98 |
|
99 |