|
1 /* |
|
2 * Copyright (c) 2006 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: MXIMPServiceInfo API object implementation. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CXIMPSERVICEINFOIMP_H |
|
19 #define CXIMPSERVICEINFOIMP_H |
|
20 |
|
21 |
|
22 #include "ximpapidataobjbase.h" |
|
23 #include <ximpserviceinfo.h> |
|
24 #include <s32strm.h> |
|
25 |
|
26 /** |
|
27 * MXIMPServiceInfo API object implementation. |
|
28 * |
|
29 * @lib ximpdatamodel.dll |
|
30 * @since S60 v3.2 |
|
31 */ |
|
32 NONSHARABLE_CLASS( CXIMPServiceInfoImp ): public CXIMPApiDataObjBase, |
|
33 public MXIMPServiceInfo |
|
34 { |
|
35 public: |
|
36 /** The class ID. */ |
|
37 enum { KClassId = XIMPIMP_CLSID_CXIMPSERVICEINFOIMP }; |
|
38 |
|
39 |
|
40 public: |
|
41 |
|
42 IMPORT_C static CXIMPServiceInfoImp* NewLC(); |
|
43 IMPORT_C static CXIMPServiceInfoImp* NewL(); |
|
44 IMPORT_C static CXIMPServiceInfoImp* NewLC( TUid aProtocolImplUid, |
|
45 const TDesC16& aServiceAddress, |
|
46 const TDesC16& aUsername, |
|
47 const TDesC16& aPassword, |
|
48 TInt32 aIapId ); |
|
49 virtual ~CXIMPServiceInfoImp(); |
|
50 |
|
51 private: |
|
52 |
|
53 CXIMPServiceInfoImp(); |
|
54 void ConstructL(); |
|
55 void ConstructL( TUid aProtocolImplUid, |
|
56 const TDesC16& aServiceAddress, |
|
57 const TDesC16& aUsername, |
|
58 const TDesC16& aPassword, |
|
59 TInt32 aIapId ); |
|
60 |
|
61 /** |
|
62 * @see CXIMPApiDataObjBase |
|
63 */ |
|
64 XIMPIMP_DECLARE_DATAOBJ_BASE_PRIV_METHODS |
|
65 |
|
66 public: // From MXIMPBase |
|
67 |
|
68 /** |
|
69 * Implementation of MXIMPBase interface methods |
|
70 * @see MXIMPBase |
|
71 */ |
|
72 XIMPIMP_DECLARE_IF_BASE_METHODS |
|
73 |
|
74 /** |
|
75 * @see CXIMPApiDataObjBase |
|
76 */ |
|
77 XIMPIMP_DECLARE_DATAOBJ_BASE_METHODS |
|
78 |
|
79 public: // From MXIMPServiceInfo |
|
80 |
|
81 /** |
|
82 * Implementation of MXIMPServiceInfo interface methods |
|
83 * @see MXIMPServiceInfo |
|
84 */ |
|
85 const TDesC16& ServiceAddress() const; |
|
86 const TDesC16& UserId() const; |
|
87 const TDesC16& Password() const; |
|
88 TInt32 IapId() const; |
|
89 TUid ProtocolImplUid() const; |
|
90 |
|
91 |
|
92 public: // New functions |
|
93 |
|
94 |
|
95 /** |
|
96 * Internalizes object data from given stream. |
|
97 * @param aStream Stream to read. |
|
98 */ |
|
99 IMPORT_C void InternalizeL( RReadStream& aStream ); |
|
100 |
|
101 private: // data |
|
102 |
|
103 /** |
|
104 * Service address |
|
105 * Own. |
|
106 */ |
|
107 RBuf iAddress; |
|
108 |
|
109 /** |
|
110 * User ID |
|
111 * Own. |
|
112 */ |
|
113 RBuf iUserId; |
|
114 |
|
115 /** |
|
116 * Password |
|
117 * Own. |
|
118 */ |
|
119 RBuf iPassword; |
|
120 |
|
121 /** |
|
122 * Protocol Uid |
|
123 */ |
|
124 TUid iProtocolUid; |
|
125 |
|
126 /** |
|
127 * IAP id |
|
128 */ |
|
129 TInt32 iIapId; |
|
130 |
|
131 }; |
|
132 |
|
133 |
|
134 #endif // CXIMPSERVICEINFOIMP_H |