diff -r 000000000000 -r 094583676ce7 PECengine/ListLibrary2/ContactListSrc/CPEngContactListMngTransProperties.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PECengine/ListLibrary2/ContactListSrc/CPEngContactListMngTransProperties.h Thu Dec 17 08:41:52 2009 +0200 @@ -0,0 +1,165 @@ +/* +* Copyright (c) 2005 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: Contact list properties update handler +* +*/ + +#ifndef __CPENGCONTACTLISTMNGTRANSPROPERTIES_H__ +#define __CPENGCONTACTLISTMNGTRANSPROPERTIES_H__ + +// INCLUDES +#include "MPEngOutgoingTransactionHandler.h" +#include "PEngWVCspVersion.h" +#include + + +// FORWARD DECLARATIONS +class CPEngContactListModBase; +class CPEngTransactionStatus; +class MPEngContactListSettingsManager; +class MPEngContactListTransactionManager; + + +// CLASS DECLARATION +/** + * Handler to update the contact list properties + * + * @lib PEngListLib2 + * @since 3.0 + */ +NONSHARABLE_CLASS( CPEngContactListMngTransProperties ) : + public CBase, + public MPEngOutgoingTransactionHandler + { +public: + + /** + * Two-phased constructor. + */ + static CPEngContactListMngTransProperties* NewLC( + CPEngContactListModBase& aContactList, + MPEngContactListTransactionManager& aManager, + TPEngWVCspVersion& aCSPVersion, + TInt aOperationId ); + + /** + * Destructor. + */ + virtual ~CPEngContactListMngTransProperties(); + + +public: // From MPEngOutgoingTransactionHandler + + /** + * Synchronous method, get Outgoing transaction request + * @see + */ + void RequestL( TDes8& aSendBuffer ); + + + /** + * Signals to the transaction handler thst it is last + * @see + */ + void LastRunningTransactionHandler(); + + + /** + * Process the response to the request. + * @see + */ + void ProcessResponseL( const TDesC8& aResponse, + TRequestStatus& aStatus ); + + /** + * Cancels asynchronous processing of the request + * @see + */ + void CancelProcessing(); + + + /** + * Support for simultaneous transaction handling + * @see + */ + void NewTransactionHandlersL( + RPointerArray& aHandlers ); + + + /** + * Function to signal completing of the transaction + * @see + */ + TBool TransactionCompleted(); + + + /** + * Gets transaction status result class + * @see + */ + CPEngTransactionStatus* TransactionResult(); + + + /** + * Releases the handler + * @see + */ + void ReleaseHandler(); + + + +private: // Constructors + + /** + * C++ constructor. + */ + CPEngContactListMngTransProperties( + CPEngContactListModBase& aContactList, + MPEngContactListTransactionManager& aManager, + TPEngWVCspVersion& aCSPVersion, + TInt aOperationId ); + + + /** + * Symbian constructor. + */ + void ConstructL(); + + +private: // Data + + /// OWN: Contact List model + CPEngContactListModBase& iContactList; + + /// REF: Contact List Transaction manager + MPEngContactListTransactionManager& iManager; + + /// OWN: Transaction status class + CPEngTransactionStatus* iTransactionStatus; + + /// OWN: Transaction state + TBool iTransactionCompleted; + + /// OWN: CSP version + TPEngWVCspVersion& iCSPVersion; + + /// OWN: Operation Id + TInt iOperationId; + }; + +#endif // __CPENGCONTACTLISTMNGTRANSPROPERTIES_H__ + + +// End of File +