|
1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef __CWSPEXTENDEDMETHODS_H__ |
|
17 #define __CWSPEXTENDEDMETHODS_H__ |
|
18 |
|
19 #include <e32base.h> |
|
20 #include <wsp/mwspextendedmethods.h> |
|
21 |
|
22 class CExtendedMethod; |
|
23 |
|
24 /** The CWspExtendedMethods class represents a set of Extended Methods |
|
25 capabilities. It implements the MWspExtendedMethods interface. |
|
26 @see MWspExtendedMethods |
|
27 */ |
|
28 //##ModelId=3C4C419D03CC |
|
29 class CWspExtendedMethods : public CBase, public MWspExtendedMethods |
|
30 { |
|
31 public: // Methods |
|
32 |
|
33 /** @fn NewL() |
|
34 Static factory constructor. |
|
35 @since 7.0 |
|
36 */ |
|
37 //##ModelId=3C4C419E003F |
|
38 static CWspExtendedMethods* NewL(); |
|
39 |
|
40 /** @fn ~CWspExtendedMethods() |
|
41 Standard destructor. |
|
42 @since 7.0 |
|
43 */ |
|
44 //##ModelId=3C4C419E003E |
|
45 ~CWspExtendedMethods(); |
|
46 |
|
47 public: // Methods from MWspExtendedMethods |
|
48 |
|
49 /** @fn Start() const |
|
50 @see MWspExtendedMethods |
|
51 */ |
|
52 //##ModelId=3C4C419E0037 |
|
53 virtual TInt Start() const; |
|
54 |
|
55 /** @fn GetNext(TUint8& aPDUType, TPtrC8& aMethodName) const |
|
56 @see MWspExtendedMethods |
|
57 */ |
|
58 //##ModelId=3C4C419E0034 |
|
59 virtual TInt GetNext(TUint8& aPDUType, TPtrC8& aMethodName) const; |
|
60 |
|
61 /** @fn Reset() |
|
62 @see MWspExtendedMethods |
|
63 */ |
|
64 //##ModelId=3C4C419E002D |
|
65 virtual void Reset(); |
|
66 |
|
67 /** @fn AddExtendedMethodL(TUint8 aPDUType, const TDesC8& aMethodName) |
|
68 @see MWspExtendedMethods |
|
69 */ |
|
70 //##ModelId=3C4C419E002A |
|
71 virtual void AddExtendedMethodL(TUint8 aPDUType, const TDesC8& aMethodName); |
|
72 |
|
73 private: // Methods |
|
74 |
|
75 /** @fn CWspExtendedMethods() |
|
76 First phase constructor. |
|
77 @since 7.0 |
|
78 */ |
|
79 //##ModelId=3C4C419E0021 |
|
80 CWspExtendedMethods(); |
|
81 |
|
82 private: // Attributes |
|
83 |
|
84 /** An array of extended methods. |
|
85 */ |
|
86 //##ModelId=3C4C419E0018 |
|
87 RPointerArray<CExtendedMethod> iMethods; |
|
88 |
|
89 /** An index with the current position in the array. Is mutable to maintain |
|
90 logical const-ness. |
|
91 */ |
|
92 //##ModelId=3C4C419D03E4 |
|
93 mutable TInt iIndex; |
|
94 |
|
95 }; |
|
96 |
|
97 #endif // __CWSPEXTENDEDMETHODS_H__ |