|
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: This header file describes the class that handles the storage |
|
15 * of triggers in RAM Structures. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef C_LBTCONTAINER_TRIGGERIDGENERATOR_H |
|
21 #define C_LBTCONTAINER_TRIGGERIDGENERATOR_H |
|
22 |
|
23 // system includes |
|
24 #include <e32base.h> |
|
25 #include <f32file.h> |
|
26 // user includes |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 /** |
|
34 * This class provides an abstraction to store and retrieve triggers |
|
35 * from RAM Structures. |
|
36 * |
|
37 * It internally utilizes RAM memory and stores the trigger information |
|
38 * in a efficient data structure. |
|
39 */ |
|
40 NONSHARABLE_CLASS( CLbtTriggerIdGenerator ) : public CBase |
|
41 |
|
42 { |
|
43 public: |
|
44 /** |
|
45 * The Symbian 2 phase constructor. |
|
46 * This method creates a new instance of CLbtTriggerIdGenerator |
|
47 * |
|
48 * @return An instance of this class |
|
49 */ |
|
50 static CLbtTriggerIdGenerator* NewL(); |
|
51 |
|
52 /** |
|
53 * Destructor. |
|
54 */ |
|
55 virtual ~CLbtTriggerIdGenerator(); |
|
56 |
|
57 TInt64 GetTriggerId(); |
|
58 |
|
59 void SetTriggerId(TInt64 aId); |
|
60 |
|
61 protected: // from base class MLbtTriggerStore |
|
62 |
|
63 private: |
|
64 /** |
|
65 * C++ constructor |
|
66 */ |
|
67 CLbtTriggerIdGenerator(); |
|
68 |
|
69 /** |
|
70 * Symbian 2nd phase of construction |
|
71 */ |
|
72 void ConstructL(); |
|
73 |
|
74 /** |
|
75 * C++ Copy Constructor |
|
76 * The private copy constructor prevents the usage of copy constructors |
|
77 * with this class. |
|
78 */ |
|
79 CLbtTriggerIdGenerator(const CLbtTriggerIdGenerator& aRamTriggersManager); |
|
80 |
|
81 /** |
|
82 * Overload equality operator |
|
83 * The private overload of the equality operator prevents the usage of |
|
84 * equality operator with this class. |
|
85 */ |
|
86 CLbtTriggerIdGenerator& operator =(const CLbtTriggerIdGenerator& aRamTriggersManager); |
|
87 |
|
88 RFs iFileServer; |
|
89 RFile iFileHandle; |
|
90 }; |
|
91 |
|
92 |
|
93 #endif // C_LBTCONTAINER_TRIGGERIDGENERATOR_H |