|
1 /* |
|
2 * Copyright (c) 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: Header declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 #ifndef WSOVITOKENCREATIONRESPONSE_H_ |
|
26 #define WSOVITOKENCREATIONRESPONSE_H_ |
|
27 |
|
28 #include <SenBaseFragment.h> |
|
29 #include "uri8.h" |
|
30 |
|
31 |
|
32 const TInt KStateParsingTokenInfo = 100; |
|
33 const TInt KStateParsingUserInfo = 102; |
|
34 |
|
35 class CWSOviTokenCreationResponse : public CSenBaseFragment |
|
36 { |
|
37 public: |
|
38 /** |
|
39 * Function: NewL |
|
40 * |
|
41 * Description: Create instance of concrete implementation. Note that ECOM |
|
42 * interface implementations can only have two signatures for |
|
43 * NewL: |
|
44 * - NewL without parameters (used here) |
|
45 * - NewL with TAny* pointer, which may provide some client |
|
46 * data |
|
47 * |
|
48 * Returns: Instance of this class. |
|
49 * |
|
50 * Note: The interface, which is abstract base class of this |
|
51 * implementation, also provides NewL method. Normally abstract |
|
52 * classes do not provide NewL, because they cannot create |
|
53 * instances of themselves. |
|
54 */ |
|
55 static CWSOviTokenCreationResponse* NewL(); |
|
56 static CWSOviTokenCreationResponse* NewLC(); |
|
57 |
|
58 /** |
|
59 * Getter for token |
|
60 * @return token |
|
61 */ |
|
62 TPtrC8 Token(); |
|
63 |
|
64 /** |
|
65 * Getter for tokenSecret |
|
66 * @return tokenSecret |
|
67 */ |
|
68 TPtrC8 TokenSecret(); |
|
69 |
|
70 /** |
|
71 * Getter for ttl |
|
72 * @return ttl |
|
73 */ |
|
74 TPtrC8 TTL(); |
|
75 |
|
76 /** |
|
77 * Getter for username |
|
78 * @return username |
|
79 */ |
|
80 TPtrC8 Username(); |
|
81 |
|
82 |
|
83 TBool IsTokenUpdate(); |
|
84 private: |
|
85 // From CBaseFragment |
|
86 virtual void StartElementL(const TDesC8& aNsUri, |
|
87 const TDesC8& aLocalName, |
|
88 const TDesC8& aQName, |
|
89 const RAttributeArray& aAttributes); |
|
90 |
|
91 virtual void EndElementL(const TDesC8& aNsUri, |
|
92 const TDesC8& aLocalName, |
|
93 const TDesC8& aQName); |
|
94 public: |
|
95 virtual ~CWSOviTokenCreationResponse(); |
|
96 |
|
97 protected: |
|
98 CWSOviTokenCreationResponse(); |
|
99 |
|
100 void ConstructL(); |
|
101 private: |
|
102 HBufC8* iToken; |
|
103 HBufC8* iTokenSecret; |
|
104 HBufC8* iTTL; |
|
105 HBufC8* iUsername; |
|
106 TBool iIsTokenUpdate; |
|
107 |
|
108 }; |
|
109 |
|
110 #endif /*WSOVITOKENCREATIONRESPONSE_H_*/ |
|
111 |