|
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: A call back for contact operation e.g lock |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef VPBKSIMSTORE_CCONTACTOPERATIONCALLBACK_H |
|
21 #define VPBKSIMSTORE_CCONTACTOPERATIONCALLBACK_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <CVPbkAsyncOperation.h> |
|
25 #include <MVPbkContactObserver.h> |
|
26 |
|
27 namespace VPbkSimStore { |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 /** |
|
32 * A call back for contact operation e.g lock |
|
33 * |
|
34 */ |
|
35 NONSHARABLE_CLASS( CContactOperationCallback ): |
|
36 public CBase, |
|
37 public VPbkEngUtils::MAsyncCallback |
|
38 { |
|
39 public: // Constructors and destructor |
|
40 |
|
41 /** |
|
42 * C++ constructor. |
|
43 */ |
|
44 CContactOperationCallback( |
|
45 MVPbkContactObserver::TContactOpResult& aOpResult, |
|
46 MVPbkContactObserver& aObserver, TInt aResult ); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 ~CContactOperationCallback(); |
|
52 |
|
53 public: // Functions from base classes |
|
54 |
|
55 /** |
|
56 * From MAsyncCallback. |
|
57 */ |
|
58 void operator()(); |
|
59 |
|
60 /** |
|
61 * From MAsyncCallback. |
|
62 */ |
|
63 void Error( TInt aError ); |
|
64 |
|
65 public: // Data |
|
66 /// Owns the contact in iOpResult until observer takes ownership |
|
67 MVPbkContactObserver::TContactOpResult iOpResult; |
|
68 MVPbkContactObserver& iObserver; |
|
69 TInt iResult; |
|
70 }; |
|
71 } // namespace VPbkSimStore |
|
72 #endif // VPBKSIMSTORE_CCONTACTOPERATIONCALLBACK_H |
|
73 |
|
74 // End of File |