diff -r b183ec05bd8c -r 19bba8228ff0 syncmlfw/ds/hostserver/dshostserverbase/inc/Nsmldshostsessioncancel.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/syncmlfw/ds/hostserver/dshostserverbase/inc/Nsmldshostsessioncancel.h Wed Sep 01 12:27:42 2010 +0100 @@ -0,0 +1,70 @@ +/* +* ============================================================================== +* Name : nsmldshostsessioncancel.h +* Part of : Nokia SyncML / Host Server +* Interface : None +* Description : +* Version : $Revision: 54 $ $Modtime: 2.11.05 8:53 $ +* +* Copyright © 2002-2005 Nokia. All rights reserved. +* This material, including documentation and any related +* computer programs, is protected by copyright controlled by +* Nokia Corporation. All rights are reserved. Copying, +* including reproducing, storing, adapting or translating, any +* or all of this material requires the prior written consent of +* Nokia Corporation. This material also contains confidential +* information which may not be disclosed to others without the +* prior written consent of Nokia Corporation. +* ============================================================================== +*/ + +#ifndef __NSMLDSHOSTSESSIONCANCEL_H__ +#define __NSMLDSHOSTSESSIONCANCEL_H__ + + +// -------------------------------------------------------------------------- +// Includes +// -------------------------------------------------------------------------- +#include +#include +#include +#include + + +// ------------------------------------------------------------------------------------------------ +// Class forwards +// ------------------------------------------------------------------------------------------------ +class MNSmlDsHostSessionCancelEventHandler; + +/** +* An active class to handle user initiated cancel. +* This class informs session to cancel the outgoing session. +* +* @since +*/ +class CNSmlHostSessionCancel : public CActive + { +public: + static CNSmlHostSessionCancel* NewL( MNSmlDsHostSessionCancelEventHandler* aHandler ); + //Destructure + ~CNSmlHostSessionCancel(); + //Subscribe for the property "Cancel Operation". + void Subscribe(); + +private: + //Contructure + CNSmlHostSessionCancel( MNSmlDsHostSessionCancelEventHandler* aHandler ); + //Second phase construction. + void ConstructL(); + //From CActive class + void RunL(); + void DoCancel(); + TInt RunError ( TInt aError ); + +private: + MNSmlDsHostSessionCancelEventHandler* iHandler; + RProperty iProperty; + }; + + +#endif // __NSMLDSHOSTSESSIONCANCEL_H__