51
|
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: MXIMPProtocolInfo API object implementation.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef CXIMPPROTOCOLINFOIMP_H
|
|
19 |
#define CXIMPPROTOCOLINFOIMP_H
|
|
20 |
|
|
21 |
#include "ximpapidataobjbase.h"
|
|
22 |
#include <ximpprotocolinfo.h>
|
|
23 |
#include <s32strm.h>
|
|
24 |
|
|
25 |
|
|
26 |
class MXIMPFeatureInfo;
|
|
27 |
class CXIMPFeatureInfoImp;
|
|
28 |
|
|
29 |
|
|
30 |
/**
|
|
31 |
* MXIMPProtocolInfo API object implementation.
|
|
32 |
*
|
|
33 |
* @lib ximpdatamodel.dll
|
|
34 |
* @since S60 v3.2
|
|
35 |
*/
|
|
36 |
NONSHARABLE_CLASS( CXIMPProtocolInfoImp ): public CXIMPApiDataObjBase,
|
|
37 |
public MXIMPProtocolInfo
|
|
38 |
{
|
|
39 |
public:
|
|
40 |
/** The class ID. */
|
|
41 |
enum { KClassId = XIMPIMP_CLSID_CXIMPPROTOCOLINFOIMP };
|
|
42 |
|
|
43 |
public:
|
|
44 |
|
|
45 |
IMPORT_C static CXIMPProtocolInfoImp* NewLC();
|
|
46 |
|
|
47 |
IMPORT_C static CXIMPProtocolInfoImp* NewLC(
|
|
48 |
const TDesC16& aDisplayName,
|
|
49 |
TUid aImplementationUid,
|
|
50 |
const CXIMPFeatureInfoImp& aFeatures );
|
|
51 |
|
|
52 |
virtual ~CXIMPProtocolInfoImp();
|
|
53 |
|
|
54 |
private:
|
|
55 |
|
|
56 |
CXIMPProtocolInfoImp();
|
|
57 |
void ConstructL( const TDesC16& aDisplayName,
|
|
58 |
TUid aImplementationUid,
|
|
59 |
const CXIMPFeatureInfoImp& aFeatures );
|
|
60 |
void ConstructL();
|
|
61 |
|
|
62 |
/**
|
|
63 |
* @see CXIMPApiDataObjBase
|
|
64 |
*/
|
|
65 |
XIMPIMP_DECLARE_DATAOBJ_BASE_PRIV_METHODS
|
|
66 |
|
|
67 |
public: // From MXIMPBase
|
|
68 |
|
|
69 |
/**
|
|
70 |
* Implementation of MXIMPBase interface methods
|
|
71 |
* @see MXIMPBase
|
|
72 |
*/
|
|
73 |
XIMPIMP_DECLARE_IF_BASE_METHODS
|
|
74 |
|
|
75 |
/**
|
|
76 |
* @see CXIMPApiDataObjBase
|
|
77 |
*/
|
|
78 |
XIMPIMP_DECLARE_DATAOBJ_BASE_METHODS
|
|
79 |
|
|
80 |
public: // From MXIMPProtocolInfo
|
|
81 |
|
|
82 |
/**
|
|
83 |
* Implementation of MXIMPProtocolInfo interface methods
|
|
84 |
* @see MXIMPProtocolInfo
|
|
85 |
*/
|
|
86 |
const TDesC16& DisplayName() const;
|
|
87 |
TUid ImplementationUid() const;
|
|
88 |
MXIMPFeatureInfo* GetProtocolFeaturesLC() const;
|
|
89 |
|
|
90 |
|
|
91 |
|
|
92 |
public: // New functions
|
|
93 |
|
|
94 |
/**
|
|
95 |
* Internalizes object data from given stream.
|
|
96 |
* @param aStream Stream to read.
|
|
97 |
*/
|
|
98 |
IMPORT_C void InternalizeL( RReadStream& aStream );
|
|
99 |
|
|
100 |
|
|
101 |
private: // data
|
|
102 |
|
|
103 |
/**
|
|
104 |
* Protocol plug-in display name.
|
|
105 |
* Own.
|
|
106 |
*/
|
|
107 |
RBuf iDisplayName;
|
|
108 |
|
|
109 |
|
|
110 |
/**
|
|
111 |
* Protocol plug-in implementation uid.
|
|
112 |
* Own.
|
|
113 |
*/
|
|
114 |
TUid iImplementationUid;
|
|
115 |
|
|
116 |
|
|
117 |
/**
|
|
118 |
* Protocol plug-in feature info.
|
|
119 |
* Own.
|
|
120 |
*/
|
|
121 |
CXIMPFeatureInfoImp* iFeatures;
|
|
122 |
|
|
123 |
};
|
|
124 |
|
|
125 |
|
|
126 |
#endif // CXIMPPROTOCOLINFOIMP_H
|
|
127 |
|
|
128 |
|