|
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 PBAPEXPORTER_H |
|
17 #define PBAPEXPORTER_H |
|
18 |
|
19 #include "pbaprequest.h" |
|
20 #include <cntdb.h> |
|
21 |
|
22 class TDesC8; |
|
23 class CContactItem; |
|
24 class CLogEvent; |
|
25 class MVirtualFolderClient; |
|
26 |
|
27 class MPbapExporter |
|
28 { |
|
29 public: |
|
30 virtual void StartExport() =0; |
|
31 virtual void ExportListingBeginL() =0; |
|
32 virtual void ExportListingEntryL(TInt aHandle, const TDesC& aName) =0; |
|
33 virtual void ExportListingEndL() =0; |
|
34 virtual void ExportCallHistoryL(const CLogEvent& aEvent, TVCardVersion aFormat, TUint64 aFilter) =0; |
|
35 virtual void ExportContactL(TContactItemId aContactId, TVCardVersion aFormat, TUint64 aFilter) =0; |
|
36 virtual void ExportEmptyVCardL(TVCardVersion aFormat) =0; |
|
37 virtual void ExportPhonebookSizeL(TInt aCount) =0; |
|
38 virtual void ExportNewMissedCallsL(TInt aCount) =0; |
|
39 virtual void FinaliseExportL() =0; |
|
40 virtual void CancelExport() =0; |
|
41 }; |
|
42 |
|
43 |
|
44 class MPbapExporterCallback |
|
45 { |
|
46 public: |
|
47 // Exporter is deleted asynchronously |
|
48 virtual void HandleExportComplete(TInt aError) =0; |
|
49 }; |
|
50 |
|
51 class CPbapExporterBase : public CActive |
|
52 { |
|
53 protected: |
|
54 inline CPbapExporterBase(MVirtualFolderClient& aClient, MPbapExporterCallback& aCallback); |
|
55 |
|
56 protected: |
|
57 MVirtualFolderClient& iClient; |
|
58 MPbapExporterCallback& iCallback; |
|
59 }; |
|
60 |
|
61 inline CPbapExporterBase::CPbapExporterBase(MVirtualFolderClient& aClient, MPbapExporterCallback& aCallback) |
|
62 : CActive(EPriorityStandard), |
|
63 iClient(aClient), |
|
64 iCallback(aCallback) |
|
65 { |
|
66 } |
|
67 #endif //PBAPEXPORTER_H |