equal
deleted
inserted
replaced
|
1 // Copyright (c) 2006-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 #ifndef rotatingstrbuf_h |
|
18 #define rotatingstrbuf_h |
|
19 |
|
20 #include <e32base.h> |
|
21 |
|
22 class CRotatingStrBuf : public CBase |
|
23 { |
|
24 public: |
|
25 static CRotatingStrBuf* NewL(TInt aSize); |
|
26 virtual ~CRotatingStrBuf(); |
|
27 public: |
|
28 void Put(const TDesC& aText); |
|
29 HBufC* Get(); |
|
30 |
|
31 private: |
|
32 CRotatingStrBuf(); |
|
33 void ConstructL(TInt aSize); |
|
34 |
|
35 private: |
|
36 class TEntry |
|
37 { |
|
38 public: |
|
39 HBufC* iText; |
|
40 TDblQueLink iLink; |
|
41 }; |
|
42 |
|
43 TDblQue<TEntry> iQueue; |
|
44 }; |
|
45 |
|
46 #endif |