|
1 /* |
|
2 * Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Class header for MWsfServerCloserAdapter |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef M_WSFSERVERCLOSERADAPTER_H |
|
22 #define M_WSFSERVERCLOSERADAPTER_H |
|
23 |
|
24 // EXTERNAL INCLUDES |
|
25 #include <e32def.h> |
|
26 |
|
27 |
|
28 |
|
29 // CLASS DEFINITION |
|
30 /** |
|
31 * Class acts as an interface for the Sniffer server closer to let different |
|
32 * parts of the engine modify the default closing behaviour. Basically, the |
|
33 * functions set the appropriate semaphore in the server closer. |
|
34 * |
|
35 * @since S60 5.0 |
|
36 */ |
|
37 class MWsfServerCloserAdapter |
|
38 { |
|
39 public: // Abstract methods |
|
40 |
|
41 /** |
|
42 * Tells the server whether to shut down if there are no clients |
|
43 * connected to it. |
|
44 * @since S60 5.0 |
|
45 * @param aWait If ETrue, the server must wait for the clients to |
|
46 * disconnect first before closing up. |
|
47 */ |
|
48 virtual void WaitForClients( TBool aWait ) = 0; |
|
49 |
|
50 /** |
|
51 * Tells the server whether to shut down while there is an owned |
|
52 * connection open. |
|
53 * @since S60 5.0 |
|
54 * @param aWait If ETrue, the server must wait for the connection to |
|
55 * terminate first before closing up. |
|
56 */ |
|
57 virtual void WaitForOwnedConnection( TBool aWait ) = 0; |
|
58 |
|
59 /** |
|
60 * Tells the server whether to shut down while there is an IAP |
|
61 * whose deletion is the server's responsibility. |
|
62 * @since S60 5.0 |
|
63 * @param aWait If ETrue, the server must wait for the IAP to be |
|
64 * deleted first before closing up. |
|
65 */ |
|
66 virtual void WaitForBrowserExit( TBool aWait ) = 0; |
|
67 |
|
68 }; |
|
69 |
|
70 |
|
71 #endif // M_WSFSERVERCLOSERADAPTER_H |
|
72 |
|
73 // End of file |
|
74 |