equal
deleted
inserted
replaced
|
1 // Copyright (c) 2005-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 // CAgnPermanentData is a container to hold the handles/references |
|
15 // to data which is pre-created during server start-up when |
|
16 // the Agenda server is started in non-transient mode. |
|
17 // |
|
18 // |
|
19 |
|
20 #ifndef __AGSPERMANENTDATA_H__ |
|
21 #define __AGSPERMANENTDATA_H__ |
|
22 |
|
23 #include <e32base.h> |
|
24 |
|
25 class CAgnServer; |
|
26 class CAgnServFile; |
|
27 class CAgnServFileMgr; |
|
28 |
|
29 NONSHARABLE_CLASS(CAgnPermanentData) : public CBase |
|
30 { |
|
31 public: |
|
32 |
|
33 static CAgnPermanentData* NewL(CAgnServer& aServer, CAgnServFileMgr& aFileMgr); |
|
34 |
|
35 ~CAgnPermanentData(); |
|
36 |
|
37 void StartDataCreationL(); |
|
38 TBool IsOnlyClientOfFile(const TDesC& aFilename); |
|
39 void ReleaseFileL(const TDesC& aFilename); |
|
40 |
|
41 private: |
|
42 CAgnPermanentData(CAgnServer& aServer, CAgnServFileMgr& aFileMgr); |
|
43 void Close(); |
|
44 |
|
45 private: |
|
46 CAgnServer& iServer; |
|
47 CAgnServFileMgr& iFileMgr; |
|
48 CAgnServFile* iFile; |
|
49 }; |
|
50 |
|
51 #endif // __AGSPERMANENTDATA_H__ |