equal
deleted
inserted
replaced
|
1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef __TIMEOUT_H__ |
|
17 #define __TIMEOUT_H__ |
|
18 |
|
19 // Class definitions to support the recive with timeout methods |
|
20 |
|
21 #include <e32base.h> |
|
22 |
|
23 // MTimeOutNotify: used in conjunction with CTimeOutTimer class |
|
24 class MTimeOutNotify |
|
25 { |
|
26 public: |
|
27 virtual void TimerExpired() = 0; |
|
28 }; |
|
29 |
|
30 // CTimeOutTimer: timer for comms time-outs |
|
31 class CTimeOutTimer: public CTimer |
|
32 { |
|
33 public: |
|
34 static CTimeOutTimer* NewL(MTimeOutNotify& aTimeOutNotify); |
|
35 ~CTimeOutTimer(); |
|
36 |
|
37 protected: |
|
38 CTimeOutTimer(MTimeOutNotify& aTimeOutNotify); |
|
39 void ConstructL(); |
|
40 virtual void RunL(); |
|
41 |
|
42 private: |
|
43 MTimeOutNotify& iNotify; |
|
44 }; |
|
45 |
|
46 #endif // __TIMEOUT_H__ |