equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef TSIDLIST_H |
|
19 #define TSIDLIST_H |
|
20 #include <e32base.h> |
|
21 #include <s32strm.h> |
|
22 NONSHARABLE_CLASS(CTsIdList) : public CBase |
|
23 { |
|
24 public: |
|
25 static CTsIdList* NewLC(); |
|
26 static CTsIdList* NewL(); |
|
27 static CTsIdList* NewLC(RReadStream& aStream); |
|
28 ~CTsIdList(); |
|
29 TBool IsPresent( TInt aId ) const; |
|
30 void AppendL(const TInt aArray[], TInt aSize ); |
|
31 void AppendL(const TArray<TInt>& aArray); |
|
32 void AppendL(TInt aId); |
|
33 void Reset(); |
|
34 TInt Size() const; |
|
35 void ExternalizeL(RWriteStream &aStream) const; |
|
36 void InternalizeL(RReadStream &aStream); |
|
37 |
|
38 private: |
|
39 CTsIdList(); |
|
40 |
|
41 |
|
42 private: |
|
43 RArray<TInt> iIds; |
|
44 |
|
45 }; |
|
46 #endif // TSIDLIST_H |