|
1 /* |
|
2 * Copyright (c) 2009 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: UPnP framework custom periodic timer |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 #ifndef __UPNPPERIODIC_H__ |
|
24 #define __UPNPPERIODIC_H__ |
|
25 |
|
26 // INCLUDES |
|
27 #include <e32base.h> |
|
28 |
|
29 // CLASS DECLARATION |
|
30 /** |
|
31 * Periodic timer active object. |
|
32 * |
|
33 * |
|
34 * @lib upnputilities.lib |
|
35 * @since 3.2.3 |
|
36 */ |
|
37 |
|
38 class CUPnPPeriodic : public CPeriodic |
|
39 { |
|
40 |
|
41 public: // Constructors and destructor |
|
42 |
|
43 /** |
|
44 * Two-phased constructor. |
|
45 */ |
|
46 IMPORT_C static CUPnPPeriodic* NewL( TInt aPriority ); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 virtual ~CUPnPPeriodic(); |
|
52 |
|
53 private: // From CPeriodic base class CActive. |
|
54 |
|
55 /** |
|
56 * From CActive, called if CUPnPPeriodic function RunL() leaves. |
|
57 * @param aError Standard Symbian OS error code |
|
58 * @return Error code KErrNone |
|
59 */ |
|
60 TInt RunError( TInt aError ); |
|
61 |
|
62 private: // Private methods. |
|
63 |
|
64 /** |
|
65 * C++ constructor. |
|
66 */ |
|
67 CUPnPPeriodic( TInt aPriority ); |
|
68 |
|
69 /** |
|
70 * Symbian OS 2nd phase constructor that can leave. |
|
71 */ |
|
72 void ConstructL(); |
|
73 |
|
74 } ; |
|
75 |
|
76 #endif // __UPNPPERIODIC_H__ |
|
77 |
|
78 // End of File |