|
1 /* |
|
2 * Copyright (c) 2006-2007 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: Virtual Phonebook VCard active incremental |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CVPBKVCARDACTIVEINCREMENTAL_H |
|
21 #define CVPBKVCARDACTIVEINCREMENTAL_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <MVPbkContactOperation.h> |
|
25 #include <e32base.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class MVPbkSingleContactOperationObserver; |
|
29 class MVPbkFieldTypeList; |
|
30 class CVPbkVCardFieldTypeProperty; |
|
31 class CVPbkVCardIdNameMapping; |
|
32 class CVPbkVCardData; |
|
33 |
|
34 // CLASS DECLARATIONS |
|
35 |
|
36 NONSHARABLE_CLASS( MVPbkVCardIncremental ) |
|
37 { |
|
38 public: |
|
39 virtual TInt Next( TInt& aRemainingSteps ) = 0; |
|
40 virtual void CloseL() = 0; |
|
41 virtual void HandleLeave( TInt aError ) = 0; |
|
42 virtual void HandleCancel() = 0; |
|
43 }; |
|
44 |
|
45 NONSHARABLE_CLASS( CVPbkVCardActiveIncremental ) |
|
46 : public CActive, |
|
47 public MVPbkContactOperation |
|
48 { |
|
49 public: |
|
50 CVPbkVCardActiveIncremental( |
|
51 TInt aPriority, |
|
52 MVPbkVCardIncremental& aIncremental, |
|
53 CVPbkVCardData& aData, |
|
54 MVPbkSingleContactOperationObserver& aObserver ); |
|
55 ~CVPbkVCardActiveIncremental(); |
|
56 void Start(); |
|
57 void StartWaiting(); |
|
58 |
|
59 public: // From MVPbkContactOperation |
|
60 |
|
61 virtual void StartL(); |
|
62 virtual void Cancel(); |
|
63 |
|
64 protected: // From CActive |
|
65 |
|
66 virtual void RunL(); |
|
67 virtual void DoCancel(); |
|
68 virtual TInt RunError( TInt aError ); |
|
69 |
|
70 protected: // New functions |
|
71 |
|
72 void Complete( TInt aError ); |
|
73 |
|
74 protected: |
|
75 /// Ref: |
|
76 MVPbkVCardIncremental& iIncremental; |
|
77 /// Ref: |
|
78 CVPbkVCardData& iData; |
|
79 /// Ref: |
|
80 MVPbkSingleContactOperationObserver& iObserver; |
|
81 }; |
|
82 |
|
83 #endif // CVPBKVCARDACTIVEINCREMENTAL_H |
|
84 |
|
85 // End of file |