diff -r a3a1ae9acec6 -r da5135c61bad meetingrequest/mrtasks/mrtaskplugin/inc/cesmrdeletefromdbmrtask.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/meetingrequest/mrtasks/mrtaskplugin/inc/cesmrdeletefromdbmrtask.h Wed Mar 31 21:08:33 2010 +0300 @@ -0,0 +1,63 @@ +/* +* Copyright (c) 2007-2009 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: Interface definition for ESMR send mr response via mail task +* +*/ + + +#ifndef C_ESMRDELETEMRDROMDBTASK_H +#define C_ESMRDELETEMRDROMDBTASK_H + +#include "cesmrtaskbase.h" + +/** + * CESMRDeleteMRFromDbTask is responsibe for deleting MR from calendar DB. + * + * @lib esmrtasks.lib + */ +NONSHARABLE_CLASS( CESMRDeleteMRFromDbTask ) : public CESMRTaskBase + { +public: + /** + * Creates and initializes new CESMRDeleteMRFromDbTask object. + * Ownership is transferred to caller. + * @param aCalDbMgr Reference to cal db manager. + * @param aEntry Reference to ES MR calendar entry. + * @param aMRMailboxUtils Reference mr mailbox utilities. + */ + static CESMRDeleteMRFromDbTask* NewL( + MESMRCalDbMgr& aCalDbMgr, + MESMRMeetingRequestEntry& aEntry, + CMRMailboxUtils& aMRMailboxUtils ); + + /** + * C++ destructor. + */ + ~CESMRDeleteMRFromDbTask(); + +public: // From MESMRTask + void ExecuteTaskL(); + +private: + CESMRDeleteMRFromDbTask( + MESMRCalDbMgr& aCalDbMgr, + MESMRMeetingRequestEntry& aEntry, + CMRMailboxUtils& aMRMailboxUtils ); + + void ConstructL(); + + void DeleteEntryFromDbL(); + }; + +#endif // C_ESMRDELETEMRDROMDBTASK_H