equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2004-2007 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CBTTIMER_H |
|
20 #define CBTTIMER_H |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 namespace |
|
25 { |
|
26 // 0,1 second for AOs to finish their RunL methods |
|
27 const TUint KPrintingErrorDelay = 100000; |
|
28 |
|
29 // 60 seconds for discovery |
|
30 const TUint KDiscoveryDelay = 60000000; |
|
31 |
|
32 // 5 seconds for data sending percents |
|
33 const TUint KSentPercentsDelay = 3000000; |
|
34 |
|
35 // 5 seconds for data sending percents |
|
36 const TUint KPrinterResponseTimeout = 5000000; |
|
37 |
|
38 } |
|
39 |
|
40 class MBtTimerObserver |
|
41 { |
|
42 public: |
|
43 virtual void HandleTimeoutL() = 0; |
|
44 }; |
|
45 |
|
46 class CBtTimer : public CTimer |
|
47 { |
|
48 public: |
|
49 static CBtTimer* NewL( MBtTimerObserver& aObserver ); |
|
50 ~CBtTimer(); |
|
51 void Start(TUint aDelay); |
|
52 |
|
53 private: |
|
54 CBtTimer( MBtTimerObserver& aObserver ); |
|
55 void ConstructL(); |
|
56 void RunL(); |
|
57 |
|
58 private: |
|
59 MBtTimerObserver& iObserver; |
|
60 }; |
|
61 |
|
62 |
|
63 #endif // CBTTIMER_H |
|
64 |
|
65 // End of File |