|
1 /* |
|
2 * Copyright (c) 2002-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: The virtual phonebook commit contacts operation |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef COWNCONTACTLINKOPERATION_H |
|
21 #define COWNCONTACTLINKOPERATION_H |
|
22 |
|
23 // INCLUDE FILES |
|
24 #include <e32base.h> |
|
25 #include <MVPbkContactOperationBase.h> |
|
26 |
|
27 // FORWARD DECLARAIONS |
|
28 class MVPbkContactLink; |
|
29 class MVPbkSingleContactLinkOperationObserver; |
|
30 |
|
31 namespace VPbkCntModel { |
|
32 |
|
33 NONSHARABLE_CLASS( COwnContactLinkOperation ): |
|
34 public CActive, |
|
35 public MVPbkContactOperationBase |
|
36 { |
|
37 public: |
|
38 /** |
|
39 * Constructor. |
|
40 * @param aOwnContactLink own contact link |
|
41 * @param aObserver an observer to pass the own contact link |
|
42 * |
|
43 */ |
|
44 COwnContactLinkOperation( |
|
45 MVPbkContactLink* aOwnContactLink, |
|
46 MVPbkSingleContactLinkOperationObserver& aObserver ); |
|
47 ~COwnContactLinkOperation(); |
|
48 |
|
49 private: // From CActive |
|
50 void RunL(); |
|
51 void DoCancel(); |
|
52 |
|
53 private: // Data |
|
54 /// Ref: Own contact link, passed to the observer, if not canceled |
|
55 MVPbkContactLink* iOwnContactLink; |
|
56 /// Ref: an observer to notify |
|
57 MVPbkSingleContactLinkOperationObserver& iObserver; |
|
58 }; |
|
59 |
|
60 } // namespace VPbkCntModel |
|
61 |
|
62 #endif // COWNCONTACTLINKOPERATION_H |
|
63 |
|
64 //End of file |