equal
deleted
inserted
replaced
|
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: Telephony Multimedia Service |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef TMSASYNCREQAO_H |
|
19 #define TMSASYNCREQAO_H |
|
20 |
|
21 //INCLUDES |
|
22 #include <e32base.h> |
|
23 #include "tmsasyncreqobsrv.h" |
|
24 |
|
25 namespace TMS { |
|
26 |
|
27 // CLASS DECLARATION |
|
28 |
|
29 /** |
|
30 * Active object handling asynchronous RingTone requests. |
|
31 */ |
|
32 NONSHARABLE_CLASS(TMSAsyncReqAO) : public CActive |
|
33 { |
|
34 public: |
|
35 |
|
36 /** |
|
37 * Two-phased constructor. |
|
38 */ |
|
39 static TMSAsyncReqAO* NewL(TMSAsyncReqObsrv* aObserver); |
|
40 |
|
41 /** |
|
42 * Destructor. |
|
43 */ |
|
44 virtual ~TMSAsyncReqAO(); |
|
45 |
|
46 /** |
|
47 * Starts A/O. |
|
48 */ |
|
49 void Start(); |
|
50 |
|
51 protected: |
|
52 // From CActive |
|
53 |
|
54 /** |
|
55 * Cancels asyncronous request(s). |
|
56 */ |
|
57 void DoCancel(); |
|
58 |
|
59 /** |
|
60 * Standard RunError() method |
|
61 * @param |
|
62 * aError RunL leave code. |
|
63 * |
|
64 * @return KErrNone. |
|
65 */ |
|
66 TInt RunError(TInt aError); |
|
67 |
|
68 /** |
|
69 * Standard RunL() method |
|
70 */ |
|
71 void RunL(); |
|
72 |
|
73 private: |
|
74 |
|
75 /** |
|
76 * C++ default constructor. |
|
77 */ |
|
78 TMSAsyncReqAO(TMSAsyncReqObsrv* aObserver); |
|
79 |
|
80 private: |
|
81 //Data |
|
82 |
|
83 // Pointer to the observer |
|
84 TMSAsyncReqObsrv* iObserver; |
|
85 }; |
|
86 |
|
87 } //namespace TMS |
|
88 |
|
89 #endif // TMSASYNCREQAO_H |
|
90 |
|
91 // End of File |