|
1 /* |
|
2 * Copyright (c) 2005-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 command for clipboard copy |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CPBK2COPYDETAILTOCLIPBOARDCMD_H |
|
19 #define CPBK2COPYDETAILTOCLIPBOARDCMD_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <e32base.h> |
|
23 |
|
24 #include <MPbk2Command.h> |
|
25 #include <MVPbkSingleContactOperationObserver.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class MPbk2ContactUiControl; |
|
29 class MPbk2CommandObserver; |
|
30 class MVPbkStoreContactField; |
|
31 class CPbk2ApplicationServices; |
|
32 |
|
33 // CLASS DECLARATIONS |
|
34 |
|
35 NONSHARABLE_CLASS(CPbk2CopyDetailToClipboardCmd) : |
|
36 public CBase, |
|
37 public MPbk2Command, |
|
38 private MVPbkSingleContactOperationObserver |
|
39 { |
|
40 public: |
|
41 static CPbk2CopyDetailToClipboardCmd* NewL(MPbk2ContactUiControl& aUiControl); |
|
42 |
|
43 ~CPbk2CopyDetailToClipboardCmd(); |
|
44 |
|
45 public: // From MPbk2Command |
|
46 void ExecuteLD(); |
|
47 void AddObserver(MPbk2CommandObserver& aObserver); |
|
48 void ResetUiControl(MPbk2ContactUiControl& aUiControl); |
|
49 |
|
50 private: // From MVPbkSingleContactOperationObserver |
|
51 void VPbkSingleContactOperationComplete( |
|
52 MVPbkContactOperationBase& aOperation, |
|
53 MVPbkStoreContact* aContact); |
|
54 void VPbkSingleContactOperationFailed( |
|
55 MVPbkContactOperationBase& aOperation, |
|
56 TInt aError); |
|
57 |
|
58 private: // implementation |
|
59 CPbk2CopyDetailToClipboardCmd( |
|
60 MPbk2ContactUiControl& aUiControl); |
|
61 void ConstructL(); |
|
62 void CopyDetailToClipboardL(); |
|
63 |
|
64 private: // Data |
|
65 /// Ref: ui control |
|
66 MPbk2ContactUiControl* iUiControl; |
|
67 /// Own: retrieve operation |
|
68 MVPbkContactOperationBase* iRetrieveOperation; |
|
69 /// Ref: command observer |
|
70 MPbk2CommandObserver* iObserver; |
|
71 /// Own: store contact |
|
72 MVPbkStoreContact* iStoreContact; |
|
73 /// Own: Application Services pointer |
|
74 CPbk2ApplicationServices* iAppServices; |
|
75 }; |
|
76 |
|
77 #endif // CPBK2COPYDETAILTOCLIPBOARDCMD_H |
|
78 // End of file |