equal
deleted
inserted
replaced
|
1 // Copyright (c) 1998-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 // Common Driver components |
|
15 // |
|
16 // |
|
17 |
|
18 #ifndef __D32DRVR_H__ |
|
19 #define __D32DRVR_H__ |
|
20 |
|
21 #ifndef __D32DBAS_H__ |
|
22 #include "D32DBAS.H" |
|
23 #endif |
|
24 #ifndef __D32CACHE_H__ |
|
25 #include "D32CACHE.H" |
|
26 #endif |
|
27 |
|
28 // classes referenced |
|
29 class CDbDatabase; |
|
30 |
|
31 /** |
|
32 @internalComponent |
|
33 */ |
|
34 typedef TBufC<KDbMaxFormatName> TDbFormatName; |
|
35 |
|
36 template <class T,class Factory> inline T* AttachContext(Factory* aF,T* aT); |
|
37 |
|
38 void ExtractUidAndName(const TDesC& aDbFormatStr, TUid& aDbsUid, TPtrC& aUidName); |
|
39 CDbDatabase* CreateDatabaseL(TDbFormat::TCreate aMode, RFs& aFs, |
|
40 const TDesC& aSource, const TDesC& aFormat); |
|
41 |
|
42 /** |
|
43 @internalComponent |
|
44 */ |
|
45 class CDbContext : public CBase |
|
46 { |
|
47 friend class CDbObject; |
|
48 public: |
|
49 void Attach(CDbObject* aObject); |
|
50 protected: |
|
51 inline CDbContext() {} |
|
52 inline TInt Ref() const; |
|
53 inline void Open(); |
|
54 void Close(); |
|
55 virtual void Idle(); |
|
56 private: |
|
57 TInt iRef; |
|
58 }; |
|
59 |
|
60 #include "D32DRVR.INL" |
|
61 #endif |