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 using System; |
|
18 using System.Text; |
|
19 using System.Collections.Generic; |
|
20 using CrashItemLib.Crash; |
|
21 using SymbianDebugLib.Engine; |
|
22 using CrashItemLib.Crash.Messages; |
|
23 |
|
24 namespace CrashItemLib.Crash.Base |
|
25 { |
|
26 internal class CIElementIdProvider |
|
27 { |
|
28 #region Constructors |
|
29 public CIElementIdProvider() |
|
30 : this( KInitialStartingValue ) |
|
31 { |
|
32 } |
|
33 |
|
34 public CIElementIdProvider( int aInitialValue ) |
|
35 { |
|
36 iNextValue = aInitialValue; |
|
37 } |
|
38 #endregion |
|
39 |
|
40 #region Internal constants |
|
41 // Assumption: Symbian OS process and thread ids should be less than this value |
|
42 internal const int KInitialStartingValue = 50000; |
|
43 #endregion |
|
44 |
|
45 #region API |
|
46 public int GetNextId() |
|
47 { |
|
48 return ++iNextValue; |
|
49 } |
|
50 #endregion |
|
51 |
|
52 #region Properties |
|
53 #endregion |
|
54 |
|
55 #region Constants |
|
56 #endregion |
|
57 |
|
58 #region Operators |
|
59 #endregion |
|
60 |
|
61 #region Data members |
|
62 private int iNextValue = KInitialStartingValue; |
|
63 #endregion |
|
64 } |
|
65 } |