1 /* |
|
2 * Copyright (c) 2002 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: Waiter class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef BTSBPP_SERVER_WAIT_H |
|
21 #define BTSBPP_SERVER_WAIT_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> // CTimer |
|
25 |
|
26 // CLASS DECLARATION |
|
27 |
|
28 /** |
|
29 * An interface used to inform about CBTSBPPServerWait completion. |
|
30 */ |
|
31 class MBTSBPPServerWaitObserver |
|
32 { |
|
33 public: |
|
34 |
|
35 /** |
|
36 * Informs the observer that the waiting has been completed. |
|
37 * @param None. |
|
38 * @return None. |
|
39 */ |
|
40 virtual void WaitComplete() = 0; |
|
41 }; |
|
42 |
|
43 // CLASS DECLARATION |
|
44 |
|
45 /** |
|
46 * A timer object for waiting server connections. |
|
47 */ |
|
48 NONSHARABLE_CLASS (CBTSBPPServerWait) : public CTimer |
|
49 { |
|
50 public: // Constructors and destructor |
|
51 |
|
52 /** |
|
53 * Two-phased constructor. |
|
54 */ |
|
55 static CBTSBPPServerWait* NewL( MBTSBPPServerWaitObserver* aObserver ); |
|
56 |
|
57 /** |
|
58 * Destructor. |
|
59 */ |
|
60 virtual ~CBTSBPPServerWait(); |
|
61 |
|
62 private: // Functions from base classes |
|
63 |
|
64 /** |
|
65 * From CActive Get's called when the timer expires. |
|
66 * @param None. |
|
67 * @return None. |
|
68 */ |
|
69 void RunL(); |
|
70 |
|
71 private: |
|
72 |
|
73 /** |
|
74 * C++ default constructor. |
|
75 */ |
|
76 CBTSBPPServerWait( MBTSBPPServerWaitObserver* aObserver ); |
|
77 |
|
78 /** |
|
79 * By default Symbian 2nd phase constructor is private. |
|
80 */ |
|
81 void ConstructL(); |
|
82 |
|
83 private: // Data |
|
84 |
|
85 // Not owned |
|
86 // |
|
87 MBTSBPPServerWaitObserver* iObserver; |
|
88 }; |
|
89 |
|
90 #endif // BTSBPP_SERVER_WAIT_H |
|
91 |
|
92 // End of File |
|