diff -r 000000000000 -r e686773b3f54 phonebookui/Phonebook2/CommandsExtension/inc/CPbk2CopyDetailToClipboardCmd.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phonebookui/Phonebook2/CommandsExtension/inc/CPbk2CopyDetailToClipboardCmd.h Tue Feb 02 10:12:17 2010 +0200 @@ -0,0 +1,78 @@ +/* +* Copyright (c) 2005-2007 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: A command for clipboard copy +* +*/ + +#ifndef CPBK2COPYDETAILTOCLIPBOARDCMD_H +#define CPBK2COPYDETAILTOCLIPBOARDCMD_H + +// INCLUDES +#include + +#include +#include + +// FORWARD DECLARATIONS +class MPbk2ContactUiControl; +class MPbk2CommandObserver; +class MVPbkStoreContactField; +class CPbk2ApplicationServices; + +// CLASS DECLARATIONS + +NONSHARABLE_CLASS(CPbk2CopyDetailToClipboardCmd) : + public CBase, + public MPbk2Command, + private MVPbkSingleContactOperationObserver + { + public: + static CPbk2CopyDetailToClipboardCmd* NewL(MPbk2ContactUiControl& aUiControl); + + ~CPbk2CopyDetailToClipboardCmd(); + + public: // From MPbk2Command + void ExecuteLD(); + void AddObserver(MPbk2CommandObserver& aObserver); + void ResetUiControl(MPbk2ContactUiControl& aUiControl); + + private: // From MVPbkSingleContactOperationObserver + void VPbkSingleContactOperationComplete( + MVPbkContactOperationBase& aOperation, + MVPbkStoreContact* aContact); + void VPbkSingleContactOperationFailed( + MVPbkContactOperationBase& aOperation, + TInt aError); + + private: // implementation + CPbk2CopyDetailToClipboardCmd( + MPbk2ContactUiControl& aUiControl); + void ConstructL(); + void CopyDetailToClipboardL(); + + private: // Data + /// Ref: ui control + MPbk2ContactUiControl* iUiControl; + /// Own: retrieve operation + MVPbkContactOperationBase* iRetrieveOperation; + /// Ref: command observer + MPbk2CommandObserver* iObserver; + /// Own: store contact + MVPbkStoreContact* iStoreContact; + /// Own: Application Services pointer + CPbk2ApplicationServices* iAppServices; + }; + +#endif // CPBK2COPYDETAILTOCLIPBOARDCMD_H +// End of file