|
1 /* |
|
2 * Copyright (c) 2004 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: definition of dm constants/exported methods |
|
15 * This is part of remotemgmt_plat. |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __NSMLDMAUTHINFO_H__ |
|
20 #define __NSMLDMAUTHINFO_H__ |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <SyncMLDef.h> |
|
24 #include <s32strm.h> |
|
25 |
|
26 /** |
|
27 * CNSmlDMAuthInfo class |
|
28 * Container for the DM athentication data |
|
29 * |
|
30 * @lib NSmlPrivateApi.lib |
|
31 * @since Series ?XX ?SeriesXX_version |
|
32 */ |
|
33 class CNSmlDMAuthInfo : public CBase |
|
34 { |
|
35 public: |
|
36 |
|
37 /** |
|
38 * C++ default constructor. |
|
39 */ |
|
40 IMPORT_C CNSmlDMAuthInfo(); |
|
41 |
|
42 /** |
|
43 * Destructor. |
|
44 */ |
|
45 IMPORT_C virtual ~CNSmlDMAuthInfo(); |
|
46 |
|
47 /** |
|
48 * Reads data from the given stream. |
|
49 * @since Series ?XX ?SeriesXX_version |
|
50 * @param aStream Reference to stream data is read from |
|
51 * @return - |
|
52 */ |
|
53 virtual void InternalizeL( RReadStream& aStream ); |
|
54 |
|
55 /** |
|
56 * Writes data to the given stream. |
|
57 * @since Series ?XX ?SeriesXX_version |
|
58 * @param aStream Reference to stream data is written to |
|
59 * @return - |
|
60 */ |
|
61 virtual void ExternalizeL( RWriteStream& aStream ) const; |
|
62 |
|
63 /** |
|
64 * Returns the size of the container data |
|
65 * @since Series ?XX ?SeriesXX_version |
|
66 * @param - |
|
67 * @return Size of container data |
|
68 */ |
|
69 TInt DataSize() const; |
|
70 |
|
71 public: |
|
72 TInt iProfileId; |
|
73 HBufC8* iServerNonce; |
|
74 HBufC8* iClientNonce; |
|
75 TUint iAuthPref; |
|
76 }; |
|
77 |
|
78 #endif |