|
1 // Copyright (c) 2004-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 /** |
|
17 @file |
|
18 @internalComponent |
|
19 */ |
|
20 |
|
21 #ifndef REMCONIFDETAILS_H |
|
22 #define REMCONIFDETAILS_H |
|
23 |
|
24 #include <e32base.h> |
|
25 #include <remcon/clienttype.h> |
|
26 |
|
27 class CRemConInterfaceBase; |
|
28 class RReadStream; |
|
29 class RWriteStream; |
|
30 |
|
31 NONSHARABLE_CLASS(CRemConInterfaceDetails) : public CBase |
|
32 { |
|
33 public: |
|
34 IMPORT_C static CRemConInterfaceDetails* NewLC(TUid aUid, TRemConClientType aType, TBool aIsBulk, CRemConInterfaceBase* aInterface, const TDesC8& aFeatures); |
|
35 ~CRemConInterfaceDetails(); |
|
36 |
|
37 IMPORT_C TUid Uid() const; |
|
38 IMPORT_C TRemConClientType Type() const; |
|
39 IMPORT_C void GetRemConInterfaceFeaturesL(RArray<TUint>& aRemConInterfaceFeatures) const; |
|
40 IMPORT_C TBool IsBulk() const; |
|
41 |
|
42 IMPORT_C CRemConInterfaceBase*& Interface(); |
|
43 |
|
44 IMPORT_C void DeleteFeatures(); |
|
45 |
|
46 static CRemConInterfaceDetails* InternalizeL(RReadStream& aStream); |
|
47 void ExternalizeL(RWriteStream& aStream); |
|
48 |
|
49 private: |
|
50 CRemConInterfaceDetails(TUid aUid, TRemConClientType aType, TBool aIsBulk, CRemConInterfaceBase* aInterface); |
|
51 void ConstructL(const TDesC8& aFeatures); |
|
52 void AddFeatures(RBuf8& aFeatures); |
|
53 |
|
54 private: |
|
55 CRemConInterfaceBase* iInterface; |
|
56 |
|
57 TUid iUid; |
|
58 TRemConClientType iType; |
|
59 RBuf8 iFeatures; |
|
60 TBool iBulk; |
|
61 }; |
|
62 |
|
63 |
|
64 NONSHARABLE_CLASS(CRemConInterfaceDetailsArray) |
|
65 : public CBase |
|
66 { |
|
67 public: |
|
68 IMPORT_C static CRemConInterfaceDetailsArray* NewL(); |
|
69 ~CRemConInterfaceDetailsArray(); |
|
70 |
|
71 IMPORT_C TArray<CRemConInterfaceDetails*> Array() const; |
|
72 |
|
73 IMPORT_C static CRemConInterfaceDetailsArray* InternalizeL(RReadStream& aStream); |
|
74 IMPORT_C void ExternalizeL(RWriteStream& aStream, TRemConClientType aTypeFilter = ERemConClientTypeUndefined); |
|
75 |
|
76 IMPORT_C void AppendL(CRemConInterfaceDetails* aDetails); |
|
77 |
|
78 private: |
|
79 CRemConInterfaceDetailsArray(); |
|
80 |
|
81 private: |
|
82 RPointerArray<CRemConInterfaceDetails> iArray; |
|
83 }; |
|
84 |
|
85 #endif // REMCONIFDETAILS_H |