26
|
1 |
/*
|
|
2 |
* ==============================================================================
|
|
3 |
* Name : nsmldshostsessioncancel.h
|
|
4 |
* Part of : Nokia SyncML / Host Server
|
|
5 |
* Interface : None
|
|
6 |
* Description :
|
|
7 |
* Version : $Revision: 54 $ $Modtime: 2.11.05 8:53 $
|
|
8 |
*
|
|
9 |
* Copyright © 2002-2005 Nokia. All rights reserved.
|
|
10 |
* This material, including documentation and any related
|
|
11 |
* computer programs, is protected by copyright controlled by
|
|
12 |
* Nokia Corporation. All rights are reserved. Copying,
|
|
13 |
* including reproducing, storing, adapting or translating, any
|
|
14 |
* or all of this material requires the prior written consent of
|
|
15 |
* Nokia Corporation. This material also contains confidential
|
|
16 |
* information which may not be disclosed to others without the
|
|
17 |
* prior written consent of Nokia Corporation.
|
|
18 |
* ==============================================================================
|
|
19 |
*/
|
|
20 |
|
|
21 |
#ifndef __NSMLDSHOSTSESSIONCANCEL_H__
|
|
22 |
#define __NSMLDSHOSTSESSIONCANCEL_H__
|
|
23 |
|
|
24 |
|
|
25 |
// --------------------------------------------------------------------------
|
|
26 |
// Includes
|
|
27 |
// --------------------------------------------------------------------------
|
|
28 |
#include <e32base.h>
|
|
29 |
#include <s32mem.h>
|
|
30 |
#include <badesca.h>
|
|
31 |
#include <e32property.h>
|
|
32 |
|
|
33 |
|
|
34 |
// ------------------------------------------------------------------------------------------------
|
|
35 |
// Class forwards
|
|
36 |
// ------------------------------------------------------------------------------------------------
|
|
37 |
class MNSmlDsHostSessionCancelEventHandler;
|
|
38 |
|
|
39 |
/**
|
|
40 |
* An active class to handle user initiated cancel.
|
|
41 |
* This class informs session to cancel the outgoing session.
|
|
42 |
*
|
|
43 |
* @since
|
|
44 |
*/
|
|
45 |
class CNSmlHostSessionCancel : public CActive
|
|
46 |
{
|
|
47 |
public:
|
|
48 |
static CNSmlHostSessionCancel* NewL( MNSmlDsHostSessionCancelEventHandler* aHandler );
|
|
49 |
//Destructure
|
|
50 |
~CNSmlHostSessionCancel();
|
|
51 |
//Subscribe for the property "Cancel Operation".
|
|
52 |
void Subscribe();
|
|
53 |
|
|
54 |
private:
|
|
55 |
//Contructure
|
|
56 |
CNSmlHostSessionCancel( MNSmlDsHostSessionCancelEventHandler* aHandler );
|
|
57 |
//Second phase construction.
|
|
58 |
void ConstructL();
|
|
59 |
//From CActive class
|
|
60 |
void RunL();
|
|
61 |
void DoCancel();
|
|
62 |
TInt RunError ( TInt aError );
|
|
63 |
|
|
64 |
private:
|
|
65 |
MNSmlDsHostSessionCancelEventHandler* iHandler;
|
|
66 |
RProperty iProperty;
|
|
67 |
};
|
|
68 |
|
|
69 |
|
|
70 |
#endif // __NSMLDSHOSTSESSIONCANCEL_H__
|