|
1 /** |
|
2 * Copyright (c) 2003-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 |
|
19 |
|
20 /** |
|
21 @file |
|
22 */ |
|
23 |
|
24 |
|
25 #ifndef __CMTF_TEST_ACTION_PARAMETERS_H__ |
|
26 #define __CMTF_TEST_ACTION_PARAMETERS_H__ |
|
27 |
|
28 #include <e32base.h> |
|
29 class CMtfTestAction; |
|
30 |
|
31 /** Represents a set of test action parameters. Indivudual parameters are accessed |
|
32 via an index. An instance with up to 8 parameters can be created. Instances requiring |
|
33 more than 8 parameters can be created by creating an instance and then adding parameters to it. */ |
|
34 class CMtfTestActionParameters : public CBase |
|
35 { |
|
36 public: |
|
37 virtual ~CMtfTestActionParameters(); |
|
38 |
|
39 static CMtfTestActionParameters* NewL(); |
|
40 static CMtfTestActionParameters* NewL(const TDesC& aParam1); |
|
41 static CMtfTestActionParameters* NewL(const TDesC& aParam1,const TDesC& aParam2); |
|
42 static CMtfTestActionParameters* NewL(const TDesC& aParam1,const TDesC& aParam2,const TDesC& aParam3); |
|
43 static CMtfTestActionParameters* NewL(const TDesC& aParam1,const TDesC& aParam2,const TDesC& aParam3,const TDesC& aParam4); |
|
44 static CMtfTestActionParameters* NewL(const TDesC& aParam1,const TDesC& aParam2,const TDesC& aParam3,const TDesC& aParam4, |
|
45 const TDesC& aParam5); |
|
46 static CMtfTestActionParameters* NewL(const TDesC& aParam1,const TDesC& aParam2,const TDesC& aParam3,const TDesC& aParam4, |
|
47 const TDesC& aParam5,const TDesC& aParam6); |
|
48 static CMtfTestActionParameters* NewL(const TDesC& aParam1,const TDesC& aParam2,const TDesC& aParam3,const TDesC& aParam4, |
|
49 const TDesC& aParam5,const TDesC& aParam6,const TDesC& aParam7); |
|
50 static CMtfTestActionParameters* NewL(const TDesC& aParam1,const TDesC& aParam2,const TDesC& aParam3,const TDesC& aParam4, |
|
51 const TDesC& aParam5,const TDesC& aParam6,const TDesC& aParam7,const TDesC& aParam8); |
|
52 |
|
53 static CMtfTestActionParameters* NewLC(); |
|
54 static CMtfTestActionParameters* NewLC(const TDesC& aParam1); |
|
55 static CMtfTestActionParameters* NewLC(const TDesC& aParam1,const TDesC& aParam2); |
|
56 static CMtfTestActionParameters* NewLC(const TDesC& aParam1,const TDesC& aParam2,const TDesC& aParam3); |
|
57 static CMtfTestActionParameters* NewLC(const TDesC& aParam1,const TDesC& aParam2,const TDesC& aParam3,const TDesC& aParam4); |
|
58 static CMtfTestActionParameters* NewLC(const TDesC& aParam1,const TDesC& aParam2,const TDesC& aParam3,const TDesC& aParam4, |
|
59 const TDesC& aParam5); |
|
60 static CMtfTestActionParameters* NewLC(const TDesC& aParam1,const TDesC& aParam2,const TDesC& aParam3,const TDesC& aParam4, |
|
61 const TDesC& aParam5,const TDesC& aParam6); |
|
62 static CMtfTestActionParameters* NewLC(const TDesC& aParam1,const TDesC& aParam2,const TDesC& aParam3,const TDesC& aParam4, |
|
63 const TDesC& aParam5,const TDesC& aParam6,const TDesC& aParam7); |
|
64 static CMtfTestActionParameters* NewLC(const TDesC& aParam1,const TDesC& aParam2,const TDesC& aParam3,const TDesC& aParam4, |
|
65 const TDesC& aParam5,const TDesC& aParam6,const TDesC& aParam7,const TDesC& aParam8); |
|
66 |
|
67 void AddParameterL(const TDesC& aParameter); |
|
68 TInt Count() const; |
|
69 const TDesC& Parameter(TInt aParameterIndex) const; |
|
70 |
|
71 private: |
|
72 RPointerArray<HBufC> iParameters; |
|
73 }; |
|
74 |
|
75 |
|
76 #endif |
|
77 |