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 #ifndef PBAPFOLDERBASE_H |
|
17 #define PBAPFOLDERBASE_H |
|
18 |
|
19 #include <e32base.h> |
|
20 #include "pbapfolderclient.h" |
|
21 |
|
22 //forward declarations |
|
23 class CPbapAppHeader; |
|
24 |
|
25 |
|
26 class CFolderBase : public CBase |
|
27 { |
|
28 public: |
|
29 const TPtrC FolderName() const; |
|
30 |
|
31 // implementations of Get must take ownership of aGetData even if they return an error |
|
32 virtual TInt Get(const TDesC& aObjectName, CPbapAppHeader* aGetData)=0; |
|
33 virtual void CancelGet() =0; |
|
34 virtual void GetComplete() =0; |
|
35 |
|
36 protected: |
|
37 inline CFolderBase(MVirtualFolderClient& aClient, const TPtrC aFolderName); |
|
38 |
|
39 protected: |
|
40 MVirtualFolderClient& iClient; |
|
41 |
|
42 private: |
|
43 TPtrC iFolderName; |
|
44 }; |
|
45 |
|
46 |
|
47 // |
|
48 // inline functions |
|
49 // |
|
50 inline CFolderBase::CFolderBase(MVirtualFolderClient& aClient, const TPtrC aFolderName) |
|
51 : iClient(aClient) |
|
52 { |
|
53 iFolderName.Set(aFolderName); |
|
54 } |
|
55 |
|
56 inline const TPtrC CFolderBase::FolderName() const |
|
57 { |
|
58 return iFolderName; |
|
59 } |
|
60 |
|
61 #endif //PBAPFOLDERBASE_H |